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.001207/0.001207, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 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.001093/0.001093, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 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 0.9832/0.9832, allocations: 173.4 MB / 201.1 MB, free: 9.355 MB / 186.7 MB " [Timeout remaining time 179] 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 2.124e-06/2.124e-06, allocations: 0 / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.284e-05/3.497e-05, allocations: 2.312 kB / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003885/0.00392, allocations: 1.92 MB / 269.9 MB, free: 4.531 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003023/0.006943, allocations: 1.106 MB / 271 MB, free: 3.418 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.00709, allocations: 4 kB / 271 MB, free: 3.414 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003863/0.007477, allocations: 67.61 kB / 271.1 MB, free: 3.348 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003454/0.007822, allocations: 95.53 kB / 271.2 MB, free: 3.254 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008068/0.008629, allocations: 255 kB / 271.4 MB, free: 3.004 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002736/0.008902, allocations: 175.5 kB / 271.6 MB, free: 2.832 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.009021, allocations: 21.8 kB / 271.6 MB, free: 2.809 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001788/0.0092, allocations: 95.67 kB / 271.7 MB, free: 2.715 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.009329, allocations: 71.84 kB / 271.8 MB, free: 2.645 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.807e-05/0.009357, allocations: 12 kB / 271.8 MB, free: 2.633 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001692/0.009527, allocations: 71.88 kB / 271.9 MB, free: 2.562 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.024e-05/0.009617, allocations: 51.78 kB / 271.9 MB, free: 2.512 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.883e-05/0.009686, allocations: 43.84 kB / 272 MB, free: 2.469 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003458/0.01003, allocations: 183.3 kB / 272.1 MB, free: 2.289 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.01004, allocations: 0 / 272.1 MB, free: 2.289 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.01004, allocations: 0 / 272.1 MB, free: 2.289 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.01005, allocations: 0 / 272.1 MB, free: 2.289 MB / 250.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.0007615/0.01081, allocations: 0.5672 MB / 272.7 MB, free: 1.68 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.01085, allocations: 8.031 kB / 272.7 MB, free: 1.672 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.206e-05/0.01093, allocations: 32.75 kB / 272.7 MB, free: 1.641 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003307/0.01126, allocations: 219.6 kB / 273 MB, free: 1.398 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.01128, allocations: 384 / 273 MB, free: 1.398 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.936e-05/0.0113, allocations: 12.38 kB / 273 MB, free: 1.387 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003515/0.01165, allocations: 153.3 kB / 273.1 MB, free: 1.207 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.01167, allocations: 7.875 kB / 273.1 MB, free: 1.199 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.01168, allocations: 4 kB / 273.1 MB, free: 1.195 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.01169, allocations: 4 kB / 273.1 MB, free: 1.191 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.8e-05/0.01177, allocations: 23.97 kB / 273.2 MB, free: 1.168 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005183/0.01229, allocations: 363 kB / 273.5 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002046/0.01249, allocations: 113.3 kB / 273.6 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.47e-05/0.01256, allocations: 43.05 kB / 273.7 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.01258, allocations: 4 kB / 273.7 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001472/0.01273, allocations: 84.97 kB / 273.8 MB, free: 476 kB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 2.404e-06/0.01273, allocations: 0 / 273.8 MB, free: 476 kB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003621/0.01309, allocations: 121.6 kB / 273.9 MB, free: 348 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.01317, allocations: 106.8 kB / 274 MB, free: 216 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003556/0.01352, allocations: 320.3 kB / 274.3 MB, free: 15.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.01355, allocations: 25.7 kB / 274.3 MB, free: 15.85 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.01367, allocations: 182.8 kB / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.776e-05/0.01371, allocations: 28.09 kB / 274.5 MB, free: 15.64 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.73e-05/0.01376, allocations: 35.36 kB / 274.6 MB, free: 15.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.01395, allocations: 0.504 MB / 275.1 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.383e-05/0.01399, allocations: 12.05 kB / 275.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.979e-05/0.01406, allocations: 68.75 kB / 275.1 MB, free: 14.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.687e-05/0.01415, allocations: 43.31 kB / 275.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.01415, allocations: 0 / 275.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001614/0.01431, allocations: 81.53 kB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.01433, allocations: 8 kB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.01434, allocations: 4.047 kB / 275.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.01435, allocations: 4 kB / 275.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.01447, allocations: 12 kB / 275.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.01447, allocations: 0 / 275.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.058e-05/0.01453, allocations: 7.953 kB / 275.3 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.666e-05/0.01455, allocations: 7.984 kB / 275.3 MB, free: 14.8 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001059/0.01466, allocations: 164.5 kB / 275.5 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.311e-05/0.01475, allocations: 65.56 kB / 275.5 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002187/0.01497, allocations: 103.4 kB / 275.6 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.01497, allocations: 4.062 kB / 275.6 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.01498, allocations: 4 kB / 275.6 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.01498, allocations: 0 / 275.6 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001976/0.01518, allocations: 188.5 kB / 275.8 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.01518, allocations: 4 kB / 275.8 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.536e-05/0.01526, allocations: 11.98 kB / 275.8 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.01526, allocations: 7.984 kB / 275.8 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.01528, allocations: 4.062 kB / 275.8 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.01528, allocations: 4 kB / 275.9 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.01528, allocations: 7.938 kB / 275.9 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002273/0.01551, allocations: 167.5 kB / 276 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.276e-05/0.01559, allocations: 47.7 kB / 276.1 MB, free: 13.94 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.446e-05/0.01563, allocations: 4 kB / 276.1 MB, free: 13.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.298e-05/0.01569, allocations: 0 / 276.1 MB, free: 13.94 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.473e-05/0.01575, allocations: 11.98 kB / 276.1 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.01577, allocations: 4 kB / 276.1 MB, free: 13.92 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001924/0.01597, allocations: 221.1 kB / 276.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.01597, allocations: 0 / 276.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002887/0.01626, allocations: 32 kB / 276.3 MB, free: 13.68 MB / 266.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,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 (10): * Single equations (assignments): 8 * 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.001317/0.01757, allocations: 393.7 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001811/0.01775, allocations: 51.59 kB / 276.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.01776, allocations: 0 / 276.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.807e-05/0.01782, allocations: 43.66 kB / 276.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004039/0.01823, allocations: 68.02 kB / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005777/0.01881, allocations: 328.1 kB / 277.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.533e-05/0.01885, allocations: 75.83 kB / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.653e-05/0.01891, allocations: 21.66 kB / 277.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.535e-05/0.01895, allocations: 28.5 kB / 277.3 MB, free: 12.77 MB / 266.7 MB Notification: Performance of SimCode: time 1.192e-06/0.01895, allocations: 0 / 277.3 MB, free: 12.77 MB / 266.7 MB Notification: Performance of Templates: time 0.005456/0.02441, allocations: 3.069 MB / 280.4 MB, free: 9.734 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.114576851017773]