Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002775/0.002781, allocations: 188.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.9/3.9, allocations: 205.4 MB / 222.6 MB, free: 13.84 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.001831/0.001831, allocations: 94.78 kB / 270.9 MB, free: 13.37 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.2231/0.2231, allocations: 12.59 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008915/0.0008917, allocations: 16.81 kB / 392 MB, free: 54.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1639, allocations: 50.37 MB / 442.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked): time 0.003083/0.167, allocations: 1.187 MB / 443.5 MB, free: 10.42 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006862/0.1678, allocations: 135.7 kB / 443.7 MB, free: 10.29 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.168, allocations: 4 kB / 443.7 MB, free: 10.28 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.979e-05/0.168, allocations: 0 / 443.7 MB, free: 10.28 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001514/0.1682, allocations: 11.97 kB / 443.7 MB, free: 10.27 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000376/0.1686, allocations: 31.91 kB / 443.7 MB, free: 10.24 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001861/0.1688, allocations: 12 kB / 443.7 MB, free: 10.23 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.169, allocations: 19.91 kB / 443.7 MB, free: 10.21 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.113e-05/0.169, allocations: 7.938 kB / 443.8 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.742e-05/0.1691, allocations: 7.938 kB / 443.8 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.271e-05/0.1691, allocations: 4 kB / 443.8 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.783e-05/0.1692, allocations: 0 / 443.8 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.35e-05/0.1692, allocations: 15.92 kB / 443.8 MB, free: 10.17 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.279e-05/0.1693, allocations: 25.7 kB / 443.8 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001051/0.1694, allocations: 31.89 kB / 443.8 MB, free: 10.11 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1694, allocations: 0 / 443.8 MB, free: 10.11 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1695, allocations: 4 kB / 443.8 MB, free: 10.11 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.1695, allocations: 0 / 443.8 MB, free: 10.11 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0006094/0.1701, allocations: 352 kB / 444.2 MB, free: 9.715 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.863e-05/0.1702, allocations: 11.97 kB / 444.2 MB, free: 9.703 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.8e-05/0.1703, allocations: 11.91 kB / 444.2 MB, free: 9.691 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002892/0.1706, allocations: 182.9 kB / 444.4 MB, free: 9.473 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.302e-05/0.1707, allocations: 4 kB / 444.4 MB, free: 9.469 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.23e-05/0.1707, allocations: 7.953 kB / 444.4 MB, free: 9.461 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004118/0.1711, allocations: 81.06 kB / 444.5 MB, free: 9.363 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.1712, allocations: 7.984 kB / 444.5 MB, free: 9.355 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.674e-05/0.1712, allocations: 4 kB / 444.5 MB, free: 9.352 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.1712, allocations: 0 / 444.5 MB, free: 9.352 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001397/0.1714, allocations: 8 kB / 444.5 MB, free: 9.344 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005002/0.1719, allocations: 269.7 kB / 444.8 MB, free: 9.027 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.1721, allocations: 37.22 kB / 444.8 MB, free: 8.973 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.1721, allocations: 0 / 444.8 MB, free: 8.973 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/0.1722, allocations: 38.5 kB / 444.8 MB, free: 8.926 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 3.276e-06/0.1722, allocations: 0 / 444.8 MB, free: 8.926 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0004324/0.1727, allocations: 61.66 kB / 444.9 MB, free: 8.859 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.522e-05/0.1728, allocations: 81.05 kB / 445 MB, free: 8.762 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.173, allocations: 129.8 kB / 445.1 MB, free: 8.625 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.173, allocations: 37.94 kB / 445.1 MB, free: 8.582 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.394e-05/0.1731, allocations: 158.5 kB / 445.3 MB, free: 8.426 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.68e-05/0.1731, allocations: 0 / 445.3 MB, free: 8.426 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.18e-06/0.1732, allocations: 0 / 445.3 MB, free: 8.426 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.329e-05/0.1733, allocations: 310.8 kB / 445.6 MB, free: 8.113 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.946e-05/0.1734, allocations: 8 kB / 445.6 MB, free: 8.105 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.695e-05/0.1735, allocations: 13.72 kB / 445.6 MB, free: 8.086 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.47e-05/0.1736, allocations: 16.05 kB / 445.6 MB, free: 8.07 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.1736, allocations: 3.953 kB / 445.6 MB, free: 8.066 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002326/0.1739, allocations: 49.62 kB / 445.7 MB, free: 8.012 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.1739, allocations: 4 kB / 445.7 MB, free: 8.008 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.1739, allocations: 4 kB / 445.7 MB, free: 8.004 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.26e-05/0.174, allocations: 3.938 kB / 445.7 MB, free: 8 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.754e-05/0.174, allocations: 0 / 445.7 MB, free: 8 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.1741, allocations: 64 / 445.7 MB, free: 8 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.25e-05/0.1742, allocations: 8 kB / 445.7 MB, free: 7.992 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.1742, allocations: 0 / 445.7 MB, free: 7.992 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001408/0.1744, allocations: 121.6 kB / 445.8 MB, free: 7.863 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.1745, allocations: 45.5 kB / 445.9 MB, free: 7.812 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.409e-05/0.1746, allocations: 11.48 kB / 445.9 MB, free: 7.801 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.1746, allocations: 4 kB / 445.9 MB, free: 7.797 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.1746, allocations: 0 / 445.9 MB, free: 7.797 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.1746, allocations: 3.984 kB / 445.9 MB, free: 7.793 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000264/0.1749, allocations: 165.7 kB / 446 MB, free: 7.582 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.1749, allocations: 0 / 446 MB, free: 7.582 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.848e-05/0.175, allocations: 3.953 kB / 446.1 MB, free: 7.578 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-05/0.175, allocations: 4 kB / 446.1 MB, free: 7.574 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.175, allocations: 0 / 446.1 MB, free: 7.574 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.1751, allocations: 0 / 446.1 MB, free: 7.574 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.1751, allocations: 0 / 446.1 MB, free: 7.574 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003004/0.1754, allocations: 173.9 kB / 446.2 MB, free: 7.379 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.854e-05/0.1755, allocations: 93 kB / 446.3 MB, free: 7.27 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.091e-05/0.1756, allocations: 8 kB / 446.3 MB, free: 7.262 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001297/0.1757, allocations: 0 / 446.3 MB, free: 7.262 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.907e-05/0.1758, allocations: 3.984 kB / 446.3 MB, free: 7.258 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.1758, allocations: 4 kB / 446.3 MB, free: 7.254 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001204/0.1759, allocations: 103.2 kB / 446.4 MB, free: 7.152 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.51e-07/0.176, allocations: 7.969 kB / 446.4 MB, free: 7.145 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004995/0.1765, allocations: 4 kB / 446.4 MB, free: 7.141 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: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001367/0.1766, allocations: 91.25 kB / 446.5 MB, free: 7.043 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002525/0.1769, allocations: 19.98 kB / 446.6 MB, free: 7.023 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.1769, allocations: 3.938 kB / 446.6 MB, free: 7.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.044e-05/0.177, allocations: 4 kB / 446.6 MB, free: 7.016 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005025/0.1776, allocations: 27.91 kB / 446.6 MB, free: 6.992 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005433/0.1781, allocations: 175.2 kB / 446.8 MB, free: 6.781 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.1784, allocations: 0.6848 MB / 447.4 MB, free: 6.07 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.581e-05/0.1785, allocations: 11.44 kB / 447.5 MB, free: 6.059 MB / 282.7 MB Notification: Performance of SimCode: time 2.234e-06/0.1785, allocations: 4.094 kB / 447.5 MB, free: 6.055 MB / 282.7 MB Notification: Performance of Templates: time 0.003695/0.1822, allocations: 0.5953 MB / 448.1 MB, free: 5.461 MB / 282.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches