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.001366/0.001366, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.0009556/0.0009556, allocations: 147.2 kB / 24.98 MB, free: 8.305 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.9362/0.9362, allocations: 173.3 MB / 201.5 MB, free: 9.336 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.703e-06/1.703e-06, allocations: 0 / 268.1 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.118e-05/2.288e-05, allocations: 2.312 kB / 268.1 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.001958/0.001981, allocations: 1.591 MB / 269.6 MB, free: 5.141 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006341/0.002615, allocations: 470.6 kB / 270.1 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.002733, allocations: 3.938 kB / 270.1 MB, free: 4.672 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.377e-05/0.002787, allocations: 7.922 kB / 270.1 MB, free: 4.664 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001435/0.00293, allocations: 15.86 kB / 270.1 MB, free: 4.648 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002521/0.003182, allocations: 43.83 kB / 270.2 MB, free: 4.605 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.99e-05/0.003282, allocations: 47.78 kB / 270.2 MB, free: 4.559 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.104e-05/0.003373, allocations: 8 kB / 270.2 MB, free: 4.551 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.827e-05/0.003441, allocations: 39.89 kB / 270.3 MB, free: 4.512 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.085e-05/0.003482, allocations: 7.984 kB / 270.3 MB, free: 4.504 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.878e-05/0.003501, allocations: 4 kB / 270.3 MB, free: 4.5 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.398e-06/0.00351, allocations: 4 kB / 270.3 MB, free: 4.496 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.273e-05/0.003553, allocations: 11.94 kB / 270.3 MB, free: 4.484 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.48e-05/0.003578, allocations: 19.91 kB / 270.3 MB, free: 4.465 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.003684, allocations: 39.78 kB / 270.4 MB, free: 4.426 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.003686, allocations: 4 kB / 270.4 MB, free: 4.422 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.003686, allocations: 0 / 270.4 MB, free: 4.422 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.003691, allocations: 3.984 kB / 270.4 MB, free: 4.418 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.0003535/0.004044, allocations: 396.4 kB / 270.8 MB, free: 3.996 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.004076, allocations: 8.922 kB / 270.8 MB, free: 3.988 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.793e-05/0.004114, allocations: 16.89 kB / 270.8 MB, free: 3.973 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001496/0.004264, allocations: 132.5 kB / 270.9 MB, free: 3.816 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.004274, allocations: 8.375 kB / 270.9 MB, free: 3.809 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.869e-06/0.004284, allocations: 8.25 kB / 270.9 MB, free: 3.801 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002083/0.004492, allocations: 125.6 kB / 271 MB, free: 3.652 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.004499, allocations: 8.172 kB / 271.1 MB, free: 3.645 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.545e-06/0.004506, allocations: 384 / 271.1 MB, free: 3.645 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.004513, allocations: 3.938 kB / 271.1 MB, free: 3.641 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.084e-05/0.004534, allocations: 7.984 kB / 271.1 MB, free: 3.633 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002265/0.004761, allocations: 259.5 kB / 271.3 MB, free: 3.34 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.892e-05/0.00481, allocations: 62.05 kB / 271.4 MB, free: 3.254 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.666e-05/0.004836, allocations: 23.5 kB / 271.4 MB, free: 3.223 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.004853, allocations: 0 / 271.4 MB, free: 3.223 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.004875, allocations: 41.27 kB / 271.4 MB, free: 3.172 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 7.81e-07/0.004876, allocations: 4 kB / 271.4 MB, free: 3.168 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001257/0.005002, allocations: 49.58 kB / 271.5 MB, free: 3.113 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/0.005043, allocations: 85.11 kB / 271.6 MB, free: 3.012 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.001e-05/0.005133, allocations: 189.9 kB / 271.8 MB, free: 2.809 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.388e-06/0.005142, allocations: 25.7 kB / 271.8 MB, free: 2.777 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.26e-05/0.005185, allocations: 138.9 kB / 271.9 MB, free: 2.637 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.147e-05/0.005196, allocations: 0 / 271.9 MB, free: 2.637 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.559e-05/0.005222, allocations: 23.33 kB / 271.9 MB, free: 2.605 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.585e-05/0.005317, allocations: 496.1 kB / 272.4 MB, free: 2.109 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.107e-06/0.005327, allocations: 256 / 272.4 MB, free: 2.109 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.094e-06/0.005334, allocations: 8 kB / 272.4 MB, free: 2.102 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.017e-05/0.005354, allocations: 11.67 kB / 272.5 MB, free: 2.086 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.005355, allocations: 0 / 272.5 MB, free: 2.086 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.521e-05/0.00539, allocations: 37.64 kB / 272.5 MB, free: 2.043 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.005403, allocations: 7.938 kB / 272.5 MB, free: 2.035 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.005406, allocations: 0 / 272.5 MB, free: 2.035 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.708e-06/0.005416, allocations: 0 / 272.5 MB, free: 2.035 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.184e-05/0.005468, allocations: 4 kB / 272.5 MB, free: 2.031 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.005473, allocations: 3.984 kB / 272.5 MB, free: 2.027 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.876e-05/0.005492, allocations: 8.094 kB / 272.5 MB, free: 2.02 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.132e-06/0.005498, allocations: 4 kB / 272.5 MB, free: 2.016 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.743e-05/0.005556, allocations: 156.6 kB / 272.7 MB, free: 1.852 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.996e-05/0.005585, allocations: 41.59 kB / 272.7 MB, free: 1.805 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.476e-05/0.00561, allocations: 15.8 kB / 272.7 MB, free: 1.789 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.005611, allocations: 0 / 272.7 MB, free: 1.789 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.005614, allocations: 3.938 kB / 272.7 MB, free: 1.785 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.005617, allocations: 3.938 kB / 272.7 MB, free: 1.781 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.502e-05/0.005702, allocations: 120.6 kB / 272.8 MB, free: 1.629 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.42e-07/0.005702, allocations: 4 kB / 272.9 MB, free: 1.625 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.674e-05/0.005719, allocations: 8.031 kB / 272.9 MB, free: 1.617 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.005721, allocations: 3.984 kB / 272.9 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.005728, allocations: 7.938 kB / 272.9 MB, free: 1.605 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-07/0.005728, allocations: 0 / 272.9 MB, free: 1.605 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.005729, allocations: 0 / 272.9 MB, free: 1.605 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.114e-05/0.00581, allocations: 199.6 kB / 273.1 MB, free: 1.387 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.236e-05/0.005832, allocations: 19.88 kB / 273.1 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.17e-05/0.005844, allocations: 3.938 kB / 273.1 MB, free: 1.363 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.015e-05/0.005874, allocations: 4 kB / 273.1 MB, free: 1.359 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.839e-05/0.005903, allocations: 7.953 kB / 273.1 MB, free: 1.352 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.005905, allocations: 4 kB / 273.1 MB, free: 1.348 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.677e-05/0.005952, allocations: 150.3 kB / 273.3 MB, free: 1.203 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.005952, allocations: 0 / 273.3 MB, free: 1.203 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001317/0.006083, allocations: 4 kB / 273.3 MB, free: 1.199 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 5.563e-05/0.006139, allocations: 95.25 kB / 273.4 MB, free: 1.098 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.116e-05/0.0062, allocations: 15.67 kB / 273.4 MB, free: 1.078 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.006201, allocations: 0 / 273.4 MB, free: 1.078 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.115e-05/0.006213, allocations: 7.75 kB / 273.4 MB, free: 1.066 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002317/0.006444, allocations: 31.2 kB / 273.4 MB, free: 1.035 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003758/0.00682, allocations: 165.4 kB / 273.6 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.185e-05/0.006852, allocations: 55.36 kB / 273.6 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.971e-05/0.006872, allocations: 7.984 kB / 273.6 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.403e-05/0.006896, allocations: 8.5 kB / 273.6 MB, free: 0.75 MB / 250.7 MB Notification: Performance of SimCode: time 4.11e-07/0.006896, allocations: 0 / 273.6 MB, free: 0.75 MB / 250.7 MB Notification: Performance of Templates: time 0.001864/0.00876, allocations: 0.5837 MB / 274.2 MB, free: 180 kB / 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.568426050944254]