Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.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.001409/0.001409, allocations: 103 kB / 16.03 MB, free: 5.883 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.001976/0.001976, allocations: 195.2 kB / 16.95 MB, free: 5.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.841/1.841, allocations: 205.1 MB / 222.8 MB, free: 4.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08519/0.08519, allocations: 12.6 MB / 282.7 MB, free: 8.789 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00185/0.00185, allocations: 87.88 kB / 343 MB, free: 21.07 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1491, allocations: 49.39 MB / 392.4 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.004342/0.1535, allocations: 1.969 MB / 394.3 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00189/0.1554, allocations: 0.9792 MB / 395.3 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001479/0.1556, allocations: 4 kB / 395.3 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007431/0.1563, allocations: 155.5 kB / 395.5 MB, free: 480 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003208/0.1567, allocations: 103.6 kB / 395.6 MB, free: 376 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005057/0.1572, allocations: 163.7 kB / 395.7 MB, free: 212 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002411/0.1574, allocations: 191.5 kB / 395.9 MB, free: 20 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001528/0.1576, allocations: 41.92 kB / 396 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001184/0.1577, allocations: 79.64 kB / 396 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001408/0.1579, allocations: 79.62 kB / 396.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.977e-05/0.1579, allocations: 8 kB / 396.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001414/0.158, allocations: 51.97 kB / 396.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.28e-05/0.1581, allocations: 43.84 kB / 396.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.974e-05/0.1583, allocations: 79.42 kB / 396.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00031/0.1586, allocations: 207.3 kB / 396.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.1586, allocations: 4 kB / 396.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1586, allocations: 0 / 396.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.1586, allocations: 4 kB / 396.5 MB, free: 15.43 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.0009156/0.1595, allocations: 0.5118 MB / 397 MB, free: 14.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.1596, allocations: 8.031 kB / 397 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.87e-05/0.1597, allocations: 24.66 kB / 397.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003572/0.16, allocations: 270.7 kB / 397.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.16, allocations: 8.375 kB / 397.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.03e-05/0.1601, allocations: 8.125 kB / 397.3 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004396/0.1605, allocations: 183.3 kB / 397.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.1605, allocations: 3.938 kB / 397.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.1606, allocations: 4 kB / 397.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.1606, allocations: 3.984 kB / 397.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001186/0.1607, allocations: 35.98 kB / 397.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005937/0.1613, allocations: 371.3 kB / 397.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002414/0.1616, allocations: 130.5 kB / 398.1 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.1617, allocations: 55.36 kB / 398.1 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.008e-05/0.1617, allocations: 8 kB / 398.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002164/0.1619, allocations: 79.38 kB / 398.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.903e-06/0.162, allocations: 0 / 398.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004038/0.1624, allocations: 157.2 kB / 398.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.1625, allocations: 166.5 kB / 398.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002902/0.1628, allocations: 277 kB / 398.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.1628, allocations: 29.7 kB / 398.8 MB, free: 12.83 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.266e-05/0.1629, allocations: 120.3 kB / 398.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.136e-05/0.163, allocations: 15.92 kB / 398.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.861e-05/0.163, allocations: 37.61 kB / 399 MB, free: 12.65 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.1632, allocations: 330.8 kB / 399.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.209e-05/0.1632, allocations: 23.98 kB / 399.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.686e-05/0.1633, allocations: 87.7 kB / 399.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.1635, allocations: 97.86 kB / 399.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.1635, allocations: 0 / 399.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002599/0.1638, allocations: 133.3 kB / 399.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.1638, allocations: 8.188 kB / 399.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.1638, allocations: 0 / 399.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.1638, allocations: 4 kB / 399.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.795e-05/0.1639, allocations: 15.94 kB / 399.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.164, allocations: 0 / 399.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.284e-05/0.164, allocations: 23.77 kB / 399.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.1641, allocations: 8 kB / 399.7 MB, free: 11.87 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,sample.u,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.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.0001362/0.1642, allocations: 137.8 kB / 399.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.539e-05/0.1643, allocations: 77.44 kB / 399.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.39e-05/0.1644, allocations: 21.7 kB / 399.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1644, allocations: 4 kB / 399.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.1644, allocations: 0 / 399.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.1644, allocations: 15.86 kB / 399.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002339/0.1647, allocations: 233.8 kB / 400.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.1647, allocations: 8 kB / 400.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.521e-05/0.1647, allocations: 4 kB / 400.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1647, allocations: 0 / 400.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/0.1647, allocations: 4.094 kB / 400.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1648, allocations: 4 kB / 400.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1648, allocations: 0 / 400.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002445/0.165, allocations: 179.3 kB / 400.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.705e-05/0.1651, allocations: 104.9 kB / 400.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.234e-05/0.1651, allocations: 15.92 kB / 400.5 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.075e-05/0.1652, allocations: 4 kB / 400.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.722e-05/0.1653, allocations: 7.984 kB / 400.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.1653, allocations: 11.94 kB / 400.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001753/0.1655, allocations: 196.5 kB / 400.7 MB, free: 10.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1655, allocations: 0 / 400.7 MB, free: 10.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002657/0.1657, allocations: 35.91 kB / 400.7 MB, free: 10.72 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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.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.0009302/0.1667, allocations: 417 kB / 401.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002224/0.1669, allocations: 79.84 kB / 401.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.1669, allocations: 4 kB / 401.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.597e-05/0.167, allocations: 19.94 kB / 401.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004322/0.1674, allocations: 73.08 kB / 401.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006215/0.1681, allocations: 406.1 kB / 401.7 MB, free: 9.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004413/0.1685, allocations: 0.7319 MB / 402.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.595e-05/0.1686, allocations: 25.53 kB / 402.5 MB, free: 8.914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.963e-05/0.1687, allocations: 19.44 kB / 402.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1687, allocations: 0 / 402.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of Templates: time 0.006695/0.1754, allocations: 2.619 MB / 405.1 MB, free: 6.273 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches