Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 108 kB / 20.43 MB, free: 1.473 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001625/0.001625, allocations: 187.5 kB / 23.72 MB, free: 4.711 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.595/1.595, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB
"
[Timeout remaining time 178]
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.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5030,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample")
translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5030,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 48.02 kB / 370.9 MB, free: 9.375 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3585, allocations: 52.18 MB / 423.1 MB, free: 14.86 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.004273/0.3628, allocations: 2.023 MB / 425.1 MB, free: 12.82 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002567/0.3653, allocations: 1.126 MB / 426.3 MB, free: 11.68 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001766/0.3655, allocations: 11.88 kB / 426.3 MB, free: 11.67 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0007125/0.3662, allocations: 159.5 kB / 426.4 MB, free: 11.52 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003276/0.3666, allocations: 119.5 kB / 426.5 MB, free: 11.4 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0007613/0.3673, allocations: 253.1 kB / 426.8 MB, free: 11.16 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003464/0.3677, allocations: 223.4 kB / 427 MB, free: 10.94 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.3678, allocations: 32.58 kB / 427 MB, free: 10.9 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001667/0.368, allocations: 95.61 kB / 427.1 MB, free: 10.81 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001562/0.3681, allocations: 99.59 kB / 427.2 MB, free: 10.71 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.427e-05/0.3682, allocations: 15.94 kB / 427.3 MB, free: 10.7 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001595/0.3683, allocations: 55.95 kB / 427.3 MB, free: 10.64 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 9.961e-05/0.3684, allocations: 63.77 kB / 427.4 MB, free: 10.58 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.3685, allocations: 83.47 kB / 427.4 MB, free: 10.5 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004852/0.369, allocations: 260.4 kB / 427.7 MB, free: 10.25 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.369, allocations: 4 kB / 427.7 MB, free: 10.24 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.633e-06/0.369, allocations: 0 / 427.7 MB, free: 10.24 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 8.386e-06/0.369, allocations: 0 / 427.7 MB, free: 10.24 MB / 334.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 31
 * Number of variables: 31
Notification: Performance of Generate backend data structure: time 0.001116/0.3702, allocations: 494.5 kB / 428.2 MB, free: 9.723 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 6.172e-05/0.3702, allocations: 12.03 kB / 428.2 MB, free: 9.711 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 9.916e-05/0.3703, allocations: 24.8 kB / 428.2 MB, free: 9.688 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000431/0.3707, allocations: 217.1 kB / 428.4 MB, free: 9.453 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.469e-05/0.3708, allocations: 16.38 kB / 428.5 MB, free: 9.438 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.288e-05/0.3708, allocations: 16.11 kB / 428.5 MB, free: 9.422 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007045/0.3715, allocations: 294 kB / 428.8 MB, free: 9.113 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.3715, allocations: 0 / 428.8 MB, free: 9.113 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.498e-05/0.3716, allocations: 8 kB / 428.8 MB, free: 9.105 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.3716, allocations: 0 / 428.8 MB, free: 9.105 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00018/0.3717, allocations: 67.89 kB / 428.8 MB, free: 9.039 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006762/0.3724, allocations: 369.2 kB / 429.2 MB, free: 8.629 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003718/0.3728, allocations: 168 kB / 429.4 MB, free: 8.438 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.3729, allocations: 74.55 kB / 429.4 MB, free: 8.355 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.373, allocations: 7.938 kB / 429.4 MB, free: 8.348 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002123/0.3732, allocations: 83.33 kB / 429.5 MB, free: 8.254 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=22): time 1.643e-06/0.3732, allocations: 0 / 429.5 MB, free: 8.254 MB / 334.1 MB
Notification: Performance of matching and sorting (n=22): time 0.0005835/0.3738, allocations: 229.4 kB / 429.7 MB, free: 8.023 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.3739, allocations: 140.5 kB / 429.9 MB, free: 7.855 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003547/0.3742, allocations: 272.9 kB / 430.1 MB, free: 7.578 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.293e-05/0.3743, allocations: 29.7 kB / 430.2 MB, free: 7.543 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.3744, allocations: 116.6 kB / 430.3 MB, free: 7.426 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 4.818e-05/0.3744, allocations: 35.78 kB / 430.3 MB, free: 7.391 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 9.365e-05/0.3745, allocations: 57.89 kB / 430.4 MB, free: 7.328 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001994/0.3747, allocations: 334.8 kB / 430.7 MB, free: 6.992 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 9.238e-05/0.3748, allocations: 36.45 kB / 430.7 MB, free: 6.957 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.375, allocations: 175.2 kB / 430.9 MB, free: 6.727 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002927/0.3753, allocations: 195.2 kB / 431.1 MB, free: 6.48 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.3753, allocations: 4 kB / 431.1 MB, free: 6.477 MB / 334.1 MB
Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004027/0.3757, allocations: 221.1 kB / 431.3 MB, free: 6.254 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.3758, allocations: 8 kB / 431.3 MB, free: 6.246 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.3758, allocations: 4 kB / 431.3 MB, free: 6.242 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.3758, allocations: 4.531 kB / 431.3 MB, free: 6.238 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.3759, allocations: 27.92 kB / 431.4 MB, free: 6.211 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.3759, allocations: 7.984 kB / 431.4 MB, free: 6.203 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.376, allocations: 23.83 kB / 431.4 MB, free: 6.18 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.875e-05/0.3761, allocations: 16 kB / 431.4 MB, free: 6.164 MB / 334.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 18
 * Number of states: 0 ()
 * Number of discrete variables: 26 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b)
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (28):
 * Single equations (assignments): 28
 * Array equations: 0
 * Algorithm blocks: 0
 * 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.0001765/0.3762, allocations: 159.9 kB / 431.6 MB, free: 6 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002195/0.3765, allocations: 133.8 kB / 431.7 MB, free: 5.863 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002736/0.3767, allocations: 115.4 kB / 431.8 MB, free: 5.742 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.3767, allocations: 4.375 kB / 431.8 MB, free: 5.738 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3767, allocations: 0 / 431.8 MB, free: 5.738 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3767, allocations: 3.938 kB / 431.8 MB, free: 5.734 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002449/0.377, allocations: 220.5 kB / 432 MB, free: 5.477 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.377, allocations: 0 / 432 MB, free: 5.477 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.536e-05/0.377, allocations: 19.92 kB / 432.1 MB, free: 5.457 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.377, allocations: 0 / 432.1 MB, free: 5.457 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.3771, allocations: 4 kB / 432.1 MB, free: 5.453 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.3771, allocations: 0 / 432.1 MB, free: 5.453 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3771, allocations: 0 / 432.1 MB, free: 5.453 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003816/0.3774, allocations: 237.4 kB / 432.3 MB, free: 5.199 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 9.756e-05/0.3775, allocations: 39.83 kB / 432.3 MB, free: 5.16 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.3776, allocations: 8 kB / 432.3 MB, free: 5.152 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.813e-05/0.3777, allocations: 11.98 kB / 432.4 MB, free: 5.141 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.72e-05/0.3777, allocations: 7.984 kB / 432.4 MB, free: 5.133 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.221e-05/0.3777, allocations: 11.98 kB / 432.4 MB, free: 5.121 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.0002165/0.3779, allocations: 192.5 kB / 432.6 MB, free: 4.934 MB / 334.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3779, allocations: 0 / 432.6 MB, free: 4.934 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0003322/0.3783, allocations: 51.86 kB / 432.6 MB, free: 4.883 MB / 334.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 3
 * Number of states: 0 ()
 * Number of discrete variables: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b)
 * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled)
 * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b)
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (22):
 * Single equations (assignments): 20
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 2
 * 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.001634/0.3799, allocations: 431.1 kB / 433 MB, free: 4.613 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003637/0.3803, allocations: 140 kB / 433.2 MB, free: 4.477 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3803, allocations: 0 / 433.2 MB, free: 4.477 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 7.096e-05/0.3803, allocations: 16 kB / 433.2 MB, free: 4.461 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005329/0.3809, allocations: 112.2 kB / 433.3 MB, free: 4.355 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007786/0.3817, allocations: 397.9 kB / 433.7 MB, free: 3.938 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004455/0.3821, allocations: 0.7595 MB / 434.4 MB, free: 3.152 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 9.235e-05/0.3822, allocations: 25.89 kB / 434.5 MB, free: 3.125 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.45e-05/0.3823, allocations: 27.42 kB / 434.5 MB, free: 3.098 MB / 334.1 MB
Notification: Performance of SimCode: time 7.21e-07/0.3823, allocations: 0 / 434.5 MB, free: 3.098 MB / 334.1 MB
Notification: Performance of Templates: time 0.008267/0.3905, allocations: 3.137 MB / 437.6 MB, free: 15.98 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.138088912703097]