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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001747/0.001747, allocations: 112.5 kB / 16.51 MB, free: 6.707 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.002115/0.002115, allocations: 190.5 kB / 17.43 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.53/1.53, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001017/0.001017, allocations: 51.98 kB / 300.1 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1556, allocations: 49.45 MB / 349.5 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.004917/0.1606, allocations: 1.964 MB / 351.5 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002396/0.1631, allocations: 1.06 MB / 352.5 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002417/0.1633, allocations: 4 kB / 352.5 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000761/0.1642, allocations: 143.6 kB / 352.7 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003971/0.1646, allocations: 99.7 kB / 352.8 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007971/0.1654, allocations: 186.9 kB / 353 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003691/0.1658, allocations: 191.4 kB / 353.1 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.166, allocations: 41.66 kB / 353.2 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001689/0.1661, allocations: 75.62 kB / 353.3 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002075/0.1663, allocations: 71.58 kB / 353.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.524e-05/0.1664, allocations: 7.984 kB / 353.3 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002499/0.1667, allocations: 43.98 kB / 353.4 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.1668, allocations: 43.83 kB / 353.4 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.1669, allocations: 71.47 kB / 353.5 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005081/0.1674, allocations: 203.5 kB / 353.7 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.124e-05/0.1675, allocations: 0 / 353.7 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1675, allocations: 4 kB / 353.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.532e-05/0.1675, allocations: 0 / 353.7 MB, free: 0.5547 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.001687/0.1692, allocations: 0.5159 MB / 354.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.461e-05/0.1693, allocations: 8.031 kB / 354.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.643e-05/0.1694, allocations: 38.75 kB / 354.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.1695, allocations: 28.66 kB / 354.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004896/0.17, allocations: 266.8 kB / 354.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.17, allocations: 4.375 kB / 354.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.511e-05/0.17, allocations: 15.94 kB / 354.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005323/0.1706, allocations: 163.6 kB / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.1706, allocations: 0 / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/0.1706, allocations: 4 kB / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.1707, allocations: 7.938 kB / 354.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001386/0.1708, allocations: 35.92 kB / 354.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008155/0.1716, allocations: 379.1 kB / 355.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004432/0.1721, allocations: 130.5 kB / 355.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.1722, allocations: 59.36 kB / 355.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.538e-05/0.1723, allocations: 11.92 kB / 355.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002642/0.1726, allocations: 79.45 kB / 355.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 2.445e-06/0.1726, allocations: 0 / 355.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005064/0.1731, allocations: 157.8 kB / 355.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001566/0.1733, allocations: 162.2 kB / 355.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003609/0.1736, allocations: 272.9 kB / 356 MB, free: 13.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.569e-05/0.1737, allocations: 29.7 kB / 356 MB, free: 13.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.1738, allocations: 116.4 kB / 356.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.903e-05/0.1738, allocations: 23.73 kB / 356.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.812e-05/0.1739, allocations: 37.62 kB / 356.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.1741, allocations: 330.8 kB / 356.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.113e-05/0.1742, allocations: 20 kB / 356.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001416/0.1744, allocations: 87.77 kB / 356.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002234/0.1746, allocations: 97.91 kB / 356.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.1746, allocations: 0 / 356.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002893/0.1749, allocations: 129.4 kB / 356.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.067e-05/0.175, allocations: 8 kB / 356.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.175, allocations: 0 / 356.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.175, allocations: 4 kB / 356.9 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.696e-05/0.1751, allocations: 11.98 kB / 356.9 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.1751, allocations: 7.938 kB / 356.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.1753, allocations: 11.88 kB / 356.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.1753, allocations: 4 kB / 356.9 MB, free: 12.97 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.0002287/0.1755, allocations: 154.8 kB / 357 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/0.1757, allocations: 73.34 kB / 357.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.661e-05/0.1758, allocations: 25.7 kB / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.1758, allocations: 4 kB / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.1758, allocations: 0 / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.1758, allocations: 3.938 kB / 357.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003014/0.1761, allocations: 229.6 kB / 357.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1761, allocations: 0 / 357.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.739e-05/0.1762, allocations: 8.031 kB / 357.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.1762, allocations: 8 kB / 357.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.1762, allocations: 0 / 357.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.414e-06/0.1762, allocations: 12 kB / 357.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.1762, allocations: 3.984 kB / 357.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003412/0.1766, allocations: 179.2 kB / 357.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003281/0.1769, allocations: 112.8 kB / 357.7 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.177, allocations: 4 kB / 357.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.895e-05/0.1771, allocations: 4 kB / 357.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.203e-05/0.1771, allocations: 11.92 kB / 357.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.673e-05/0.1772, allocations: 8 kB / 357.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000298/0.1775, allocations: 196.5 kB / 357.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1775, allocations: 0 / 357.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003433/0.1778, allocations: 32 kB / 357.9 MB, free: 11.8 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.002041/0.1799, allocations: 1.028 MB / 359 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003667/0.1803, allocations: 79.84 kB / 359.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.1803, allocations: 0 / 359.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.1804, allocations: 27.94 kB / 359.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006341/0.1811, allocations: 72.38 kB / 359.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003928/0.185, allocations: 2.054 MB / 361.2 MB, free: 8.539 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008622/0.1859, allocations: 0.7361 MB / 361.9 MB, free: 7.777 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000187/0.1861, allocations: 29.5 kB / 362 MB, free: 7.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.1863, allocations: 51.42 kB / 362 MB, free: 7.699 MB / 302.1 MB Notification: Performance of SimCode: time 2.324e-06/0.1863, allocations: 0 / 362 MB, free: 7.699 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02407/0.2104, allocations: 4.574 MB / 366.6 MB, free: 3.285 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003252/0.2107, allocations: 257.2 kB / 366.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.301/2.512, allocations: 3.094 kB / 366.8 MB, free: 2.992 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins1/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