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.001471/0.001471, allocations: 115.5 kB / 17.69 MB, free: 5.312 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.001536/0.001536, allocations: 191 kB / 18.63 MB, free: 4.379 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.456/1.456, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 42.86 kB / 302.1 MB, free: 5.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1429, allocations: 49.45 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003317/0.1462, allocations: 1.899 MB / 353.4 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.148, allocations: 1.079 MB / 354.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.1482, allocations: 7.938 kB / 354.5 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005803/0.1488, allocations: 150 kB / 354.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003089/0.1491, allocations: 119.5 kB / 354.8 MB, free: 448 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005849/0.1497, allocations: 198.4 kB / 355 MB, free: 252 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002539/0.15, allocations: 207.4 kB / 355.2 MB, free: 44 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.1501, allocations: 29.67 kB / 355.2 MB, free: 16 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001308/0.1502, allocations: 79.67 kB / 355.3 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.1503, allocations: 75.62 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.637e-05/0.1504, allocations: 12 kB / 355.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.1505, allocations: 55.91 kB / 355.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.96e-05/0.1506, allocations: 47.83 kB / 355.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.91e-05/0.1507, allocations: 79.48 kB / 355.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002784/0.151, allocations: 211.2 kB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.151, allocations: 0 / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.151, allocations: 0 / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.151, allocations: 3.938 kB / 355.7 MB, free: 15.46 MB / 302.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.0007/0.1517, allocations: 0.5157 MB / 356.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.1518, allocations: 15.89 kB / 356.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.703e-05/0.1518, allocations: 24.66 kB / 356.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003345/0.1522, allocations: 278.7 kB / 356.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.1522, allocations: 4.375 kB / 356.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.33e-05/0.1522, allocations: 16.12 kB / 356.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003397/0.1526, allocations: 169.5 kB / 356.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.1526, allocations: 0 / 356.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.1526, allocations: 4 kB / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.1526, allocations: 0 / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001045/0.1527, allocations: 35.92 kB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004911/0.1532, allocations: 383.1 kB / 357.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002384/0.1535, allocations: 130.5 kB / 357.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.81e-05/0.1536, allocations: 59.42 kB / 357.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.001e-05/0.1536, allocations: 11.92 kB / 357.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001544/0.1538, allocations: 71.39 kB / 357.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.803e-06/0.1538, allocations: 4 kB / 357.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003878/0.1542, allocations: 157.2 kB / 357.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.913e-05/0.1543, allocations: 162.2 kB / 357.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000275/0.1546, allocations: 269 kB / 358 MB, free: 12.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.1546, allocations: 25.7 kB / 358 MB, free: 12.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.448e-05/0.1547, allocations: 124.8 kB / 358.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.321e-05/0.1547, allocations: 19.73 kB / 358.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.174e-05/0.1548, allocations: 37.62 kB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1549, allocations: 334.8 kB / 358.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.125e-05/0.155, allocations: 19.98 kB / 358.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/0.1551, allocations: 83.72 kB / 358.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001392/0.1552, allocations: 97.91 kB / 358.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1553, allocations: 0 / 358.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002257/0.1555, allocations: 129.4 kB / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.1555, allocations: 4 kB / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.1555, allocations: 320 / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.1555, allocations: 4 kB / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.932e-05/0.1556, allocations: 15.98 kB / 358.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.1557, allocations: 12.06 kB / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.238e-05/0.1558, allocations: 19.88 kB / 358.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.1558, allocations: 4 kB / 358.9 MB, free: 11.91 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.0001297/0.1559, allocations: 145.8 kB / 359.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.156, allocations: 77.33 kB / 359.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.757e-05/0.1561, allocations: 25.7 kB / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.1561, allocations: 7.938 kB / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1561, allocations: 96 / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.1561, allocations: 11.94 kB / 359.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002113/0.1563, allocations: 229.6 kB / 359.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.1564, allocations: 4 kB / 359.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.936e-05/0.1564, allocations: 7.938 kB / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1564, allocations: 0 / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.1564, allocations: 4 kB / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.1564, allocations: 3.984 kB / 359.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1564, allocations: 4 kB / 359.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002602/0.1567, allocations: 175.3 kB / 359.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.66e-05/0.1568, allocations: 112.8 kB / 359.7 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.298e-05/0.1568, allocations: 8 kB / 359.7 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.41e-05/0.1569, allocations: 4 kB / 359.7 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.081e-05/0.157, allocations: 3.984 kB / 359.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.02e-05/0.157, allocations: 15.94 kB / 359.7 MB, free: 10.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001837/0.1572, allocations: 200.5 kB / 359.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1572, allocations: 0 / 359.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002699/0.1575, allocations: 32 kB / 360 MB, free: 10.74 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.0009688/0.1584, allocations: 425.3 kB / 360.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002251/0.1587, allocations: 76.16 kB / 360.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1587, allocations: 4.062 kB / 360.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.117e-05/0.1588, allocations: 27.98 kB / 360.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004274/0.1592, allocations: 79.94 kB / 360.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005871/0.1598, allocations: 337.5 kB / 360.9 MB, free: 9.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.1601, allocations: 0.7323 MB / 361.6 MB, free: 9.172 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.569e-05/0.1602, allocations: 21.55 kB / 361.7 MB, free: 9.152 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.215e-05/0.1602, allocations: 19.44 kB / 361.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1602, allocations: 3.938 kB / 361.7 MB, free: 9.129 MB / 302.1 MB Notification: Performance of Templates: time 0.005831/0.166, allocations: 2.659 MB / 364.3 MB, free: 6.5 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 -s cvode -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/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