Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.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.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003024/0.003034, allocations: 181.3 kB / 16.44 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.029/4.029, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.001786/0.001786, allocations: 93.67 kB / 270.9 MB, free: 8.375 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.1949/0.1949, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001005/0.001006, allocations: 12 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1585, allocations: 50.37 MB / 442.4 MB, free: 16.47 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.003866/0.1625, allocations: 1.556 MB / 443.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00337/0.1659, allocations: 0.9914 MB / 444.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002652/0.1663, allocations: 0 / 444.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004689/0.1668, allocations: 55.8 kB / 445 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004698/0.1673, allocations: 87.69 kB / 445 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001486/0.1688, allocations: 203.4 kB / 445.2 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004397/0.1692, allocations: 103.8 kB / 445.3 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002247/0.1695, allocations: 21.55 kB / 445.4 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002287/0.1697, allocations: 71.67 kB / 445.4 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002536/0.17, allocations: 59.7 kB / 445.5 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.856e-05/0.1701, allocations: 8 kB / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003291/0.1705, allocations: 47.91 kB / 445.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.1706, allocations: 47.83 kB / 445.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.425e-05/0.1707, allocations: 57.56 kB / 445.7 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004601/0.1712, allocations: 171.9 kB / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1712, allocations: 0 / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1712, allocations: 0 / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.59e-05/0.1713, allocations: 3.938 kB / 445.8 MB, free: 12.98 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001234/0.1725, allocations: 0.5116 MB / 446.3 MB, free: 12.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.635e-05/0.1726, allocations: 16.03 kB / 446.3 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.1727, allocations: 27.62 kB / 446.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006633/0.1734, allocations: 274.5 kB / 446.6 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.806e-05/0.1735, allocations: 8 kB / 446.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.459e-05/0.1735, allocations: 4 kB / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000674/0.1742, allocations: 184.3 kB / 446.8 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.1743, allocations: 0 / 446.8 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.148e-05/0.1743, allocations: 7.984 kB / 446.8 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.1744, allocations: 4 kB / 446.8 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002561/0.1746, allocations: 39.91 kB / 446.9 MB, free: 11.78 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009722/0.1756, allocations: 407.2 kB / 447.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005152/0.1762, allocations: 138.5 kB / 447.4 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.802e-05/0.1763, allocations: 0 / 447.4 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000364/0.1767, allocations: 83.44 kB / 447.5 MB, free: 11.06 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 4.048e-06/0.1767, allocations: 0 / 447.5 MB, free: 11.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.002156/0.1789, allocations: 165.3 kB / 447.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.179, allocations: 191.9 kB / 447.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000732/0.1799, allocations: 342.5 kB / 448.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.946e-05/0.18, allocations: 29.7 kB / 448.2 MB, free: 10.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.1801, allocations: 178.8 kB / 448.4 MB, free: 10.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.897e-05/0.1802, allocations: 24.11 kB / 448.4 MB, free: 10.08 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.52e-05/0.1802, allocations: 4 kB / 448.4 MB, free: 10.08 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.474e-05/0.1803, allocations: 314.8 kB / 448.7 MB, free: 9.762 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.1805, allocations: 27.98 kB / 448.8 MB, free: 9.734 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002332/0.1808, allocations: 100.5 kB / 448.8 MB, free: 9.605 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001943/0.181, allocations: 36 kB / 448.9 MB, free: 9.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.181, allocations: 0 / 448.9 MB, free: 9.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005535/0.1816, allocations: 117.7 kB / 449 MB, free: 9.449 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.423e-05/0.1817, allocations: 12 kB / 449 MB, free: 9.438 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.1817, allocations: 0 / 449 MB, free: 9.438 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.982e-05/0.1817, allocations: 7.938 kB / 449 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002751/0.182, allocations: 19.98 kB / 449 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/0.1821, allocations: 4 kB / 449 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002637/0.1824, allocations: 11.86 kB / 449.1 MB, free: 9.395 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.668e-05/0.1824, allocations: 8 kB / 449.1 MB, free: 9.387 MB / 298.7 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002882/0.1827, allocations: 161.5 kB / 449.2 MB, free: 9.219 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002495/0.183, allocations: 81.34 kB / 449.3 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.1831, allocations: 29.7 kB / 449.3 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.575e-06/0.1831, allocations: 0 / 449.3 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.1832, allocations: 7.938 kB / 449.3 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.1832, allocations: 0 / 449.3 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003865/0.1836, allocations: 249.8 kB / 449.6 MB, free: 8.805 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.1836, allocations: 4 kB / 449.6 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002153/0.1839, allocations: 16 kB / 449.6 MB, free: 8.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.081e-05/0.1839, allocations: 0 / 449.6 MB, free: 8.785 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.91e-05/0.1839, allocations: 12.08 kB / 449.6 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.184, allocations: 0 / 449.6 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.184, allocations: 3.938 kB / 449.6 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006691/0.1847, allocations: 220.4 kB / 449.8 MB, free: 8.508 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002067/0.1849, allocations: 116.8 kB / 449.9 MB, free: 8.375 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.577e-05/0.185, allocations: 7.953 kB / 450 MB, free: 8.367 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002007/0.1852, allocations: 11.98 kB / 450 MB, free: 8.355 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.389e-05/0.1853, allocations: 4 kB / 450 MB, free: 8.352 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004208/0.1895, allocations: 7.984 kB / 450 MB, free: 8.344 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006047/0.1902, allocations: 241.9 kB / 450.2 MB, free: 8.105 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.02e-07/0.1903, allocations: 0 / 450.2 MB, free: 8.105 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008053/0.1911, allocations: 39.98 kB / 450.2 MB, free: 8.066 MB / 298.7 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,table.y,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 (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.001908/0.1931, allocations: 437.2 kB / 450.7 MB, free: 7.629 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006604/0.1938, allocations: 79.89 kB / 450.8 MB, free: 7.551 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.583e-06/0.1938, allocations: 0 / 450.8 MB, free: 7.551 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001797/0.194, allocations: 32.3 kB / 450.8 MB, free: 7.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008743/0.1949, allocations: 76.78 kB / 450.9 MB, free: 7.441 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.1963, allocations: 451.3 kB / 451.3 MB, free: 6.965 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003372/0.1967, allocations: 0.7518 MB / 452.1 MB, free: 6.188 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.1968, allocations: 27.44 kB / 452.1 MB, free: 6.164 MB / 298.7 MB Notification: Performance of SimCode: time 1.523e-06/0.1969, allocations: 0 / 452.1 MB, free: 6.164 MB / 298.7 MB Notification: Performance of Templates: time 0.01173/0.2086, allocations: 3.047 MB / 455.1 MB, free: 3.109 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches