Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00548/0.005479, allocations: 186.8 kB / 16.45 MB, free: 5.582 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.929/3.929, allocations: 205.4 MB / 222.6 MB, free: 13.85 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.001861/0.001861, allocations: 110.7 kB / 270.9 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.2061/0.2061, allocations: 12.59 MB / 331.8 MB, free: 10.31 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.005138/0.005139, allocations: 13.53 kB / 392 MB, free: 54.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1759, allocations: 50.37 MB / 442.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1): time 0.00319/0.1791, allocations: 1.206 MB / 443.5 MB, free: 10.4 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006766/0.1799, allocations: 139.7 kB / 443.7 MB, free: 10.27 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.1801, allocations: 7.938 kB / 443.7 MB, free: 10.26 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.885e-05/0.1802, allocations: 3.984 kB / 443.7 MB, free: 10.25 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001478/0.1803, allocations: 4 kB / 443.7 MB, free: 10.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004451/0.1808, allocations: 31.91 kB / 443.7 MB, free: 10.22 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000183/0.181, allocations: 23.97 kB / 443.8 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.1812, allocations: 4 kB / 443.8 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.99e-05/0.1812, allocations: 15.92 kB / 443.8 MB, free: 10.18 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.588e-05/0.1813, allocations: 7.938 kB / 443.8 MB, free: 10.17 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.493e-05/0.1814, allocations: 4 kB / 443.8 MB, free: 10.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.988e-05/0.1814, allocations: 7.875 kB / 443.8 MB, free: 10.16 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.78e-05/0.1815, allocations: 11.97 kB / 443.8 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.902e-05/0.1816, allocations: 41.64 kB / 443.8 MB, free: 10.1 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001212/0.1817, allocations: 31.89 kB / 443.9 MB, free: 10.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1817, allocations: 0 / 443.9 MB, free: 10.07 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.125e-06/0.1817, allocations: 0 / 443.9 MB, free: 10.07 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1818, allocations: 0 / 443.9 MB, free: 10.07 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006504/0.1824, allocations: 352 kB / 444.2 MB, free: 9.676 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.097e-05/0.1825, allocations: 12.03 kB / 444.2 MB, free: 9.664 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.959e-05/0.1826, allocations: 3.906 kB / 444.2 MB, free: 9.66 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002775/0.1829, allocations: 190.9 kB / 444.4 MB, free: 9.434 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.1829, allocations: 7.938 kB / 444.4 MB, free: 9.426 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.781e-05/0.183, allocations: 11.94 kB / 444.4 MB, free: 9.414 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005131/0.1835, allocations: 113 kB / 444.6 MB, free: 9.285 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.1836, allocations: 0 / 444.6 MB, free: 9.285 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.1836, allocations: 11.98 kB / 444.6 MB, free: 9.273 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.1836, allocations: 4 kB / 444.6 MB, free: 9.27 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002042/0.1839, allocations: 15.98 kB / 444.6 MB, free: 9.254 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004674/0.1844, allocations: 265.6 kB / 444.8 MB, free: 8.941 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003623/0.1848, allocations: 142.3 kB / 445 MB, free: 8.766 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.225e-05/0.1848, allocations: 8.016 kB / 445 MB, free: 8.758 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.861e-05/0.1849, allocations: 30.56 kB / 445 MB, free: 8.719 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 4.889e-06/0.1849, allocations: 0 / 445 MB, free: 8.719 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0005642/0.1855, allocations: 85.58 kB / 445.1 MB, free: 8.629 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.8e-05/0.1856, allocations: 81.11 kB / 445.2 MB, free: 8.531 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002049/0.1858, allocations: 134 kB / 445.3 MB, free: 8.387 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.1859, allocations: 25.7 kB / 445.3 MB, free: 8.355 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.581e-05/0.186, allocations: 158.5 kB / 445.5 MB, free: 8.199 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.221e-05/0.186, allocations: 7.984 kB / 445.5 MB, free: 8.191 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.821e-06/0.186, allocations: 4.125 kB / 445.5 MB, free: 8.188 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.788e-05/0.1862, allocations: 314.8 kB / 445.8 MB, free: 7.871 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.1863, allocations: 8 kB / 445.8 MB, free: 7.863 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.1864, allocations: 35.42 kB / 445.9 MB, free: 7.816 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001229/0.1866, allocations: 23.88 kB / 445.9 MB, free: 7.793 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.1866, allocations: 0 / 445.9 MB, free: 7.793 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003392/0.187, allocations: 61.62 kB / 445.9 MB, free: 7.727 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.187, allocations: 11.94 kB / 446 MB, free: 7.715 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.1871, allocations: 128 / 446 MB, free: 7.715 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.513e-05/0.1871, allocations: 4 kB / 446 MB, free: 7.711 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.1873, allocations: 11.98 kB / 446 MB, free: 7.699 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.1873, allocations: 4 kB / 446 MB, free: 7.695 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.892e-05/0.1874, allocations: 8 kB / 446 MB, free: 7.688 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.1875, allocations: 0 / 446 MB, free: 7.688 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (step.y,sample.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001637/0.1877, allocations: 133.5 kB / 446.1 MB, free: 7.547 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001644/0.1878, allocations: 45.59 kB / 446.2 MB, free: 7.496 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.748e-05/0.1879, allocations: 16.23 kB / 446.2 MB, free: 7.477 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.1879, allocations: 0 / 446.2 MB, free: 7.477 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/0.188, allocations: 4 kB / 446.2 MB, free: 7.473 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.188, allocations: 0 / 446.2 MB, free: 7.473 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002987/0.1883, allocations: 165.7 kB / 446.3 MB, free: 7.262 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/0.1883, allocations: 7.953 kB / 446.3 MB, free: 7.254 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001676/0.1885, allocations: 8 kB / 446.4 MB, free: 7.246 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.348e-06/0.1886, allocations: 0 / 446.4 MB, free: 7.246 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.1886, allocations: 4 kB / 446.4 MB, free: 7.242 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.1886, allocations: 0 / 446.4 MB, free: 7.242 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.1886, allocations: 336 / 446.4 MB, free: 7.242 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008595/0.1972, allocations: 197.9 kB / 446.5 MB, free: 7.023 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/0.1974, allocations: 93 kB / 446.6 MB, free: 6.914 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.132e-05/0.1975, allocations: 0 / 446.6 MB, free: 6.914 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.1977, allocations: 8 kB / 446.6 MB, free: 6.906 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.846e-05/0.1978, allocations: 3.984 kB / 446.7 MB, free: 6.902 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.1978, allocations: 3.938 kB / 446.7 MB, free: 6.898 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001224/0.1979, allocations: 103.3 kB / 446.8 MB, free: 6.797 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.42e-07/0.198, allocations: 0 / 446.8 MB, free: 6.797 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005292/0.1985, allocations: 4 kB / 446.8 MB, free: 6.793 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (step.y,assignClock.u,assignClock.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0001443/0.1987, allocations: 91.25 kB / 446.8 MB, free: 6.695 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003562/0.1991, allocations: 43.91 kB / 446.9 MB, free: 6.652 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.1991, allocations: 0 / 446.9 MB, free: 6.652 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 9.385e-05/0.1992, allocations: 4 kB / 446.9 MB, free: 6.648 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005234/0.1997, allocations: 39.66 kB / 446.9 MB, free: 6.613 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000588/0.2004, allocations: 187.8 kB / 447.1 MB, free: 6.387 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002212/0.2006, allocations: 0.6887 MB / 447.8 MB, free: 5.672 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.649e-05/0.2007, allocations: 11.44 kB / 447.8 MB, free: 5.66 MB / 282.7 MB Notification: Performance of SimCode: time 2.174e-06/0.2007, allocations: 3.938 kB / 447.8 MB, free: 5.656 MB / 282.7 MB Notification: Performance of Templates: time 0.003931/0.2047, allocations: 0.6798 MB / 448.5 MB, free: 4.98 MB / 282.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches