Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001734/0.001734, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001857/0.001857, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.675/1.675, allocations: 230.6 MB / 258.2 MB, free: 8.047 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo)
Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5034,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample")
translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5034,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002262/0.002262, allocations: 72.75 kB / 379 MB, free: 2.66 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3514, allocations: 53.37 MB / 432.4 MB, free: 6.965 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.004737/0.3561, allocations: 2 MB / 434.4 MB, free: 4.957 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.003029/0.3592, allocations: 1.371 MB / 435.8 MB, free: 3.578 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.00027/0.3594, allocations: 7.938 kB / 435.8 MB, free: 3.57 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004129/0.3598, allocations: 71.61 kB / 435.9 MB, free: 3.5 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0004834/0.3603, allocations: 147.4 kB / 436 MB, free: 3.355 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0009602/0.3613, allocations: 266.4 kB / 436.3 MB, free: 3.098 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003689/0.3617, allocations: 231.4 kB / 436.5 MB, free: 2.871 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/0.3618, allocations: 40.23 kB / 436.5 MB, free: 2.832 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001605/0.362, allocations: 95.56 kB / 436.6 MB, free: 2.738 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001893/0.3622, allocations: 115.6 kB / 436.7 MB, free: 2.625 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.018e-05/0.3622, allocations: 12 kB / 436.7 MB, free: 2.613 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001976/0.3624, allocations: 79.89 kB / 436.8 MB, free: 2.535 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 9.661e-05/0.3625, allocations: 71.75 kB / 436.9 MB, free: 2.465 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.3626, allocations: 103.3 kB / 437 MB, free: 2.363 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005171/0.3631, allocations: 297.7 kB / 437.3 MB, free: 2.074 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3631, allocations: 0 / 437.3 MB, free: 2.074 MB / 334.1 MB
Notification: Performance of FrontEnd: time 2.254e-06/0.3631, allocations: 0 / 437.3 MB, free: 2.074 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.61e-05/0.3632, allocations: 4 kB / 437.3 MB, free: 2.07 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.001043/0.3642, allocations: 0.5178 MB / 437.8 MB, free: 1.516 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.3643, allocations: 8.031 kB / 437.8 MB, free: 1.508 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.872e-05/0.3643, allocations: 36.69 kB / 437.8 MB, free: 1.473 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000427/0.3648, allocations: 254.5 kB / 438.1 MB, free: 1.203 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.3648, allocations: 16.38 kB / 438.1 MB, free: 1.188 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.089e-05/0.3648, allocations: 20.12 kB / 438.1 MB, free: 1.168 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006501/0.3655, allocations: 319.3 kB / 438.4 MB, free: 0.8281 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.3655, allocations: 0 / 438.4 MB, free: 0.8281 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.022e-05/0.3655, allocations: 8 kB / 438.5 MB, free: 0.8203 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.3655, allocations: 0 / 438.5 MB, free: 0.8203 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.3657, allocations: 63.95 kB / 438.5 MB, free: 0.7578 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000636/0.3663, allocations: 397.3 kB / 438.9 MB, free: 328 kB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004112/0.3667, allocations: 179.8 kB / 439.1 MB, free: 120 kB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/0.3669, allocations: 90.67 kB / 439.2 MB, free: 20 kB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.715e-05/0.3669, allocations: 7.984 kB / 439.2 MB, free: 12 kB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002011/0.3671, allocations: 79.33 kB / 439.3 MB, free: 15.92 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=22): time 1.643e-06/0.3671, allocations: 0 / 439.3 MB, free: 15.92 MB / 350.1 MB
Notification: Performance of matching and sorting (n=22): time 0.00061/0.3678, allocations: 257.8 kB / 439.5 MB, free: 15.66 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001634/0.3679, allocations: 174.2 kB / 439.7 MB, free: 15.46 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004472/0.3684, allocations: 356.1 kB / 440 MB, free: 15.1 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.803e-05/0.3684, allocations: 29.7 kB / 440 MB, free: 15.07 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.3685, allocations: 140.5 kB / 440.2 MB, free: 14.93 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 3.526e-05/0.3686, allocations: 27.78 kB / 440.2 MB, free: 14.9 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 9.222e-05/0.3686, allocations: 61.89 kB / 440.3 MB, free: 14.83 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001702/0.3688, allocations: 342.8 kB / 440.6 MB, free: 14.49 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.3689, allocations: 44.44 kB / 440.7 MB, free: 14.45 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002413/0.3692, allocations: 186.9 kB / 440.8 MB, free: 14.2 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003027/0.3695, allocations: 207.2 kB / 441 MB, free: 13.94 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.3695, allocations: 4 kB / 441 MB, free: 13.94 MB / 350.1 MB
Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003997/0.3699, allocations: 233.4 kB / 441.3 MB, free: 13.7 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.3699, allocations: 6.656 kB / 441.3 MB, free: 13.7 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.3699, allocations: 4.078 kB / 441.3 MB, free: 13.7 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.522e-05/0.3699, allocations: 8 kB / 441.3 MB, free: 13.69 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.3701, allocations: 43.92 kB / 441.3 MB, free: 13.64 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.966e-05/0.3701, allocations: 20.39 kB / 441.4 MB, free: 13.62 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.3703, allocations: 27.88 kB / 441.4 MB, free: 13.6 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.3703, allocations: 8 kB / 441.4 MB, free: 13.59 MB / 350.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.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],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.0002096/0.3705, allocations: 171.8 kB / 441.6 MB, free: 13.41 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002355/0.3707, allocations: 141.4 kB / 441.7 MB, free: 13.27 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003031/0.371, allocations: 127.4 kB / 441.8 MB, free: 13.14 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.371, allocations: 8.5 kB / 441.8 MB, free: 13.13 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.371, allocations: 7.938 kB / 441.8 MB, free: 13.12 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.371, allocations: 3.984 kB / 441.8 MB, free: 13.12 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002856/0.3713, allocations: 244.5 kB / 442.1 MB, free: 12.84 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3713, allocations: 0 / 442.1 MB, free: 12.84 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001266/0.3715, allocations: 31.92 kB / 442.1 MB, free: 12.8 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3715, allocations: 0 / 442.1 MB, free: 12.8 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.796e-05/0.3715, allocations: 8 kB / 442.1 MB, free: 12.8 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.3715, allocations: 0 / 442.1 MB, free: 12.8 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.64e-05/0.3715, allocations: 7.875 kB / 442.1 MB, free: 12.79 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004121/0.3719, allocations: 242.5 kB / 442.4 MB, free: 12.53 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.372, allocations: 51.72 kB / 442.4 MB, free: 12.48 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.404e-05/0.3721, allocations: 11.98 kB / 442.4 MB, free: 12.46 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.603e-05/0.3721, allocations: 8 kB / 442.4 MB, free: 12.46 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.856e-05/0.3722, allocations: 15.92 kB / 442.4 MB, free: 12.44 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.225e-05/0.3722, allocations: 7.938 kB / 442.5 MB, free: 12.43 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002934/0.3725, allocations: 259 kB / 442.7 MB, free: 12.18 MB / 350.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3725, allocations: 4 kB / 442.7 MB, free: 12.18 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003259/0.3729, allocations: 47.98 kB / 442.8 MB, free: 12.13 MB / 350.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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b)
 * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.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.001614/0.3745, allocations: 432.2 kB / 443.2 MB, free: 11.86 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.000395/0.3749, allocations: 154.5 kB / 443.3 MB, free: 11.71 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3749, allocations: 0 / 443.3 MB, free: 11.71 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 9.215e-05/0.375, allocations: 31.92 kB / 443.4 MB, free: 11.68 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005669/0.3755, allocations: 122.1 kB / 443.5 MB, free: 11.56 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009064/0.3764, allocations: 469.7 kB / 443.9 MB, free: 11.07 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004763/0.3769, allocations: 0.7755 MB / 444.7 MB, free: 10.27 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0001304/0.377, allocations: 34.5 kB / 444.7 MB, free: 10.23 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.16e-05/0.3771, allocations: 31.42 kB / 444.8 MB, free: 10.2 MB / 350.1 MB
Notification: Performance of SimCode: time 1.062e-06/0.3771, allocations: 0 / 444.8 MB, free: 10.2 MB / 350.1 MB
Notification: Performance of Templates: time 0.009235/0.3864, allocations: 3.672 MB / 448.4 MB, free: 6.555 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.186944484710693]