Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006223/0.006227, allocations: 181.9 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 3.777/3.777, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.001845/0.001845, allocations: 86.86 kB / 270.9 MB, free: 8.363 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.1795/0.1795, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008776/0.000878, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1576, allocations: 50.37 MB / 442.4 MB, free: 16.47 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 0.003821/0.1615, allocations: 1.529 MB / 443.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007397/0.169, allocations: 0.9525 MB / 444.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002467/0.1693, allocations: 0 / 444.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005061/0.1698, allocations: 59.73 kB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004863/0.1703, allocations: 75.83 kB / 445 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001565/0.1719, allocations: 199.4 kB / 445.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004683/0.1724, allocations: 107.8 kB / 445.3 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.1727, allocations: 25.52 kB / 445.3 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002042/0.1729, allocations: 59.77 kB / 445.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002026/0.1731, allocations: 59.69 kB / 445.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.875e-05/0.1732, allocations: 4 kB / 445.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003104/0.1735, allocations: 43.97 kB / 445.5 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001301/0.1737, allocations: 43.83 kB / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.1739, allocations: 53.64 kB / 445.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004904/0.1744, allocations: 171.9 kB / 445.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1744, allocations: 0 / 445.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.1744, allocations: 0 / 445.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.1744, allocations: 0 / 445.7 MB, free: 13.08 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.001143/0.1756, allocations: 0.5038 MB / 446.2 MB, free: 12.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.57e-05/0.1757, allocations: 12.02 kB / 446.2 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.1758, allocations: 27.72 kB / 446.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006478/0.1765, allocations: 266.5 kB / 446.5 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.999e-05/0.1766, allocations: 8 kB / 446.5 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.892e-05/0.1766, allocations: 4 kB / 446.5 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006535/0.1773, allocations: 159.5 kB / 446.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.1773, allocations: 0 / 446.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/0.1774, allocations: 7.984 kB / 446.7 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.1774, allocations: 4 kB / 446.7 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002414/0.1777, allocations: 31.92 kB / 446.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009989/0.1787, allocations: 382.5 kB / 447.1 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004796/0.1792, allocations: 107.9 kB / 447.2 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.057e-05/0.1793, allocations: 12.05 kB / 447.2 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003152/0.1796, allocations: 83.45 kB / 447.3 MB, free: 11.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 4.248e-06/0.1797, allocations: 0 / 447.3 MB, free: 11.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0007856/0.1805, allocations: 153.3 kB / 447.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.116e-05/0.1806, allocations: 154.2 kB / 447.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006636/0.1813, allocations: 338.8 kB / 447.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.68e-05/0.1814, allocations: 33.69 kB / 448 MB, free: 10.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.1815, allocations: 190.3 kB / 448.2 MB, free: 10.36 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.642e-05/0.1816, allocations: 15.81 kB / 448.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.185e-05/0.1816, allocations: 3.938 kB / 448.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.1817, allocations: 318.8 kB / 448.5 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001686/0.1819, allocations: 16 kB / 448.5 MB, free: 10 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002173/0.1822, allocations: 86.84 kB / 448.6 MB, free: 9.895 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001838/0.1824, allocations: 31.98 kB / 448.6 MB, free: 9.863 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.1824, allocations: 0 / 448.6 MB, free: 9.863 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004711/0.1829, allocations: 113.5 kB / 448.7 MB, free: 9.746 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.1829, allocations: 8 kB / 448.7 MB, free: 9.738 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.183, allocations: 0 / 448.7 MB, free: 9.738 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.152e-05/0.183, allocations: 48 / 448.7 MB, free: 9.738 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002352/0.1833, allocations: 27.91 kB / 448.8 MB, free: 9.711 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.1833, allocations: 4 kB / 448.8 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002281/0.1835, allocations: 7.953 kB / 448.8 MB, free: 9.699 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.582e-05/0.1836, allocations: 4 kB / 448.8 MB, free: 9.695 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,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.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.000274/0.1839, allocations: 165.7 kB / 448.9 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001794/0.1841, allocations: 61.36 kB / 449 MB, free: 9.457 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.1842, allocations: 29.7 kB / 449 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.984e-06/0.1842, allocations: 0 / 449 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.537e-06/0.1842, allocations: 4 kB / 449 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.1842, allocations: 3.984 kB / 449 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003495/0.1846, allocations: 241.4 kB / 449.3 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.1846, allocations: 0 / 449.3 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.1848, allocations: 8 kB / 449.3 MB, free: 9.129 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.024e-05/0.1848, allocations: 8.375 kB / 449.3 MB, free: 9.121 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.1849, allocations: 3.984 kB / 449.3 MB, free: 9.117 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.557e-06/0.1849, allocations: 8 kB / 449.3 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.1849, allocations: 3.938 kB / 449.3 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005625/0.1855, allocations: 186 kB / 449.5 MB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002091/0.1857, allocations: 120.8 kB / 449.6 MB, free: 8.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.287e-05/0.1858, allocations: 0 / 449.6 MB, free: 8.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.186, allocations: 7.938 kB / 449.6 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.899e-05/0.1861, allocations: 15.94 kB / 449.6 MB, free: 8.727 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.435e-05/0.1862, allocations: 4 kB / 449.6 MB, free: 8.723 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006438/0.1868, allocations: 237.9 kB / 449.9 MB, free: 8.488 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.32e-07/0.1869, allocations: 96 / 449.9 MB, free: 8.488 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007091/0.1876, allocations: 39.94 kB / 449.9 MB, free: 8.449 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.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.002024/0.1896, allocations: 421.2 kB / 450.3 MB, free: 8.027 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006109/0.1903, allocations: 71.91 kB / 450.4 MB, free: 7.957 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.1904, allocations: 0 / 450.4 MB, free: 7.957 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001795/0.1906, allocations: 27.92 kB / 450.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008147/0.1914, allocations: 61.7 kB / 450.5 MB, free: 7.871 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00132/0.1928, allocations: 433.8 kB / 450.9 MB, free: 7.414 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/0.1932, allocations: 0.7439 MB / 451.6 MB, free: 6.645 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/0.1934, allocations: 23.42 kB / 451.7 MB, free: 6.625 MB / 298.7 MB Notification: Performance of SimCode: time 1.863e-06/0.1934, allocations: 4 kB / 451.7 MB, free: 6.621 MB / 298.7 MB Notification: Performance of Templates: time 0.0112/0.2046, allocations: 2.867 MB / 454.5 MB, free: 3.75 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches