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/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/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.001562/0.001562, allocations: 182 kB / 17.46 MB, free: 4.246 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.994/2.994, allocations: 205.4 MB / 223.6 MB, free: 9.012 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.001126/0.001126, allocations: 88.92 kB / 272 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1701/0.1701, allocations: 12.19 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004955/0.0004958, allocations: 12 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.1579, allocations: 50.29 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6154/0.7734, allocations: 77.29 MB / 0.5081 GB, free: 13.01 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004331/0.7739, allocations: 74.95 kB / 0.5082 GB, free: 13.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002727/0.7767, allocations: 0.7665 MB / 0.5089 GB, free: 12.67 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.7767, allocations: 0 / 0.5089 GB, free: 12.67 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.7767, allocations: 0 / 0.5089 GB, free: 12.67 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.0004321/0.7772, allocations: 345.1 kB / 0.5093 GB, free: 12.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.436e-05/0.7772, allocations: 9.891 kB / 0.5093 GB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.15e-05/0.7773, allocations: 8.75 kB / 0.5093 GB, free: 12.31 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002087/0.7775, allocations: 171 kB / 0.5094 GB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.235e-05/0.7776, allocations: 4.375 kB / 0.5094 GB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.51e-05/0.7776, allocations: 6.75 kB / 0.5094 GB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004303/0.778, allocations: 121.6 kB / 0.5096 GB, free: 12.06 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.7781, allocations: 192 / 0.5096 GB, free: 12.06 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.7781, allocations: 11.77 kB / 0.5096 GB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.7781, allocations: 0 / 0.5096 GB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001486/0.7783, allocations: 23.53 kB / 0.5096 GB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001858/0.7785, allocations: 164.5 kB / 0.5098 GB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001946/0.7787, allocations: 58.38 kB / 0.5098 GB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.7788, allocations: 25.02 kB / 0.5098 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.7788, allocations: 3.938 kB / 0.5098 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.7789, allocations: 34.25 kB / 0.5099 GB, free: 11.78 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.363e-06/0.7789, allocations: 0 / 0.5099 GB, free: 11.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004321/0.7793, allocations: 86.64 kB / 0.51 GB, free: 11.74 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.207e-05/0.7794, allocations: 61.8 kB / 0.51 GB, free: 11.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.7795, allocations: 109.9 kB / 0.5101 GB, free: 11.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.7796, allocations: 25.7 kB / 0.5101 GB, free: 11.54 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.206e-05/0.7796, allocations: 83.64 kB / 0.5102 GB, free: 11.46 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.7796, allocations: 0 / 0.5102 GB, free: 11.46 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-06/0.7797, allocations: 0 / 0.5102 GB, free: 11.46 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.7798, allocations: 321.3 kB / 0.5105 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.532e-05/0.7798, allocations: 11.81 kB / 0.5105 GB, free: 11.14 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.089e-05/0.7799, allocations: 29.95 kB / 0.5106 GB, free: 11.11 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.772e-05/0.78, allocations: 34.88 kB / 0.5106 GB, free: 11.07 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.78, allocations: 4 kB / 0.5106 GB, free: 11.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001092/0.7801, allocations: 61.89 kB / 0.5107 GB, free: 11.03 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.977e-05/0.7802, allocations: 6.562 kB / 0.5107 GB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.7802, allocations: 7.75 kB / 0.5107 GB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.386e-05/0.7802, allocations: 0 / 0.5107 GB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.7803, allocations: 7.719 kB / 0.5107 GB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/0.7804, allocations: 0 / 0.5107 GB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.012e-05/0.7804, allocations: 3.812 kB / 0.5107 GB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.7804, allocations: 0 / 0.5107 GB, free: 11.03 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 0.0001262/0.7805, allocations: 127.8 kB / 0.5108 GB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.7807, allocations: 63.8 kB / 0.5109 GB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.428e-05/0.7808, allocations: 11.78 kB / 0.5109 GB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.7808, allocations: 3.844 kB / 0.5109 GB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.7808, allocations: 0 / 0.5109 GB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.7808, allocations: 0.6875 kB / 0.5109 GB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001105/0.7809, allocations: 156.8 kB / 0.511 GB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.7809, allocations: 0 / 0.511 GB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.307e-05/0.781, allocations: 13.73 kB / 0.511 GB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.781, allocations: 4 kB / 0.5111 GB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.781, allocations: 7.562 kB / 0.5111 GB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.781, allocations: 3.844 kB / 0.5111 GB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.781, allocations: 0 / 0.5111 GB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002063/0.7813, allocations: 98.92 kB / 0.5112 GB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.085e-05/0.7813, allocations: 80.95 kB / 0.5112 GB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.7813, allocations: 3.938 kB / 0.5112 GB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.15e-05/0.7814, allocations: 6.375 kB / 0.5112 GB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.667e-06/0.7814, allocations: 4 kB / 0.5112 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.7814, allocations: 0 / 0.5112 GB, free: 10.48 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.597e-05/0.7814, allocations: 85.52 kB / 0.5113 GB, free: 10.41 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7814, allocations: 3.938 kB / 0.5113 GB, free: 10.41 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001949/0.7816, allocations: 7.688 kB / 0.5113 GB, free: 10.41 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 0.0001152/0.7817, allocations: 94.39 kB / 0.5114 GB, free: 10.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001497/0.7819, allocations: 31.7 kB / 0.5115 GB, free: 10.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.7819, allocations: 4.25 kB / 0.5115 GB, free: 10.31 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.42e-07/0.7819, allocations: 0 / 0.5115 GB, free: 10.31 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003684/0.7823, allocations: 29.23 kB / 0.5115 GB, free: 10.31 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003584/0.7827, allocations: 156.2 kB / 0.5116 GB, free: 10.16 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.7828, allocations: 0.6819 MB / 0.5123 GB, free: 9.461 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.805e-05/0.7829, allocations: 7.438 kB / 0.5123 GB, free: 9.457 MB / 330.7 MB Notification: Performance of SimCode: time 4.71e-07/0.7829, allocations: 0 / 0.5123 GB, free: 9.457 MB / 330.7 MB Notification: Performance of Templates: time 0.002311/0.7852, allocations: 0.6144 MB / 0.5129 GB, free: 9.367 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