Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006905/0.00691, allocations: 181.6 kB / 16.45 MB, free: 5.711 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.978/3.978, allocations: 205.4 MB / 222.6 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001771/0.001771, allocations: 92.36 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.2351/0.2351, allocations: 12.6 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 20 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1525, allocations: 50.38 MB / 442.4 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003965/0.1566, allocations: 1.544 MB / 443.9 MB, free: 14.92 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00296/0.1596, allocations: 0.8941 MB / 444.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002409/0.16, allocations: 7.938 kB / 444.8 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009045/0.1609, allocations: 127.6 kB / 444.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005524/0.1615, allocations: 103.7 kB / 445 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001234/0.1627, allocations: 143.6 kB / 445.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004346/0.1632, allocations: 115.7 kB / 445.3 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002301/0.1635, allocations: 17.56 kB / 445.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002709/0.1638, allocations: 63.75 kB / 445.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002353/0.164, allocations: 63.7 kB / 445.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.848e-05/0.1641, allocations: 0 / 445.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003163/0.1645, allocations: 39.91 kB / 445.5 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.1646, allocations: 35.84 kB / 445.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.27e-05/0.1647, allocations: 45.64 kB / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004304/0.1652, allocations: 152 kB / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1652, allocations: 0 / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.1652, allocations: 0 / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.1653, allocations: 0 / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001221/0.1665, allocations: 496 kB / 446.2 MB, free: 12.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/0.1666, allocations: 12.03 kB / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.897e-05/0.1667, allocations: 15.81 kB / 446.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005815/0.1673, allocations: 265.6 kB / 446.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.828e-05/0.1674, allocations: 8 kB / 446.5 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.056e-05/0.1674, allocations: 4 kB / 446.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005642/0.168, allocations: 154.6 kB / 446.6 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.168, allocations: 0 / 446.6 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.462e-05/0.1681, allocations: 0 / 446.6 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.1681, allocations: 4 kB / 446.6 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002091/0.1683, allocations: 31.98 kB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008232/0.1692, allocations: 362.4 kB / 447 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004664/0.1697, allocations: 107.9 kB / 447.1 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.339e-05/0.1698, allocations: 8.062 kB / 447.1 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003387/0.1701, allocations: 75.45 kB / 447.2 MB, free: 11.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 6.221e-06/0.1702, allocations: 0 / 447.2 MB, free: 11.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0008136/0.171, allocations: 141.5 kB / 447.3 MB, free: 11.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.063e-05/0.1711, allocations: 136.8 kB / 447.5 MB, free: 11.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005622/0.1717, allocations: 261 kB / 447.7 MB, free: 10.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.312e-05/0.1718, allocations: 29.7 kB / 447.8 MB, free: 10.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.1719, allocations: 178.5 kB / 447.9 MB, free: 10.6 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.634e-05/0.172, allocations: 19.75 kB / 447.9 MB, free: 10.58 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.11e-05/0.1721, allocations: 0 / 447.9 MB, free: 10.58 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.276e-05/0.1722, allocations: 314.8 kB / 448.3 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.1724, allocations: 19.98 kB / 448.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/0.1726, allocations: 77.88 kB / 448.3 MB, free: 10.15 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001706/0.1728, allocations: 32.05 kB / 448.4 MB, free: 10.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.1728, allocations: 0 / 448.4 MB, free: 10.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004693/0.1733, allocations: 109.5 kB / 448.5 MB, free: 10 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.1733, allocations: 4 kB / 448.5 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.1734, allocations: 0 / 448.5 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.981e-05/0.1735, allocations: 4 kB / 448.5 MB, free: 9.996 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.1737, allocations: 8 kB / 448.5 MB, free: 9.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/0.1737, allocations: 4 kB / 448.5 MB, free: 9.984 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000243/0.174, allocations: 15.94 kB / 448.5 MB, free: 9.969 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.332e-05/0.174, allocations: 4 kB / 448.5 MB, free: 9.965 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002777/0.1743, allocations: 149.7 kB / 448.7 MB, free: 9.809 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002138/0.1745, allocations: 61.45 kB / 448.7 MB, free: 9.742 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.1747, allocations: 25.7 kB / 448.8 MB, free: 9.719 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.1747, allocations: 0 / 448.8 MB, free: 9.719 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.1747, allocations: 0 / 448.8 MB, free: 9.719 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.1748, allocations: 7.938 kB / 448.8 MB, free: 9.711 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003672/0.1751, allocations: 233.4 kB / 449 MB, free: 9.434 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.1752, allocations: 0 / 449 MB, free: 9.434 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.02e-05/0.1753, allocations: 8.062 kB / 449 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.428e-06/0.1753, allocations: 0 / 449 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.1753, allocations: 4 kB / 449 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.1754, allocations: 0 / 449 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.1754, allocations: 7.938 kB / 449 MB, free: 9.414 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000569/0.176, allocations: 178 kB / 449.2 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001742/0.1762, allocations: 104.9 kB / 449.3 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7e-05/0.1763, allocations: 7.984 kB / 449.3 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.1765, allocations: 12.06 kB / 449.3 MB, free: 9.062 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.422e-05/0.1766, allocations: 7.953 kB / 449.3 MB, free: 9.055 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.155e-05/0.1766, allocations: 7.984 kB / 449.3 MB, free: 9.047 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000398/0.177, allocations: 188.5 kB / 449.5 MB, free: 8.863 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.182e-06/0.177, allocations: 0 / 449.5 MB, free: 8.863 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006778/0.1777, allocations: 35.89 kB / 449.5 MB, free: 8.828 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001959/0.1798, allocations: 417.2 kB / 450 MB, free: 8.41 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005299/0.1804, allocations: 63.91 kB / 450 MB, free: 8.348 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.1804, allocations: 0 / 450 MB, free: 8.348 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001513/0.1806, allocations: 24.11 kB / 450 MB, free: 8.324 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007703/0.1814, allocations: 69.7 kB / 450.1 MB, free: 8.258 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.1826, allocations: 365.5 kB / 450.5 MB, free: 7.863 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.183, allocations: 0.7361 MB / 451.2 MB, free: 7.102 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.1831, allocations: 15.44 kB / 451.2 MB, free: 7.086 MB / 298.7 MB Notification: Performance of SimCode: time 1.653e-06/0.1831, allocations: 4 kB / 451.2 MB, free: 7.082 MB / 298.7 MB Notification: Performance of Templates: time 0.009978/0.1931, allocations: 2.582 MB / 453.8 MB, free: 4.496 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches