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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001059/0.00106, allocations: 182.7 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009505/0.0009505, allocations: 99.88 kB / 291.5 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002635/0.0002635, allocations: 7.938 kB / 351.1 MB, free: 15.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.324, allocations: 50.42 MB / 401.5 MB, free: 32.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1122/0.4362, allocations: 81.08 MB / 482.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002664/0.4365, allocations: 88.95 kB / 482.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01859/0.4551, allocations: 6.702 MB / 489.4 MB, free: 8.664 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4552, allocations: 3.938 kB / 489.4 MB, free: 8.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.37e-05/0.4552, allocations: 4 kB / 489.4 MB, free: 8.656 MB / 362.7 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.0007308/0.4559, allocations: 0.5427 MB / 489.9 MB, free: 8.059 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.456, allocations: 8.031 kB / 489.9 MB, free: 8.051 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.296e-05/0.4561, allocations: 19.81 kB / 489.9 MB, free: 8.031 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004478/0.4565, allocations: 286.5 kB / 490.2 MB, free: 7.711 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.4565, allocations: 4 kB / 490.2 MB, free: 7.707 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.985e-05/0.4566, allocations: 4 kB / 490.2 MB, free: 7.703 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003268/0.4569, allocations: 163.5 kB / 490.4 MB, free: 7.516 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.4569, allocations: 0 / 490.4 MB, free: 7.516 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.992e-05/0.4569, allocations: 11.95 kB / 490.4 MB, free: 7.504 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.457, allocations: 0 / 490.4 MB, free: 7.504 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001217/0.4571, allocations: 39.97 kB / 490.4 MB, free: 7.465 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005926/0.4577, allocations: 406.3 kB / 490.8 MB, free: 7.012 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002312/0.4579, allocations: 123.9 kB / 491 MB, free: 6.863 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.458, allocations: 7.938 kB / 491 MB, free: 6.855 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001799/0.4582, allocations: 83.44 kB / 491.1 MB, free: 6.762 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.4582, allocations: 0 / 491.1 MB, free: 6.762 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004243/0.4586, allocations: 153.3 kB / 491.2 MB, free: 6.605 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.95e-05/0.4587, allocations: 166.2 kB / 491.4 MB, free: 6.406 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003452/0.4591, allocations: 293.8 kB / 491.7 MB, free: 6.109 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.4591, allocations: 33.95 kB / 491.7 MB, free: 6.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.597e-05/0.4592, allocations: 132 kB / 491.8 MB, free: 5.938 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.473e-05/0.4592, allocations: 11.91 kB / 491.8 MB, free: 5.926 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.909e-06/0.4592, allocations: 0 / 491.8 MB, free: 5.926 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.4594, allocations: 330.8 kB / 492.1 MB, free: 5.594 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.161e-05/0.4594, allocations: 27.92 kB / 492.2 MB, free: 5.566 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.4596, allocations: 98.84 kB / 492.3 MB, free: 5.445 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.517e-05/0.4596, allocations: 27.98 kB / 492.3 MB, free: 5.418 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4597, allocations: 0 / 492.3 MB, free: 5.418 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002247/0.4599, allocations: 129.3 kB / 492.4 MB, free: 5.285 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.4599, allocations: 12.08 kB / 492.4 MB, free: 5.273 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.4599, allocations: 0 / 492.4 MB, free: 5.273 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.4599, allocations: 4 kB / 492.4 MB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.4601, allocations: 15.98 kB / 492.5 MB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.178e-06/0.4601, allocations: 7.938 kB / 492.5 MB, free: 5.246 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.156e-05/0.4602, allocations: 8 kB / 492.5 MB, free: 5.238 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.4602, allocations: 7.984 kB / 492.5 MB, free: 5.23 MB / 362.7 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001438/0.4603, allocations: 148.8 kB / 492.6 MB, free: 5.078 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.839e-05/0.4604, allocations: 77.28 kB / 492.7 MB, free: 4.996 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002724/0.4607, allocations: 135.3 kB / 492.8 MB, free: 4.855 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.4607, allocations: 0 / 492.8 MB, free: 4.855 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.4607, allocations: 7.938 kB / 492.8 MB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.4607, allocations: 3.984 kB / 492.8 MB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002164/0.461, allocations: 241.9 kB / 493.1 MB, free: 4.559 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.461, allocations: 8 kB / 493.1 MB, free: 4.551 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.094e-05/0.4611, allocations: 15.92 kB / 493.1 MB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.4611, allocations: 4.062 kB / 493.1 MB, free: 4.531 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.4611, allocations: 4 kB / 493.1 MB, free: 4.527 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.4611, allocations: 3.953 kB / 493.1 MB, free: 4.523 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.4611, allocations: 4 kB / 493.1 MB, free: 4.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002825/0.4614, allocations: 193.9 kB / 493.3 MB, free: 4.293 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.4615, allocations: 124.8 kB / 493.4 MB, free: 4.152 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.373e-05/0.4616, allocations: 7.984 kB / 493.4 MB, free: 4.145 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.885e-05/0.4617, allocations: 4 kB / 493.4 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.453e-05/0.4617, allocations: 11.98 kB / 493.5 MB, free: 4.129 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.4617, allocations: 4 kB / 493.5 MB, free: 4.125 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002189/0.462, allocations: 241.9 kB / 493.7 MB, free: 3.887 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.462, allocations: 0 / 493.7 MB, free: 3.887 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002943/0.4623, allocations: 47.94 kB / 493.7 MB, free: 3.84 MB / 362.7 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,sample1.u,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 (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001014/0.4633, allocations: 442.9 kB / 494.2 MB, free: 3.562 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002639/0.4636, allocations: 91.81 kB / 494.3 MB, free: 3.473 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4636, allocations: 0 / 494.3 MB, free: 3.473 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.537e-05/0.4637, allocations: 31.98 kB / 494.3 MB, free: 3.441 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003443/0.464, allocations: 60.73 kB / 494.4 MB, free: 3.383 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006112/0.4646, allocations: 412.2 kB / 494.8 MB, free: 2.945 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.4649, allocations: 0.7439 MB / 495.5 MB, free: 2.176 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.732e-05/0.465, allocations: 33.53 kB / 495.5 MB, free: 2.145 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.309e-05/0.4651, allocations: 19.44 kB / 495.6 MB, free: 2.129 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4651, allocations: 0 / 495.6 MB, free: 2.129 MB / 362.7 MB Notification: Performance of Templates: time 0.005894/0.471, allocations: 2.722 MB / 498.3 MB, free: 15.44 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches