Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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.0009136/0.0009136, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008812/0.0008812, allocations: 142.2 kB / 24.89 MB, free: 8.785 MB / 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.8884/0.8884, allocations: 173.4 MB / 201.5 MB, free: 8.242 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.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 268.5 MB, free: 9.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.131e-05/2.26e-05, allocations: 6.219 kB / 268.5 MB, free: 9.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.002191/0.002213, allocations: 1.587 MB / 270.1 MB, free: 8.219 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000702/0.002916, allocations: 461.3 kB / 270.5 MB, free: 7.766 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.871e-05/0.003004, allocations: 4 kB / 270.5 MB, free: 7.762 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.658e-05/0.003061, allocations: 11.86 kB / 270.5 MB, free: 7.75 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001445/0.003205, allocations: 13.34 kB / 270.5 MB, free: 7.738 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002197/0.003425, allocations: 39.83 kB / 270.6 MB, free: 7.699 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.773e-05/0.003523, allocations: 55.77 kB / 270.6 MB, free: 7.645 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.229e-05/0.003605, allocations: 12 kB / 270.6 MB, free: 7.633 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.831e-05/0.003693, allocations: 36.47 kB / 270.7 MB, free: 7.598 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.133e-05/0.003745, allocations: 12.56 kB / 270.7 MB, free: 7.586 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.03e-05/0.003765, allocations: 4 kB / 270.7 MB, free: 7.582 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.25e-05/0.003777, allocations: 5.875 kB / 270.7 MB, free: 7.578 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.321e-05/0.003821, allocations: 11.94 kB / 270.7 MB, free: 7.566 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.437e-05/0.003845, allocations: 15.92 kB / 270.7 MB, free: 7.551 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001018/0.003947, allocations: 39.78 kB / 270.8 MB, free: 7.512 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.003949, allocations: 3.984 kB / 270.8 MB, free: 7.508 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.003951, allocations: 0.9688 kB / 270.8 MB, free: 7.508 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.576e-06/0.003954, allocations: 0 / 270.8 MB, free: 7.508 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003291/0.004283, allocations: 273.9 kB / 271 MB, free: 7.219 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.004322, allocations: 8.031 kB / 271 MB, free: 7.211 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.829e-05/0.00435, allocations: 4.938 kB / 271 MB, free: 7.207 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/0.004498, allocations: 142.6 kB / 271.2 MB, free: 7.043 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.326e-06/0.004506, allocations: 5.125 kB / 271.2 MB, free: 7.039 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.197e-05/0.004518, allocations: 8.359 kB / 271.2 MB, free: 7.031 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/0.004678, allocations: 114.8 kB / 271.3 MB, free: 6.898 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.004684, allocations: 192 / 271.3 MB, free: 6.898 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.694e-06/0.004692, allocations: 4.359 kB / 271.3 MB, free: 6.895 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.004697, allocations: 7.875 kB / 271.3 MB, free: 6.887 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.216e-05/0.004709, allocations: 4 kB / 271.3 MB, free: 6.883 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001683/0.004877, allocations: 145.2 kB / 271.5 MB, free: 6.723 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.493e-05/0.004922, allocations: 45.11 kB / 271.5 MB, free: 6.66 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.719e-05/0.004939, allocations: 13.84 kB / 271.5 MB, free: 6.641 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.259e-05/0.004952, allocations: 4 kB / 271.5 MB, free: 6.637 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.144e-05/0.004973, allocations: 30.56 kB / 271.6 MB, free: 6.598 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 7.61e-07/0.004974, allocations: 0 / 271.6 MB, free: 6.598 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001125/0.005087, allocations: 49.56 kB / 271.6 MB, free: 6.543 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.229e-05/0.005129, allocations: 81.05 kB / 271.7 MB, free: 6.445 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.035e-05/0.005199, allocations: 138.6 kB / 271.8 MB, free: 6.297 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.107e-06/0.005208, allocations: 25.7 kB / 271.8 MB, free: 6.266 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.447e-05/0.005243, allocations: 88.12 kB / 271.9 MB, free: 6.176 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.228e-05/0.005255, allocations: 3.984 kB / 271.9 MB, free: 6.172 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.427e-05/0.005279, allocations: 17.92 kB / 272 MB, free: 6.148 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.963e-05/0.005359, allocations: 314.8 kB / 272.3 MB, free: 5.832 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.923e-06/0.005366, allocations: 4 kB / 272.3 MB, free: 5.828 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.881e-06/0.005372, allocations: 0 / 272.3 MB, free: 5.828 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.219e-05/0.005394, allocations: 12.84 kB / 272.3 MB, free: 5.812 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.005396, allocations: 0 / 272.3 MB, free: 5.812 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.636e-05/0.005432, allocations: 37.64 kB / 272.3 MB, free: 5.77 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.005443, allocations: 5.719 kB / 272.3 MB, free: 5.766 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.005448, allocations: 0 / 272.3 MB, free: 5.766 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.005458, allocations: 7.938 kB / 272.3 MB, free: 5.758 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.206e-05/0.00551, allocations: 8.078 kB / 272.3 MB, free: 5.75 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.815e-06/0.005513, allocations: 0 / 272.3 MB, free: 5.75 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.521e-05/0.005528, allocations: 7.938 kB / 272.3 MB, free: 5.742 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-06/0.005533, allocations: 0 / 272.3 MB, free: 5.742 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 5.56e-05/0.005589, allocations: 112.7 kB / 272.5 MB, free: 5.621 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.851e-05/0.005617, allocations: 37.69 kB / 272.5 MB, free: 5.578 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.384e-05/0.005641, allocations: 11.77 kB / 272.5 MB, free: 5.566 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.005644, allocations: 3.938 kB / 272.5 MB, free: 5.562 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.005646, allocations: 4 kB / 272.5 MB, free: 5.559 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-06/0.005648, allocations: 0 / 272.5 MB, free: 5.559 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.967e-05/0.005728, allocations: 73.92 kB / 272.6 MB, free: 5.469 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.005729, allocations: 0 / 272.6 MB, free: 5.469 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.488e-05/0.005744, allocations: 4 kB / 272.6 MB, free: 5.465 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.005745, allocations: 3.938 kB / 272.6 MB, free: 5.461 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.41e-06/0.005751, allocations: 3.984 kB / 272.6 MB, free: 5.457 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.005753, allocations: 8 kB / 272.6 MB, free: 5.449 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.005754, allocations: 0 / 272.6 MB, free: 5.449 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.878e-05/0.005823, allocations: 140.3 kB / 272.7 MB, free: 5.293 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.346e-05/0.005846, allocations: 7.953 kB / 272.7 MB, free: 5.285 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.049e-05/0.005857, allocations: 4 kB / 272.7 MB, free: 5.281 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.717e-05/0.005884, allocations: 4.031 kB / 272.8 MB, free: 5.277 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.318e-05/0.005907, allocations: 7.938 kB / 272.8 MB, free: 5.27 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.119e-06/0.005912, allocations: 7.984 kB / 272.8 MB, free: 5.262 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.114e-05/0.005943, allocations: 28.09 kB / 272.8 MB, free: 5.234 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005943, allocations: 0 / 272.8 MB, free: 5.234 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001102/0.006054, allocations: 4 kB / 272.8 MB, free: 5.23 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 6.655e-05/0.00612, allocations: 80.36 kB / 272.9 MB, free: 5.145 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 4.743e-05/0.006168, allocations: 8.859 kB / 272.9 MB, free: 5.133 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.00617, allocations: 4.062 kB / 272.9 MB, free: 5.129 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.154e-05/0.006181, allocations: 8.859 kB / 272.9 MB, free: 5.117 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001725/0.006354, allocations: 16.3 kB / 272.9 MB, free: 5.098 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003579/0.006712, allocations: 171.6 kB / 273.1 MB, free: 4.902 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.653e-05/0.006748, allocations: 59.34 kB / 273.1 MB, free: 4.824 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.817e-05/0.006766, allocations: 0 / 273.1 MB, free: 4.824 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.151e-05/0.006818, allocations: 63.52 kB / 273.2 MB, free: 4.762 MB / 250.7 MB Notification: Performance of SimCode: time 5.81e-07/0.006819, allocations: 0 / 273.2 MB, free: 4.762 MB / 250.7 MB Notification: Performance of Templates: time 0.002121/0.008939, allocations: 0.593 MB / 273.8 MB, free: 4.188 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/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: 2.615211085882038]