Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX") translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 115.3 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 196 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 51.92 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3506/0.3521, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003691/0.3558, allocations: 1.813 MB / 402.5 MB, free: 7.055 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002342/0.3582, allocations: 0.9432 MB / 403.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002133/0.3585, allocations: 4 kB / 403.5 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002173/0.3587, allocations: 19.8 kB / 403.5 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002115/0.3589, allocations: 43.64 kB / 403.6 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005145/0.3595, allocations: 95.83 kB / 403.6 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005421/0.36, allocations: 323.3 kB / 404 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.3602, allocations: 53.59 kB / 404 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009207/0.3611, allocations: 0.7408 MB / 404.8 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002775/0.3614, allocations: 143.5 kB / 404.9 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.699e-05/0.3615, allocations: 20 kB / 404.9 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.815e-05/0.3616, allocations: 20 kB / 404.9 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000158/0.3617, allocations: 143.4 kB / 405.1 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002516/0.362, allocations: 242.2 kB / 405.3 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007129/0.3627, allocations: 0.7525 MB / 406.1 MB, free: 3.523 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.3627, allocations: 4 kB / 406.1 MB, free: 3.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3628, allocations: 0 / 406.1 MB, free: 3.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.775e-05/0.3628, allocations: 0 / 406.1 MB, free: 3.52 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.00172/0.3645, allocations: 1.165 MB / 407.2 MB, free: 2.258 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.3646, allocations: 12.03 kB / 407.2 MB, free: 2.246 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001503/0.3647, allocations: 83.92 kB / 407.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004849/0.3652, allocations: 388.3 kB / 407.7 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.995e-05/0.3652, allocations: 12.56 kB / 407.7 MB, free: 1.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.476e-05/0.3653, allocations: 20.38 kB / 407.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005525/0.3659, allocations: 255.9 kB / 408 MB, free: 1.453 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.3659, allocations: 0 / 408 MB, free: 1.453 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.295e-05/0.3659, allocations: 11.98 kB / 408 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.366, allocations: 0 / 408 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003055/0.3663, allocations: 140.1 kB / 408.1 MB, free: 1.305 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/0.3675, allocations: 0.7309 MB / 408.9 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003867/0.3679, allocations: 202.4 kB / 409.1 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002836/0.3682, allocations: 176.9 kB / 409.2 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.3682, allocations: 8 kB / 409.2 MB, free: 136 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005974/0.3689, allocations: 381.9 kB / 409.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 3.216e-06/0.3689, allocations: 3.984 kB / 409.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001437/0.3703, allocations: 0.9317 MB / 410.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001351/0.3705, allocations: 281 kB / 410.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001159/0.3716, allocations: 0.9491 MB / 411.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.162e-05/0.3717, allocations: 37.7 kB / 411.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.786e-05/0.3718, allocations: 130 kB / 411.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.617e-05/0.3719, allocations: 67.2 kB / 412 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001921/0.3721, allocations: 157.1 kB / 412.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.3723, allocations: 334.8 kB / 412.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002464/0.3725, allocations: 132.2 kB / 412.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002577/0.3728, allocations: 164.6 kB / 412.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006306/0.3734, allocations: 0.7029 MB / 413.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3735, allocations: 7.938 kB / 413.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009894/0.3745, allocations: 0.7448 MB / 414.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001419/0.3746, allocations: 245.6 kB / 414.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3746, allocations: 4 kB / 414.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.3746, allocations: 0 / 414.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.86e-05/0.3747, allocations: 11.94 kB / 414.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.3747, allocations: 0 / 414.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002203/0.3749, allocations: 27.89 kB / 414.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001209/0.3751, allocations: 108.1 kB / 414.6 MB, free: 10.34 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.bUF3S1.inertialDelaySensitive.y,$PRE.bUF3S2.inertialDelaySensitive.y,wiredX.auxiliary[2],wiredX.auxiliary[1],bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.x,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.yy,bUF3S1.nextstate,x_table1.y,e_table1.y,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.yy,bUF3S2.nextstate,x_table2.y,e_table2.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wiredX.auxiliary[2],wiredX.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005643/0.3756, allocations: 0.6202 MB / 415.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.522e-05/0.3757, allocations: 75.16 kB / 415.3 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00019/0.3759, allocations: 130.9 kB / 415.4 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.3759, allocations: 4 kB / 415.4 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.3759, allocations: 0 / 415.4 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3759, allocations: 0 / 415.4 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00176/0.3777, allocations: 1.429 MB / 416.9 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3777, allocations: 3.938 kB / 416.9 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.502e-05/0.3777, allocations: 8 kB / 416.9 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.3778, allocations: 0 / 416.9 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-05/0.3778, allocations: 27.98 kB / 416.9 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.3778, allocations: 4 kB / 416.9 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3778, allocations: 0 / 416.9 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001259/0.3791, allocations: 0.9687 MB / 417.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005564/0.3797, allocations: 415.8 kB / 418.3 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.975e-05/0.3798, allocations: 20 kB / 418.3 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002027/0.38, allocations: 27.98 kB / 418.3 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.3801, allocations: 55.88 kB / 418.4 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/0.3803, allocations: 111.9 kB / 418.5 MB, free: 6.191 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008627/0.3811, allocations: 0.6899 MB / 419.2 MB, free: 5.508 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3811, allocations: 0 / 419.2 MB, free: 5.508 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003568/0.3815, allocations: 103.8 kB / 419.3 MB, free: 5.406 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001802/0.3817, allocations: 155.2 kB / 419.4 MB, free: 5.242 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009242/0.3826, allocations: 0.8887 MB / 420.3 MB, free: 4.258 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3826, allocations: 0 / 420.3 MB, free: 4.258 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005867/0.3832, allocations: 0.7452 MB / 421.1 MB, free: 3.414 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009611/0.3842, allocations: 270.9 kB / 421.3 MB, free: 3.172 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00183/0.386, allocations: 1.27 MB / 422.6 MB, free: 1.875 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005673/0.3866, allocations: 0.944 MB / 423.6 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001945/0.3868, allocations: 97.33 kB / 423.7 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.503e-05/0.3869, allocations: 43.36 kB / 423.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of SimCode: time 2.926e-06/0.3869, allocations: 0 / 423.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of Templates: time 0.0152/0.4021, allocations: 9.511 MB / 433.2 MB, free: 7.316 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches