Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.001784/0.001784, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.00215/0.00215, allocations: 189.6 kB / 23.72 MB, free: 4.68 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.512/1.512, 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.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_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.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 43.92 kB / 370.9 MB, free: 9.367 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3239, allocations: 52.18 MB / 423.1 MB, free: 14.69 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004053/0.3279, allocations: 1.913 MB / 425 MB, free: 12.76 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002156/0.3301, allocations: 1.145 MB / 426.2 MB, free: 11.61 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.3302, allocations: 7.938 kB / 426.2 MB, free: 11.6 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003604/0.3306, allocations: 59.67 kB / 426.2 MB, free: 11.54 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003176/0.3309, allocations: 99.58 kB / 426.3 MB, free: 11.45 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.000855/0.3317, allocations: 269.8 kB / 426.6 MB, free: 11.19 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002808/0.332, allocations: 171.5 kB / 426.8 MB, free: 11.02 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001277/0.3322, allocations: 21.67 kB / 426.8 MB, free: 11 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001356/0.3323, allocations: 83.62 kB / 426.9 MB, free: 10.91 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001308/0.3324, allocations: 79.67 kB / 426.9 MB, free: 10.84 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.836e-05/0.3325, allocations: 12 kB / 427 MB, free: 10.82 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001783/0.3326, allocations: 67.95 kB / 427 MB, free: 10.76 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.3327, allocations: 55.77 kB / 427.1 MB, free: 10.7 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000101/0.3328, allocations: 71.48 kB / 427.1 MB, free: 10.63 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004088/0.3332, allocations: 236.3 kB / 427.4 MB, free: 10.41 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.3332, allocations: 0 / 427.4 MB, free: 10.41 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.192e-06/0.3332, allocations: 4 kB / 427.4 MB, free: 10.4 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.281e-06/0.3333, allocations: 0 / 427.4 MB, free: 10.4 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.0008264/0.3341, allocations: 482.4 kB / 427.8 MB, free: 9.895 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.3341, allocations: 8.031 kB / 427.9 MB, free: 9.887 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.294e-05/0.3342, allocations: 24.8 kB / 427.9 MB, free: 9.863 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004771/0.3347, allocations: 229.5 kB / 428.1 MB, free: 9.617 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.669e-05/0.3347, allocations: 384 / 428.1 MB, free: 9.617 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.064e-05/0.3347, allocations: 12.12 kB / 428.1 MB, free: 9.605 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004013/0.3351, allocations: 155.5 kB / 428.3 MB, free: 9.426 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.3351, allocations: 4 kB / 428.3 MB, free: 9.422 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.973e-05/0.3351, allocations: 7.984 kB / 428.3 MB, free: 9.414 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.3352, allocations: 0 / 428.3 MB, free: 9.414 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001338/0.3353, allocations: 35.97 kB / 428.3 MB, free: 9.379 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006235/0.3359, allocations: 357.4 kB / 428.7 MB, free: 8.98 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002877/0.3362, allocations: 119.9 kB / 428.8 MB, free: 8.836 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 9.856e-05/0.3363, allocations: 38.56 kB / 428.8 MB, free: 8.789 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.677e-05/0.3363, allocations: 8 kB / 428.8 MB, free: 8.781 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001981/0.3365, allocations: 83.31 kB / 428.9 MB, free: 8.688 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=9): time 1.373e-06/0.3365, allocations: 0 / 428.9 MB, free: 8.688 MB / 334.1 MB
Notification: Performance of matching and sorting (n=9): time 0.0004249/0.337, allocations: 157.4 kB / 429.1 MB, free: 8.527 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.3371, allocations: 162.5 kB / 429.2 MB, free: 8.332 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003593/0.3374, allocations: 321.9 kB / 429.5 MB, free: 8.012 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.807e-05/0.3375, allocations: 33.7 kB / 429.6 MB, free: 7.973 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.3376, allocations: 124.1 kB / 429.7 MB, free: 7.848 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 3.069e-05/0.3376, allocations: 23.83 kB / 429.7 MB, free: 7.824 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.057e-05/0.3377, allocations: 37.66 kB / 429.7 MB, free: 7.781 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001761/0.3378, allocations: 330.8 kB / 430.1 MB, free: 7.449 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 7.367e-05/0.3379, allocations: 23.98 kB / 430.1 MB, free: 7.426 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.338, allocations: 90.84 kB / 430.2 MB, free: 7.312 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.3382, allocations: 84.22 kB / 430.3 MB, free: 7.215 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3382, allocations: 0 / 430.3 MB, free: 7.215 MB / 334.1 MB
Notification: Performance of matching and sorting (n=11) (initialization): time 0.000229/0.3384, allocations: 117.5 kB / 430.4 MB, free: 7.094 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.3385, allocations: 8 kB / 430.4 MB, free: 7.086 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.3385, allocations: 0 / 430.4 MB, free: 7.086 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.3385, allocations: 4 kB / 430.4 MB, free: 7.082 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.3386, allocations: 15.98 kB / 430.4 MB, free: 7.066 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.3386, allocations: 4 kB / 430.4 MB, free: 7.062 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.166e-05/0.3387, allocations: 23.95 kB / 430.4 MB, free: 7.039 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.3387, allocations: 7.984 kB / 430.4 MB, free: 7.031 MB / 334.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.0001565/0.3388, allocations: 149.8 kB / 430.6 MB, free: 6.875 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.766e-05/0.3389, allocations: 65.55 kB / 430.7 MB, free: 6.805 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002877/0.3392, allocations: 119.6 kB / 430.8 MB, free: 6.68 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.3392, allocations: 0 / 430.8 MB, free: 6.68 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.3392, allocations: 4.062 kB / 430.8 MB, free: 6.676 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-06/0.3392, allocations: 12 kB / 430.8 MB, free: 6.664 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002194/0.3395, allocations: 208.6 kB / 431 MB, free: 6.418 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.3395, allocations: 0 / 431 MB, free: 6.418 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.129e-05/0.3395, allocations: 8 kB / 431 MB, free: 6.41 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.3395, allocations: 4 kB / 431 MB, free: 6.406 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.3395, allocations: 3.938 kB / 431 MB, free: 6.402 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3395, allocations: 0 / 431 MB, free: 6.402 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.3396, allocations: 11.92 kB / 431 MB, free: 6.391 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002795/0.3398, allocations: 162.6 kB / 431.2 MB, free: 6.207 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 8.976e-05/0.3399, allocations: 47.81 kB / 431.2 MB, free: 6.16 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.192e-05/0.34, allocations: 0 / 431.2 MB, free: 6.16 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.488e-05/0.34, allocations: 4.094 kB / 431.2 MB, free: 6.156 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.498e-05/0.3401, allocations: 15.92 kB / 431.2 MB, free: 6.141 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.3401, allocations: 7.938 kB / 431.3 MB, free: 6.133 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.0002641/0.3404, allocations: 241.2 kB / 431.5 MB, free: 5.895 MB / 334.1 MB
Notification: Performance of sort global known variables: time 1.01e-07/0.3404, allocations: 4 kB / 431.5 MB, free: 5.891 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0002631/0.3406, allocations: 35.94 kB / 431.5 MB, free: 5.855 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: 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.001531/0.3422, allocations: 416.9 kB / 431.9 MB, free: 5.602 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0002416/0.3424, allocations: 79.84 kB / 432 MB, free: 5.523 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3424, allocations: 0 / 432 MB, free: 5.523 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 8.555e-05/0.3425, allocations: 27.92 kB / 432 MB, free: 5.496 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004437/0.3429, allocations: 64.67 kB / 432.1 MB, free: 5.434 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00071/0.3436, allocations: 364.7 kB / 432.5 MB, free: 5.043 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004115/0.344, allocations: 0.7359 MB / 433.2 MB, free: 4.281 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 7.917e-05/0.3441, allocations: 33.64 kB / 433.2 MB, free: 4.25 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.747e-05/0.3442, allocations: 23.44 kB / 433.2 MB, free: 4.227 MB / 334.1 MB
Notification: Performance of SimCode: time 5.51e-07/0.3442, allocations: 0 / 433.2 MB, free: 4.227 MB / 334.1 MB
Notification: Performance of Templates: time 0.007308/0.3515, allocations: 2.86 MB / 436.1 MB, free: 1.395 MB / 334.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.012807280756533]