Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.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.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002921/0.002927, allocations: 181.2 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.728/3.728, 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.002075/0.002075, allocations: 94.86 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.1921/0.1921, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001017/0.001017, allocations: 20 kB / 392 MB, free: 66.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1749/0.176, allocations: 50.37 MB / 442.3 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.002887/0.179, allocations: 1.128 MB / 443.5 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003551/0.1794, allocations: 35.84 kB / 443.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.258e-05/0.1796, allocations: 0 / 443.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.292e-05/0.1796, allocations: 0 / 443.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.125e-05/0.1797, allocations: 0 / 443.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004144/0.1801, allocations: 23.97 kB / 443.5 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001137/0.1802, allocations: 15.92 kB / 443.5 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.1804, allocations: 4 kB / 443.6 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.662e-05/0.1805, allocations: 11.98 kB / 443.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.897e-05/0.1806, allocations: 15.86 kB / 443.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.482e-05/0.1806, allocations: 4 kB / 443.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.608e-05/0.1806, allocations: 0 / 443.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.574e-05/0.1807, allocations: 11.94 kB / 443.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.412e-05/0.1807, allocations: 25.7 kB / 443.6 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001046/0.1809, allocations: 23.89 kB / 443.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1809, allocations: 0 / 443.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.1809, allocations: 0 / 443.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.1809, allocations: 4 kB / 443.6 MB, free: 15.14 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005979/0.1815, allocations: 331.5 kB / 444 MB, free: 14.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.916e-05/0.1816, allocations: 12.03 kB / 444 MB, free: 14.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.446e-05/0.1817, allocations: 7.906 kB / 444 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002531/0.182, allocations: 175 kB / 444.2 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.144e-05/0.1821, allocations: 4 kB / 444.2 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.125e-05/0.1821, allocations: 3.953 kB / 444.2 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006963/0.1828, allocations: 119.2 kB / 444.3 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.1829, allocations: 0 / 444.3 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.1829, allocations: 0 / 444.3 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.1829, allocations: 8 kB / 444.3 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002541/0.1832, allocations: 23.97 kB / 444.3 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002027/0.1834, allocations: 153.7 kB / 444.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003412/0.1838, allocations: 50.55 kB / 444.5 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.1838, allocations: 3.938 kB / 444.5 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.1839, allocations: 38.55 kB / 444.6 MB, free: 14.06 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 4.258e-06/0.1839, allocations: 4 kB / 444.6 MB, free: 14.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0005621/0.1845, allocations: 73.72 kB / 444.6 MB, free: 13.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.491e-05/0.1846, allocations: 59.39 kB / 444.7 MB, free: 13.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.1847, allocations: 101.9 kB / 444.8 MB, free: 13.8 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.1848, allocations: 25.7 kB / 444.8 MB, free: 13.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.855e-05/0.1849, allocations: 150.6 kB / 445 MB, free: 13.62 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.1849, allocations: 3.984 kB / 445 MB, free: 13.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.218e-06/0.1849, allocations: 4 kB / 445 MB, free: 13.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.206e-05/0.185, allocations: 318.8 kB / 445.3 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.25e-05/0.1851, allocations: 7.875 kB / 445.3 MB, free: 13.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.741e-05/0.1852, allocations: 31.44 kB / 445.3 MB, free: 13.24 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.905e-05/0.1853, allocations: 11.98 kB / 445.3 MB, free: 13.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.1853, allocations: 0 / 445.3 MB, free: 13.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000241/0.1855, allocations: 57.64 kB / 445.4 MB, free: 13.17 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.474e-05/0.1856, allocations: 7.953 kB / 445.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.1856, allocations: 0 / 445.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.874e-05/0.1857, allocations: 7.984 kB / 445.4 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.1858, allocations: 7.938 kB / 445.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.1858, allocations: 3.938 kB / 445.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.046e-05/0.1859, allocations: 0 / 445.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.1859, allocations: 8.375 kB / 445.4 MB, free: 13.13 MB / 298.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: 5 (step.counter,$CLKPRE.step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.0001317/0.1861, allocations: 121.7 kB / 445.5 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003199/0.1864, allocations: 65.58 kB / 445.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.909e-05/0.1865, allocations: 7.453 kB / 445.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.1865, allocations: 0 / 445.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.1865, allocations: 4 kB / 445.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.1865, allocations: 0 / 445.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001315/0.1867, allocations: 161.6 kB / 445.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1867, allocations: 3.938 kB / 445.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.467e-05/0.1868, allocations: 4.234 kB / 445.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.1868, allocations: 0 / 445.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.1869, allocations: 12 kB / 445.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.1869, allocations: 3.953 kB / 445.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.1869, allocations: 0 / 445.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003513/0.1873, allocations: 89.09 kB / 445.9 MB, free: 12.58 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.987e-05/0.1873, allocations: 85 kB / 446 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.64e-05/0.1874, allocations: 0 / 446 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.325e-05/0.1875, allocations: 4 kB / 446 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.236e-06/0.1875, allocations: 3.953 kB / 446 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.1875, allocations: 4 kB / 446 MB, free: 12.47 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.104e-05/0.1876, allocations: 87.27 kB / 446.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.22e-07/0.1876, allocations: 3.938 kB / 446.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001495/0.1892, allocations: 4 kB / 446.1 MB, free: 12.38 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * 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.000539/0.1898, allocations: 95.19 kB / 446.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008079/0.1906, allocations: 27.98 kB / 446.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.1907, allocations: 0 / 446.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.523e-06/0.1907, allocations: 256 / 446.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004555/0.1912, allocations: 31.92 kB / 446.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005369/0.1917, allocations: 142.4 kB / 446.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001744/0.192, allocations: 0.6809 MB / 447 MB, free: 11.33 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.662e-05/0.192, allocations: 11.44 kB / 447.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of SimCode: time 1.714e-06/0.192, allocations: 0 / 447.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of Templates: time 0.004631/0.1967, allocations: 0.5907 MB / 447.6 MB, free: 10.73 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches