Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001463/0.001463, allocations: 176 kB / 16.45 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.323/1.323, allocations: 205.4 MB / 222.6 MB, free: 9.102 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.0007575/0.0007576, allocations: 94.34 kB / 270.9 MB, free: 8.34 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.06753/0.06753, allocations: 12.58 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000385/0.0003849, allocations: 16 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07166/0.07206, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.001175/0.07328, allocations: 1.136 MB / 443.5 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001645/0.07346, allocations: 43.83 kB / 443.5 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.324e-05/0.07352, allocations: 0 / 443.5 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.347e-05/0.07355, allocations: 0 / 443.5 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.786e-05/0.07359, allocations: 7.938 kB / 443.6 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002174/0.07381, allocations: 15.98 kB / 443.6 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.685e-05/0.07389, allocations: 31.91 kB / 443.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.342e-05/0.07398, allocations: 4 kB / 443.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.277e-05/0.07402, allocations: 15.92 kB / 443.6 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.256e-05/0.07407, allocations: 4 kB / 443.6 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.53e-05/0.07409, allocations: 7.938 kB / 443.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.729e-06/0.0741, allocations: 3.938 kB / 443.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.389e-05/0.07412, allocations: 11.98 kB / 443.6 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.429e-05/0.07415, allocations: 25.7 kB / 443.7 MB, free: 15.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.527e-05/0.07421, allocations: 15.95 kB / 443.7 MB, free: 15.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.07422, allocations: 4 kB / 443.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.07423, allocations: 4 kB / 443.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.858e-06/0.07424, allocations: 0 / 443.7 MB, free: 15.11 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.0003246/0.07457, allocations: 335.5 kB / 444 MB, free: 14.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.07461, allocations: 12.03 kB / 444 MB, free: 14.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.919e-05/0.07464, allocations: 7.906 kB / 444 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.07479, allocations: 175 kB / 444.2 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.07482, allocations: 0 / 444.2 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.071e-05/0.07483, allocations: 7.953 kB / 444.2 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003083/0.07515, allocations: 115.3 kB / 444.3 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.832e-06/0.07516, allocations: 0 / 444.3 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.07518, allocations: 4 kB / 444.3 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.07519, allocations: 3.938 kB / 444.3 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001146/0.07531, allocations: 27.97 kB / 444.4 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.952e-05/0.07542, allocations: 161.7 kB / 444.5 MB, free: 14.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001507/0.07557, allocations: 66.5 kB / 444.6 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.183e-05/0.07565, allocations: 24.89 kB / 444.6 MB, free: 14.03 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.028e-05/0.07567, allocations: 3.953 kB / 444.6 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.391e-05/0.07569, allocations: 38.56 kB / 444.7 MB, free: 13.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.11e-07/0.0757, allocations: 0 / 444.7 MB, free: 13.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002392/0.07594, allocations: 85.56 kB / 444.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.07599, allocations: 59.28 kB / 444.8 MB, free: 13.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.231e-05/0.07605, allocations: 105.8 kB / 444.9 MB, free: 13.7 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.023e-06/0.07606, allocations: 25.7 kB / 444.9 MB, free: 13.67 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.88e-05/0.07609, allocations: 84.14 kB / 445 MB, free: 13.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.047e-06/0.0761, allocations: 4 kB / 445 MB, free: 13.58 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-06/0.07611, allocations: 4 kB / 445 MB, free: 13.58 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.142e-05/0.07616, allocations: 318.8 kB / 445.3 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.106e-05/0.07617, allocations: 4 kB / 445.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.04e-05/0.0762, allocations: 27.44 kB / 445.4 MB, free: 13.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.974e-05/0.07622, allocations: 8 kB / 445.4 MB, free: 13.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.07623, allocations: 8 kB / 445.4 MB, free: 13.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.651e-05/0.0763, allocations: 61.47 kB / 445.4 MB, free: 13.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.07632, allocations: 11.95 kB / 445.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.07633, allocations: 0 / 445.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.07635, allocations: 0 / 445.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.622e-05/0.07641, allocations: 11.98 kB / 445.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.07642, allocations: 0 / 445.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.054e-05/0.07644, allocations: 4 kB / 445.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-06/0.07645, allocations: 128 / 445.5 MB, free: 13.11 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 4.917e-05/0.07651, allocations: 121.6 kB / 445.6 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.07667, allocations: 69.61 kB / 445.7 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.938e-05/0.0767, allocations: 7.859 kB / 445.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.07671, allocations: 0 / 445.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.07672, allocations: 4 kB / 445.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.07672, allocations: 0 / 445.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.742e-05/0.07677, allocations: 157.7 kB / 445.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.07678, allocations: 0 / 445.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.64e-05/0.07684, allocations: 11.98 kB / 445.8 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.07685, allocations: 4 kB / 445.8 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.112e-06/0.07686, allocations: 3.938 kB / 445.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.07687, allocations: 7.891 kB / 445.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.07687, allocations: 0 / 445.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001471/0.07703, allocations: 101 kB / 445.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.605e-05/0.07705, allocations: 85.03 kB / 446 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.07707, allocations: 384 / 446 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.202e-05/0.07711, allocations: 4 kB / 446 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.875e-06/0.07712, allocations: 8.234 kB / 446 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-06/0.07713, allocations: 8 kB / 446 MB, free: 12.42 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.094e-05/0.07715, allocations: 87.27 kB / 446.1 MB, free: 12.33 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07716, allocations: 0 / 446.1 MB, free: 12.33 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001661/0.07733, allocations: 4 kB / 446.1 MB, free: 12.33 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 5.809e-05/0.07739, allocations: 91.25 kB / 446.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001133/0.07751, allocations: 32.11 kB / 446.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.07752, allocations: 4.062 kB / 446.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.07753, allocations: 0 / 446.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.0778, allocations: 36 kB / 446.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002392/0.07805, allocations: 142.4 kB / 446.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.825e-05/0.07816, allocations: 0.6886 MB / 447.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.017e-05/0.07818, allocations: 11.44 kB / 447.1 MB, free: 11.26 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.07819, allocations: 4 kB / 447.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of Templates: time 0.001477/0.07967, allocations: 0.6108 MB / 447.7 MB, free: 10.64 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches