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.SubSample.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.001396/0.001396, allocations: 110.5 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.001726/0.001726, allocations: 213.2 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.587/1.587, allocations: 230.6 MB / 258.2 MB, free: 8.035 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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample")
translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") [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.00206/0.00206, allocations: 60.78 kB / 379 MB, free: 2.648 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.3487, allocations: 53.37 MB / 432.4 MB, free: 6.938 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004589/0.3532, allocations: 1.929 MB / 434.3 MB, free: 5.004 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.003026/0.3563, allocations: 1.301 MB / 435.6 MB, free: 3.695 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002526/0.3565, allocations: 7.938 kB / 435.6 MB, free: 3.688 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0005394/0.3571, allocations: 63.67 kB / 435.7 MB, free: 3.625 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0005699/0.3576, allocations: 139.4 kB / 435.8 MB, free: 3.488 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0008682/0.3585, allocations: 230.7 kB / 436.1 MB, free: 3.266 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003131/0.3588, allocations: 183.5 kB / 436.2 MB, free: 3.086 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.359, allocations: 21.39 kB / 436.3 MB, free: 3.066 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.3591, allocations: 75.7 kB / 436.3 MB, free: 2.992 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001747/0.3593, allocations: 87.55 kB / 436.4 MB, free: 2.906 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.192e-05/0.3593, allocations: 8 kB / 436.4 MB, free: 2.898 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002379/0.3595, allocations: 83.92 kB / 436.5 MB, free: 2.816 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.3597, allocations: 47.83 kB / 436.6 MB, free: 2.77 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.3598, allocations: 87.36 kB / 436.6 MB, free: 2.684 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004601/0.3602, allocations: 234 kB / 436.9 MB, free: 2.457 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.3603, allocations: 4 kB / 436.9 MB, free: 2.453 MB / 334.1 MB
Notification: Performance of FrontEnd: time 2.504e-06/0.3603, allocations: 0 / 436.9 MB, free: 2.453 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 7.094e-06/0.3603, allocations: 0 / 436.9 MB, free: 2.453 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: 14
 * Number of variables: 14
Notification: Performance of Generate backend data structure: time 0.0008869/0.3612, allocations: 478.5 kB / 437.3 MB, free: 1.949 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.3612, allocations: 12.02 kB / 437.4 MB, free: 1.938 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.864e-05/0.3613, allocations: 24.8 kB / 437.4 MB, free: 1.914 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005151/0.3618, allocations: 237.4 kB / 437.6 MB, free: 1.656 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.008e-05/0.3618, allocations: 4.375 kB / 437.6 MB, free: 1.652 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.3618, allocations: 12.12 kB / 437.6 MB, free: 1.641 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004067/0.3622, allocations: 155.6 kB / 437.8 MB, free: 1.461 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.3623, allocations: 0 / 437.8 MB, free: 1.461 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.3623, allocations: 0 / 437.8 MB, free: 1.461 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.3623, allocations: 4 kB / 437.8 MB, free: 1.457 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.3624, allocations: 35.92 kB / 437.8 MB, free: 1.422 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006689/0.3631, allocations: 365.4 kB / 438.2 MB, free: 1.016 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003019/0.3634, allocations: 111.9 kB / 438.3 MB, free: 0.8789 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 9.952e-05/0.3635, allocations: 46.56 kB / 438.3 MB, free: 0.8242 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.3635, allocations: 4 kB / 438.3 MB, free: 0.8203 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002031/0.3637, allocations: 83.31 kB / 438.4 MB, free: 0.7266 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=9): time 1.322e-06/0.3637, allocations: 0 / 438.4 MB, free: 0.7266 MB / 334.1 MB
Notification: Performance of matching and sorting (n=9): time 0.0004431/0.3641, allocations: 149.5 kB / 438.6 MB, free: 0.5742 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001382/0.3643, allocations: 162.5 kB / 438.7 MB, free: 388 kB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003942/0.3647, allocations: 337.8 kB / 439 MB, free: 44 kB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.3647, allocations: 33.64 kB / 439.1 MB, free: 4 kB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.3648, allocations: 132.1 kB / 439.2 MB, free: 15.87 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 3.056e-05/0.3649, allocations: 15.91 kB / 439.2 MB, free: 15.86 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.306e-05/0.365, allocations: 33.7 kB / 439.3 MB, free: 15.82 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001663/0.3651, allocations: 330.8 kB / 439.6 MB, free: 15.48 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 7.495e-05/0.3652, allocations: 23.98 kB / 439.6 MB, free: 15.46 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.3653, allocations: 94.78 kB / 439.7 MB, free: 15.34 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001767/0.3655, allocations: 92.16 kB / 439.8 MB, free: 15.24 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3655, allocations: 0 / 439.8 MB, free: 15.24 MB / 350.1 MB
Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002528/0.3658, allocations: 125.4 kB / 439.9 MB, free: 15.11 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.3658, allocations: 7.984 kB / 439.9 MB, free: 15.1 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3658, allocations: 0 / 439.9 MB, free: 15.1 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.3658, allocations: 4 kB / 439.9 MB, free: 15.1 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.3659, allocations: 12 kB / 439.9 MB, free: 15.09 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.441e-05/0.3659, allocations: 8.109 kB / 439.9 MB, free: 15.08 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.188e-05/0.366, allocations: 19.92 kB / 440 MB, free: 15.06 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.366, allocations: 4 kB / 440 MB, free: 15.05 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 5
 * Number of states: 0 ()
 * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (11):
 * Single equations (assignments): 11
 * 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.0001755/0.3662, allocations: 154.8 kB / 440.1 MB, free: 14.89 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.3663, allocations: 73.5 kB / 440.2 MB, free: 14.82 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003265/0.3666, allocations: 119.3 kB / 440.3 MB, free: 14.69 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.3667, allocations: 7.984 kB / 440.3 MB, free: 14.68 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3667, allocations: 4.062 kB / 440.3 MB, free: 14.68 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.3667, allocations: 3.938 kB / 440.3 MB, free: 14.68 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002579/0.3669, allocations: 204.7 kB / 440.5 MB, free: 14.43 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3669, allocations: 4.047 kB / 440.5 MB, free: 14.43 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.117e-05/0.367, allocations: 15.97 kB / 440.5 MB, free: 14.41 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.367, allocations: 0 / 440.5 MB, free: 14.41 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.367, allocations: 8 kB / 440.5 MB, free: 14.41 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.367, allocations: 0 / 440.5 MB, free: 14.41 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.367, allocations: 0 / 440.5 MB, free: 14.41 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003153/0.3673, allocations: 170.6 kB / 440.7 MB, free: 14.21 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.3675, allocations: 35.83 kB / 440.7 MB, free: 14.18 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.187e-05/0.3675, allocations: 11.98 kB / 440.8 MB, free: 14.17 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.298e-05/0.3676, allocations: 0 / 440.8 MB, free: 14.17 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.468e-05/0.3676, allocations: 11.98 kB / 440.8 MB, free: 14.16 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.221e-05/0.3676, allocations: 11.88 kB / 440.8 MB, free: 14.14 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0003086/0.368, allocations: 253.3 kB / 441 MB, free: 13.9 MB / 350.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.368, allocations: 3.938 kB / 441 MB, free: 13.89 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0002964/0.3683, allocations: 35.94 kB / 441.1 MB, free: 13.86 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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u)
 * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (9):
 * Single equations (assignments): 7
 * 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.001691/0.3699, allocations: 419.2 kB / 441.5 MB, free: 13.6 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.000275/0.3702, allocations: 63.91 kB / 441.5 MB, free: 13.54 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.3702, allocations: 4 kB / 441.5 MB, free: 13.53 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.3703, allocations: 32.17 kB / 441.6 MB, free: 13.5 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000448/0.3708, allocations: 63.47 kB / 441.6 MB, free: 13.44 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008153/0.3716, allocations: 372.9 kB / 442 MB, free: 13.04 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004466/0.372, allocations: 0.7477 MB / 442.7 MB, free: 12.27 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 9.126e-05/0.3721, allocations: 25.47 kB / 442.8 MB, free: 12.24 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.536e-05/0.3722, allocations: 23.44 kB / 442.8 MB, free: 12.22 MB / 350.1 MB
Notification: Performance of SimCode: time 3.11e-07/0.3722, allocations: 0 / 442.8 MB, free: 12.22 MB / 350.1 MB
Notification: Performance of Templates: time 0.008073/0.3803, allocations: 2.902 MB / 445.7 MB, free: 9.336 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.2410245873034]