Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001797/0.001797, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.849/1.849, allocations: 230.6 MB / 254.1 MB, free: 15.08 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 51.92 kB / 373.5 MB, free: 9.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1495, allocations: 53.33 MB / 426.8 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004748/0.1542, allocations: 1.901 MB / 428.7 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00312/0.1574, allocations: 1.292 MB / 430 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002131/0.1576, allocations: 3.938 kB / 430 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004693/0.158, allocations: 67.67 kB / 430.1 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005088/0.1585, allocations: 131.4 kB / 430.2 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009012/0.1594, allocations: 227 kB / 430.4 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000351/0.1598, allocations: 183.4 kB / 430.6 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.1599, allocations: 17.56 kB / 430.6 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001448/0.1601, allocations: 83.62 kB / 430.7 MB, free: 468 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001596/0.1602, allocations: 87.66 kB / 430.8 MB, free: 380 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.532e-05/0.1603, allocations: 8 kB / 430.8 MB, free: 372 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002543/0.1605, allocations: 71.89 kB / 430.9 MB, free: 300 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.1607, allocations: 51.83 kB / 430.9 MB, free: 248 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001483/0.1608, allocations: 83.41 kB / 431 MB, free: 164 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3107/0.4715, allocations: 234.5 kB / 431.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.4716, allocations: 1.094 kB / 431.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4716, allocations: 0 / 431.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.506e-05/0.4716, allocations: 1.75 kB / 431.2 MB, free: 8.383 MB / 350.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.0009785/0.4726, allocations: 0.5434 MB / 431.8 MB, free: 7.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.264e-05/0.4726, allocations: 10.45 kB / 431.8 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001259/0.4727, allocations: 23.98 kB / 431.8 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005461/0.4733, allocations: 299.5 kB / 432.1 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.4733, allocations: 7.438 kB / 432.1 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.4733, allocations: 4.312 kB / 432.1 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004663/0.4738, allocations: 163.8 kB / 432.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.4738, allocations: 0 / 432.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.982e-05/0.4738, allocations: 1.562 kB / 432.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.4738, allocations: 4.766 kB / 432.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001419/0.474, allocations: 34.8 kB / 432.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007097/0.4747, allocations: 386.2 kB / 432.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003199/0.475, allocations: 114.9 kB / 432.8 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.4751, allocations: 41.36 kB / 432.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.345e-05/0.4752, allocations: 8.688 kB / 432.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000203/0.4754, allocations: 76.02 kB / 432.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.392e-06/0.4754, allocations: 0 / 432.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.00052/0.4759, allocations: 159 kB / 433.1 MB, free: 7.102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.476, allocations: 160.5 kB / 433.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004955/0.4765, allocations: 333.5 kB / 433.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.4765, allocations: 40.08 kB / 433.6 MB, free: 6.773 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.4766, allocations: 129.6 kB / 433.7 MB, free: 6.688 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.28e-05/0.4766, allocations: 23.47 kB / 433.7 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.436e-05/0.4767, allocations: 33.75 kB / 433.8 MB, free: 6.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.4769, allocations: 331.8 kB / 434.1 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.243e-05/0.4769, allocations: 23.44 kB / 434.1 MB, free: 6.344 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.477, allocations: 90.64 kB / 434.2 MB, free: 6.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001532/0.4772, allocations: 82.58 kB / 434.3 MB, free: 6.242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.4772, allocations: 3.406 kB / 434.3 MB, free: 6.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002443/0.4774, allocations: 125.4 kB / 434.4 MB, free: 6.199 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.4775, allocations: 7.344 kB / 434.4 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.4775, allocations: 0 / 434.4 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.43e-05/0.4775, allocations: 0.9375 kB / 434.4 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.4776, allocations: 20.47 kB / 434.4 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/0.4776, allocations: 4.969 kB / 434.4 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.659e-05/0.4777, allocations: 13.14 kB / 434.5 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.4777, allocations: 4.031 kB / 434.5 MB, free: 6.195 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.0001508/0.4779, allocations: 154.4 kB / 434.6 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.478, allocations: 74.3 kB / 434.7 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.654e-05/0.4781, allocations: 28.95 kB / 434.7 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.4781, allocations: 1.156 kB / 434.7 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.4781, allocations: 1.188 kB / 434.7 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.425e-06/0.4781, allocations: 1.156 kB / 434.7 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002611/0.4784, allocations: 251.9 kB / 435 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.4784, allocations: 0.7656 kB / 435 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.118e-05/0.4785, allocations: 14.06 kB / 435 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.932e-06/0.4785, allocations: 4.938 kB / 435 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.512e-05/0.4785, allocations: 2.375 kB / 435 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.4785, allocations: 1.062 kB / 435 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.4785, allocations: 3.906 kB / 435 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003033/0.4788, allocations: 175.8 kB / 435.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.691e-05/0.4789, allocations: 112.4 kB / 435.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.805e-05/0.4789, allocations: 6.875 kB / 435.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.635e-05/0.479, allocations: 2.156 kB / 435.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.009e-05/0.4791, allocations: 10.7 kB / 435.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.4791, allocations: 7.594 kB / 435.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003258/0.4794, allocations: 248.5 kB / 435.5 MB, free: 5.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4794, allocations: 0 / 435.5 MB, free: 5.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003265/0.4797, allocations: 42.47 kB / 435.6 MB, free: 5.531 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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.001584/0.4813, allocations: 428.6 kB / 436 MB, free: 5.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002788/0.4816, allocations: 66.52 kB / 436.1 MB, free: 5.387 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.4816, allocations: 3.719 kB / 436.1 MB, free: 5.387 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.307e-05/0.4817, allocations: 26.66 kB / 436.1 MB, free: 5.387 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000486/0.4822, allocations: 70.14 kB / 436.2 MB, free: 5.371 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007705/0.483, allocations: 374 kB / 436.5 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002767/0.4832, allocations: 0.74 MB / 437.3 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.4834, allocations: 29.08 kB / 437.3 MB, free: 4.469 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.782e-05/0.4834, allocations: 24.25 kB / 437.3 MB, free: 4.461 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4834, allocations: 0 / 437.3 MB, free: 4.461 MB / 350.1 MB Notification: Performance of Templates: time 0.008998/0.4924, allocations: 2.854 MB / 440.2 MB, free: 4.242 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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.547773137688637]