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.001491/0.001494, allocations: 186 kB / 16.44 MB, free: 5.672 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.991/1.991, 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.001097/0.001096, allocations: 92.23 kB / 270.9 MB, free: 8.375 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.09848/0.09848, allocations: 12.59 MB / 331.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005255/0.0005256, allocations: 12 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08615/0.0867, allocations: 50.36 MB / 442.3 MB, free: 16.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4164/0.5032, allocations: 77.33 MB / 0.5075 GB, free: 12.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.5035, allocations: 80.45 kB / 0.5076 GB, free: 12.76 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002416/0.5059, allocations: 0.7694 MB / 0.5083 GB, free: 12.43 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.506, allocations: 0 / 0.5083 GB, free: 12.43 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.506, allocations: 4 kB / 0.5083 GB, free: 12.42 MB / 330.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.000323/0.5064, allocations: 342.4 kB / 0.5087 GB, free: 12.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.5064, allocations: 7.531 kB / 0.5087 GB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.245e-05/0.5064, allocations: 7.75 kB / 0.5087 GB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.5066, allocations: 175.3 kB / 0.5088 GB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.3e-05/0.5066, allocations: 0 / 0.5088 GB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.388e-05/0.5067, allocations: 7.641 kB / 0.5088 GB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004508/0.5071, allocations: 121 kB / 0.509 GB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.5071, allocations: 7.781 kB / 0.509 GB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.5072, allocations: 0 / 0.509 GB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.5072, allocations: 0 / 0.509 GB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001843/0.5074, allocations: 27.17 kB / 0.509 GB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001203/0.5075, allocations: 158.6 kB / 0.5091 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002451/0.5078, allocations: 58.98 kB / 0.5092 GB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.5078, allocations: 4 kB / 0.5092 GB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.5078, allocations: 34.52 kB / 0.5092 GB, free: 11.55 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.583e-06/0.5078, allocations: 3.938 kB / 0.5092 GB, free: 11.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003888/0.5082, allocations: 84.86 kB / 0.5093 GB, free: 11.51 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/0.5083, allocations: 55.34 kB / 0.5094 GB, free: 11.45 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.524e-05/0.5084, allocations: 103.2 kB / 0.5095 GB, free: 11.36 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.318e-06/0.5084, allocations: 25.7 kB / 0.5095 GB, free: 11.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.313e-05/0.5084, allocations: 154.6 kB / 0.5096 GB, free: 11.17 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.223e-05/0.5084, allocations: 0 / 0.5096 GB, free: 11.17 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-06/0.5085, allocations: 7.719 kB / 0.5096 GB, free: 11.17 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.637e-05/0.5085, allocations: 313.4 kB / 0.5099 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.613e-05/0.5086, allocations: 3.781 kB / 0.51 GB, free: 10.86 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.238e-05/0.5086, allocations: 34.08 kB / 0.51 GB, free: 10.82 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.35e-05/0.5087, allocations: 11.66 kB / 0.51 GB, free: 10.82 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.5087, allocations: 0 / 0.51 GB, free: 10.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.47e-05/0.5088, allocations: 55.14 kB / 0.51 GB, free: 10.79 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.5088, allocations: 3.875 kB / 0.5101 GB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.495e-06/0.5088, allocations: 7.797 kB / 0.5101 GB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.5088, allocations: 0 / 0.5101 GB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.832e-05/0.5089, allocations: 10.09 kB / 0.5101 GB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.5089, allocations: 8.062 kB / 0.5101 GB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.957e-05/0.509, allocations: 7.219 kB / 0.5101 GB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-06/0.509, allocations: 0 / 0.5101 GB, free: 10.77 MB / 330.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 6.863e-05/0.5091, allocations: 124.7 kB / 0.5102 GB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002208/0.5093, allocations: 68.78 kB / 0.5103 GB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.194e-05/0.5094, allocations: 7.719 kB / 0.5103 GB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.5094, allocations: 7.891 kB / 0.5103 GB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.5094, allocations: 0 / 0.5103 GB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.5094, allocations: 240 / 0.5103 GB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.732e-05/0.5095, allocations: 158.2 kB / 0.5104 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.5095, allocations: 2.672 kB / 0.5104 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.388e-05/0.5096, allocations: 15.61 kB / 0.5104 GB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.5096, allocations: 3.938 kB / 0.5105 GB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.5096, allocations: 6.391 kB / 0.5105 GB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.5096, allocations: 0 / 0.5105 GB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.5096, allocations: 3.953 kB / 0.5105 GB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002426/0.5099, allocations: 87.92 kB / 0.5105 GB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.674e-05/0.5099, allocations: 87.83 kB / 0.5106 GB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.032e-05/0.51, allocations: 0 / 0.5106 GB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.244e-05/0.51, allocations: 3.969 kB / 0.5106 GB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.477e-06/0.51, allocations: 0 / 0.5106 GB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.774e-06/0.5101, allocations: 3.953 kB / 0.5106 GB, free: 10.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.699e-05/0.5101, allocations: 90.75 kB / 0.5107 GB, free: 10.15 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5101, allocations: 0 / 0.5107 GB, free: 10.15 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002419/0.5104, allocations: 3.969 kB / 0.5107 GB, free: 10.15 MB / 330.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 8.847e-05/0.5105, allocations: 90.78 kB / 0.5108 GB, free: 10.06 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001867/0.5107, allocations: 40.36 kB / 0.5109 GB, free: 10.05 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.5107, allocations: 0 / 0.5109 GB, free: 10.05 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.623e-06/0.5107, allocations: 0 / 0.5109 GB, free: 10.05 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003485/0.5111, allocations: 32.66 kB / 0.5109 GB, free: 10.05 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003605/0.5114, allocations: 153.4 kB / 0.511 GB, free: 9.902 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001316/0.5116, allocations: 0.6857 MB / 0.5117 GB, free: 9.203 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.78e-05/0.5116, allocations: 11.28 kB / 0.5117 GB, free: 9.199 MB / 330.7 MB Notification: Performance of SimCode: time 1.112e-06/0.5116, allocations: 0 / 0.5117 GB, free: 9.199 MB / 330.7 MB Notification: Performance of Templates: time 0.002338/0.514, allocations: 0.6095 MB / 0.5123 GB, free: 9.086 MB / 330.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/jenkins1/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