Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001903/0.001902, allocations: 108.6 kB / 17.69 MB, free: 5.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002775/0.002774, allocations: 191 kB / 18.63 MB, free: 4.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001079/0.00108, allocations: 50.88 kB / 302.1 MB, free: 5.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1528, allocations: 49.45 MB / 351.5 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.003045/0.1559, allocations: 1.409 MB / 352.9 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002023/0.1561, allocations: 27.91 kB / 353 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.774e-05/0.1562, allocations: 0 / 353 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.002e-05/0.1562, allocations: 7.938 kB / 353 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.502e-05/0.1563, allocations: 11.92 kB / 353 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002883/0.1566, allocations: 19.97 kB / 353 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.277e-05/0.1567, allocations: 27.88 kB / 353 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.1568, allocations: 11.98 kB / 353 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.739e-05/0.1569, allocations: 8 kB / 353 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.034e-05/0.1569, allocations: 15.91 kB / 353.1 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.886e-05/0.1569, allocations: 4 kB / 353.1 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.1e-05/0.157, allocations: 4 kB / 353.1 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.401e-05/0.157, allocations: 11.88 kB / 353.1 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.981e-05/0.157, allocations: 19.92 kB / 353.1 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.853e-05/0.1571, allocations: 27.91 kB / 353.1 MB, free: 2.051 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1572, allocations: 0 / 353.1 MB, free: 2.051 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1572, allocations: 0 / 353.1 MB, free: 2.051 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1572, allocations: 0 / 353.1 MB, free: 2.051 MB / 286.1 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.0004706/0.1576, allocations: 351.3 kB / 353.5 MB, free: 1.656 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.1577, allocations: 8.031 kB / 353.5 MB, free: 1.648 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.667e-05/0.1577, allocations: 8.844 kB / 353.5 MB, free: 1.641 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003104/0.158, allocations: 180.3 kB / 353.7 MB, free: 1.426 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/0.1581, allocations: 4.375 kB / 353.7 MB, free: 1.422 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.315e-05/0.1581, allocations: 4.375 kB / 353.7 MB, free: 1.418 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003886/0.1585, allocations: 119.8 kB / 353.8 MB, free: 1.289 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.1585, allocations: 4.172 kB / 353.8 MB, free: 1.285 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.1585, allocations: 3.938 kB / 353.8 MB, free: 1.281 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.1585, allocations: 0 / 353.8 MB, free: 1.281 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000112/0.1587, allocations: 27.97 kB / 353.8 MB, free: 1.254 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001455/0.1588, allocations: 161.6 kB / 354 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/0.159, allocations: 58.52 kB / 354 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.333e-05/0.1591, allocations: 24.89 kB / 354.1 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.926e-06/0.1591, allocations: 0 / 354.1 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.1591, allocations: 34.55 kB / 354.1 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 9.02e-07/0.1591, allocations: 0 / 354.1 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002731/0.1594, allocations: 85.59 kB / 354.2 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.614e-05/0.1595, allocations: 63.34 kB / 354.2 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.981e-05/0.1596, allocations: 101.8 kB / 354.3 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.1596, allocations: 29.7 kB / 354.4 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.198e-05/0.1596, allocations: 80.14 kB / 354.4 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.332e-05/0.1597, allocations: 4 kB / 354.4 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.003e-05/0.1597, allocations: 17.72 kB / 354.5 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.1598, allocations: 314.8 kB / 354.8 MB, free: 180 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.194e-05/0.1598, allocations: 8 kB / 354.8 MB, free: 172 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.887e-05/0.1599, allocations: 31.44 kB / 354.8 MB, free: 128 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.201e-05/0.1599, allocations: 31.75 kB / 354.8 MB, free: 84 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1599, allocations: 11.94 kB / 354.9 MB, free: 72 kB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.946e-05/0.16, allocations: 61.53 kB / 354.9 MB, free: 4 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.23e-05/0.1601, allocations: 8.047 kB / 354.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.1601, allocations: 7.938 kB / 354.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.1601, allocations: 0 / 354.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.208e-05/0.1601, allocations: 15.88 kB / 354.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.1602, allocations: 0 / 354.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.912e-05/0.1602, allocations: 7.938 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.687e-06/0.1602, allocations: 4.125 kB / 355 MB, free: 15.96 MB / 302.1 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 ($CLKPRE.step.counter,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.755e-05/0.1603, allocations: 113.8 kB / 355.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.1604, allocations: 61.67 kB / 355.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.007e-05/0.1605, allocations: 11.84 kB / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.1605, allocations: 0 / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1605, allocations: 3.984 kB / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.1605, allocations: 0 / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001312/0.1606, allocations: 157.6 kB / 355.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1606, allocations: 4 kB / 355.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.767e-05/0.1607, allocations: 15.92 kB / 355.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.1607, allocations: 4 kB / 355.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/0.1607, allocations: 4.172 kB / 355.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1607, allocations: 0 / 355.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1607, allocations: 0 / 355.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001579/0.1609, allocations: 89.09 kB / 355.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.523e-05/0.1609, allocations: 81.09 kB / 355.5 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.807e-05/0.161, allocations: 11.94 kB / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.014e-05/0.161, allocations: 4 kB / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.637e-06/0.161, allocations: 4 kB / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.097e-06/0.161, allocations: 0 / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.078e-05/0.1611, allocations: 83.27 kB / 355.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1611, allocations: 0 / 355.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001841/0.1613, allocations: 8 kB / 355.6 MB, free: 15.21 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001169/0.1614, allocations: 103.1 kB / 355.7 MB, free: 15.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001361/0.1615, allocations: 32.11 kB / 355.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1615, allocations: 4.062 kB / 355.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.91e-07/0.1615, allocations: 0 / 355.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.1618, allocations: 35.86 kB / 355.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003969/0.1622, allocations: 121.4 kB / 355.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004612/0.1627, allocations: 0.6807 MB / 356.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.213e-05/0.1627, allocations: 0 / 356.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.618e-05/0.1628, allocations: 11.44 kB / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1628, allocations: 4 kB / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of Templates: time 0.002534/0.1653, allocations: 434 kB / 357 MB, free: 13.73 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches