Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 102.6 kB / 16.5 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 46.86 kB / 300 MB, free: 6.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.154, allocations: 49.46 MB / 349.4 MB, free: 4.816 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.005179/0.1592, allocations: 1.96 MB / 351.4 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002128/0.1614, allocations: 1.056 MB / 352.4 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002281/0.1616, allocations: 3.938 kB / 352.4 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007271/0.1624, allocations: 147.7 kB / 352.6 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004146/0.1628, allocations: 110.1 kB / 352.7 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007681/0.1636, allocations: 178.9 kB / 352.9 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003783/0.164, allocations: 191.4 kB / 353 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001781/0.1642, allocations: 37.61 kB / 353.1 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002207/0.1644, allocations: 67.69 kB / 353.2 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001961/0.1646, allocations: 75.58 kB / 353.2 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.589e-05/0.1647, allocations: 4 kB / 353.2 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001972/0.1649, allocations: 51.95 kB / 353.3 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.165, allocations: 39.84 kB / 353.3 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.1651, allocations: 75.47 kB / 353.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003618/0.1655, allocations: 203.6 kB / 353.6 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1655, allocations: 0 / 353.6 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.1655, allocations: 4 kB / 353.6 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.1655, allocations: 0 / 353.6 MB, free: 0.6133 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001032/0.1665, allocations: 0.5196 MB / 354.1 MB, free: 40 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.1666, allocations: 8.031 kB / 354.1 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.1667, allocations: 24.66 kB / 354.1 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004594/0.1672, allocations: 270.7 kB / 354.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.1672, allocations: 4.375 kB / 354.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.383e-05/0.1672, allocations: 12.12 kB / 354.4 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004112/0.1677, allocations: 167.6 kB / 354.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.1677, allocations: 3.938 kB / 354.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.1677, allocations: 0 / 354.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.1677, allocations: 4 kB / 354.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001338/0.1679, allocations: 43.97 kB / 354.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006306/0.1685, allocations: 371.1 kB / 355 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.1688, allocations: 134.5 kB / 355.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.1689, allocations: 55.36 kB / 355.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.479e-05/0.169, allocations: 8 kB / 355.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002115/0.1692, allocations: 75.33 kB / 355.3 MB, free: 14.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 2.214e-06/0.1692, allocations: 0 / 355.3 MB, free: 14.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005602/0.1698, allocations: 161.2 kB / 355.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/0.1699, allocations: 166.5 kB / 355.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004233/0.1704, allocations: 265 kB / 355.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.1704, allocations: 33.7 kB / 355.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.168e-05/0.1705, allocations: 124.5 kB / 356 MB, free: 13.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.724e-05/0.1706, allocations: 15.81 kB / 356 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.985e-05/0.1706, allocations: 41.55 kB / 356.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.1708, allocations: 330.8 kB / 356.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.705e-05/0.1709, allocations: 23.98 kB / 356.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001167/0.171, allocations: 79.72 kB / 356.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001768/0.1712, allocations: 97.91 kB / 356.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.1712, allocations: 0 / 356.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002791/0.1715, allocations: 129.8 kB / 356.7 MB, free: 13.13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.1715, allocations: 11.98 kB / 356.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.1715, allocations: 64 / 356.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.1715, allocations: 8 kB / 356.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.94e-05/0.1717, allocations: 11.94 kB / 356.7 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.1717, allocations: 4 kB / 356.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.276e-05/0.1718, allocations: 15.86 kB / 356.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.1718, allocations: 4 kB / 356.8 MB, free: 13.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0002109/0.172, allocations: 150.7 kB / 356.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001667/0.1722, allocations: 77.34 kB / 357 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.453e-05/0.1723, allocations: 17.72 kB / 357 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/0.1723, allocations: 4 kB / 357 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/0.1723, allocations: 3.984 kB / 357 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.1724, allocations: 7.922 kB / 357 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002669/0.1726, allocations: 225.6 kB / 357.2 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.1727, allocations: 3.938 kB / 357.2 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.41e-05/0.1727, allocations: 7.984 kB / 357.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.1727, allocations: 4.094 kB / 357.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.1727, allocations: 4 kB / 357.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.1727, allocations: 4 kB / 357.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1727, allocations: 0 / 357.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003086/0.1731, allocations: 179.2 kB / 357.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/0.1732, allocations: 112.8 kB / 357.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.066e-05/0.1732, allocations: 7.984 kB / 357.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.606e-05/0.1733, allocations: 4 kB / 357.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.497e-05/0.1734, allocations: 4 kB / 357.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.231e-05/0.1734, allocations: 15.92 kB / 357.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002731/0.1737, allocations: 200.4 kB / 357.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1737, allocations: 0 / 357.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003299/0.174, allocations: 28 kB / 357.8 MB, free: 11.92 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.001323/0.1754, allocations: 428.4 kB / 358.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002531/0.1756, allocations: 75.84 kB / 358.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1756, allocations: 0 / 358.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.948e-05/0.1757, allocations: 27.98 kB / 358.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005312/0.1763, allocations: 76.94 kB / 358.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008011/0.1771, allocations: 375.3 kB / 358.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003766/0.1775, allocations: 0.7284 MB / 359.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001139/0.1776, allocations: 33.78 kB / 359.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.235e-05/0.1776, allocations: 27.36 kB / 359.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1777, allocations: 0 / 359.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of Templates: time 0.00769/0.1854, allocations: 2.521 MB / 362.1 MB, free: 7.77 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches