Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.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.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002668/0.002668, allocations: 182.9 kB / 16.45 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.582/3.582, allocations: 205.4 MB / 222.6 MB, free: 9.121 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.001773/0.001775, allocations: 94.8 kB / 270.9 MB, free: 8.355 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.2991/0.2991, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000921/0.0009221, allocations: 12 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1597/0.1607, allocations: 50.38 MB / 442.4 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample): time 0.007794/0.1686, allocations: 1.533 MB / 443.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002995/0.1716, allocations: 0.9758 MB / 444.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002443/0.172, allocations: 3.938 kB / 444.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004505/0.1724, allocations: 55.8 kB / 444.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004126/0.1729, allocations: 75.75 kB / 445 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001575/0.1745, allocations: 207.4 kB / 445.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005002/0.175, allocations: 107.7 kB / 445.3 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/0.1753, allocations: 21.55 kB / 445.3 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002382/0.1756, allocations: 63.75 kB / 445.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.1758, allocations: 59.69 kB / 445.4 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.564e-05/0.1759, allocations: 8 kB / 445.5 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000285/0.1762, allocations: 39.92 kB / 445.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.1763, allocations: 43.83 kB / 445.5 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.781e-05/0.1764, allocations: 49.64 kB / 445.6 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004449/0.1769, allocations: 171.9 kB / 445.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1769, allocations: 0 / 445.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.1769, allocations: 0 / 445.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.1769, allocations: 0 / 445.7 MB, free: 13.05 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.1782, allocations: 0.5038 MB / 446.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.791e-05/0.1783, allocations: 12.03 kB / 446.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.1784, allocations: 23.72 kB / 446.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006859/0.1791, allocations: 274.4 kB / 446.6 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.581e-05/0.1792, allocations: 8 kB / 446.6 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.054e-05/0.1792, allocations: 4 kB / 446.6 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000611/0.1799, allocations: 159.5 kB / 446.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.1799, allocations: 0 / 446.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.1799, allocations: 8 kB / 446.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.18, allocations: 4 kB / 446.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002454/0.1802, allocations: 35.91 kB / 446.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.1813, allocations: 374.5 kB / 447.1 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005513/0.1819, allocations: 115.9 kB / 447.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.442e-05/0.182, allocations: 4 kB / 447.3 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000342/0.1823, allocations: 83.44 kB / 447.3 MB, free: 11.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 6.783e-06/0.1823, allocations: 0 / 447.3 MB, free: 11.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0007821/0.1831, allocations: 161.2 kB / 447.5 MB, free: 11.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.1833, allocations: 154.5 kB / 447.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006724/0.184, allocations: 338.6 kB / 448 MB, free: 10.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.888e-05/0.184, allocations: 25.7 kB / 448 MB, free: 10.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.1842, allocations: 190.4 kB / 448.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.646e-05/0.1843, allocations: 23.86 kB / 448.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.197e-05/0.1843, allocations: 0 / 448.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.482e-05/0.1844, allocations: 318.8 kB / 448.5 MB, free: 9.992 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.1846, allocations: 19.98 kB / 448.5 MB, free: 9.973 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002233/0.1848, allocations: 86.84 kB / 448.6 MB, free: 9.863 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001865/0.185, allocations: 28 kB / 448.7 MB, free: 9.836 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.1851, allocations: 0 / 448.7 MB, free: 9.836 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005177/0.1856, allocations: 117.5 kB / 448.8 MB, free: 9.715 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.221e-05/0.1857, allocations: 8 kB / 448.8 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.1857, allocations: 0 / 448.8 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.592e-05/0.1857, allocations: 0 / 448.8 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002527/0.186, allocations: 19.94 kB / 448.8 MB, free: 9.688 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.464e-05/0.186, allocations: 7.984 kB / 448.8 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.1863, allocations: 7.953 kB / 448.8 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.265e-05/0.1863, allocations: 4 kB / 448.8 MB, free: 9.668 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,superSample.y,superSample.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.0002809/0.1866, allocations: 157.7 kB / 449 MB, free: 9.504 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001798/0.1868, allocations: 69.34 kB / 449 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001072/0.1869, allocations: 29.7 kB / 449.1 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.187, allocations: 0 / 449.1 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.187, allocations: 4.312 kB / 449.1 MB, free: 9.398 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.187, allocations: 0 / 449.1 MB, free: 9.398 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003612/0.1874, allocations: 249.4 kB / 449.3 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.1874, allocations: 0 / 449.3 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001709/0.1876, allocations: 11.98 kB / 449.3 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.073e-05/0.1876, allocations: 8.062 kB / 449.3 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.272e-05/0.1877, allocations: 0 / 449.3 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.143e-06/0.1877, allocations: 4 kB / 449.3 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/0.1877, allocations: 3.938 kB / 449.3 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005961/0.1883, allocations: 182 kB / 449.5 MB, free: 8.863 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001996/0.1885, allocations: 116.7 kB / 449.6 MB, free: 8.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.101e-05/0.1886, allocations: 8 kB / 449.6 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.1888, allocations: 7.984 kB / 449.6 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.927e-05/0.1889, allocations: 11.95 kB / 449.7 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.761e-05/0.189, allocations: 7.984 kB / 449.7 MB, free: 8.695 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005259/0.1895, allocations: 233.9 kB / 449.9 MB, free: 8.465 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.1896, allocations: 0 / 449.9 MB, free: 8.465 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007084/0.1903, allocations: 39.98 kB / 449.9 MB, free: 8.426 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,superSample.y,sample.y,superSample.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.001934/0.1923, allocations: 421.3 kB / 450.3 MB, free: 8.004 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006228/0.193, allocations: 75.84 kB / 450.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.193, allocations: 0 / 450.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001834/0.1932, allocations: 27.92 kB / 450.4 MB, free: 7.902 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00504/0.1983, allocations: 64.81 kB / 450.5 MB, free: 7.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001368/0.1997, allocations: 429.9 kB / 450.9 MB, free: 7.387 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.2002, allocations: 0.7439 MB / 451.7 MB, free: 6.617 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.2003, allocations: 19.44 kB / 451.7 MB, free: 6.602 MB / 298.7 MB Notification: Performance of SimCode: time 1.483e-06/0.2004, allocations: 4 kB / 451.7 MB, free: 6.598 MB / 298.7 MB Notification: Performance of Templates: time 0.01134/0.2117, allocations: 2.863 MB / 454.6 MB, free: 3.73 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches