Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00121/0.00121, allocations: 109.8 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00127/0.00127, allocations: 205.8 kB / 18.26 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.526/1.526, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001706/0.001706, allocations: 62.3 kB / 306.4 MB, free: 0.9414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1498, allocations: 50.53 MB / 357 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse): time 0.004633/0.1545, allocations: 1.546 MB / 358.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001415/0.156, allocations: 482.8 kB / 359 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.1561, allocations: 0 / 359 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.907e-05/0.1562, allocations: 3.984 kB / 359 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002496/0.1565, allocations: 19.86 kB / 359 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002964/0.1568, allocations: 31.91 kB / 359 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001947/0.157, allocations: 47.84 kB / 359.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001771/0.1572, allocations: 11.98 kB / 359.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.1573, allocations: 23.92 kB / 359.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.928e-05/0.1574, allocations: 23.91 kB / 359.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.913e-05/0.1575, allocations: 8 kB / 359.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.61e-05/0.1575, allocations: 4 kB / 359.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.048e-05/0.1575, allocations: 15.92 kB / 359.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.55e-05/0.1576, allocations: 15.94 kB / 359.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001751/0.1578, allocations: 51.8 kB / 359.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1578, allocations: 0 / 359.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.527e-06/0.1578, allocations: 0 / 359.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.262e-05/0.1578, allocations: 3.938 kB / 359.2 MB, free: 12.13 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0008893/0.1587, allocations: 383.6 kB / 359.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.131e-05/0.1588, allocations: 12.03 kB / 359.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.38e-05/0.1589, allocations: 0.9375 kB / 359.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003277/0.1592, allocations: 188.2 kB / 359.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.1592, allocations: 384 / 359.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.084e-05/0.1592, allocations: 8.375 kB / 359.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005156/0.1598, allocations: 143.5 kB / 360 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.1598, allocations: 0 / 360 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.804e-05/0.1598, allocations: 4 kB / 360 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.1598, allocations: 0 / 360 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.16, allocations: 35.91 kB / 360 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002606/0.1602, allocations: 165.7 kB / 360.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002768/0.1605, allocations: 135.7 kB / 360.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.152e-05/0.1606, allocations: 24.86 kB / 360.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.788e-05/0.1607, allocations: 7.984 kB / 360.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.1607, allocations: 38.5 kB / 360.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.904e-06/0.1607, allocations: 4 kB / 360.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003733/0.1611, allocations: 85.52 kB / 360.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.858e-05/0.1612, allocations: 59.41 kB / 360.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.1614, allocations: 109.8 kB / 360.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.1614, allocations: 29.7 kB / 360.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.724e-05/0.1615, allocations: 84.14 kB / 360.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.725e-05/0.1615, allocations: 4 kB / 360.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.019e-05/0.1616, allocations: 21.7 kB / 360.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.1618, allocations: 318.8 kB / 361.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.887e-05/0.1618, allocations: 8 kB / 361.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.306e-05/0.1619, allocations: 41.14 kB / 361.1 MB, free: 10 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.061e-05/0.162, allocations: 57.03 kB / 361.2 MB, free: 9.926 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.162, allocations: 0 / 361.2 MB, free: 9.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001425/0.1621, allocations: 77.47 kB / 361.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.1622, allocations: 8.125 kB / 361.3 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.1622, allocations: 11.98 kB / 361.3 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.1622, allocations: 3.938 kB / 361.3 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.781e-05/0.1623, allocations: 12 kB / 361.3 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.1623, allocations: 480 / 361.3 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.638e-05/0.1624, allocations: 7.938 kB / 361.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.1624, allocations: 4 kB / 361.3 MB, free: 9.797 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,pulse.y) * Number of discrete states: 0 () * Number of clocked states: 1 (pulse.next) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 0.00015/0.1625, allocations: 121.7 kB / 361.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.1627, allocations: 69.52 kB / 361.5 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.955e-05/0.1628, allocations: 16.38 kB / 361.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1628, allocations: 0 / 361.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.1628, allocations: 0 / 361.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.1628, allocations: 0 / 361.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001441/0.163, allocations: 165.6 kB / 361.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.163, allocations: 320 / 361.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.586e-05/0.163, allocations: 8 kB / 361.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.178e-05/0.163, allocations: 7.938 kB / 361.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.42e-05/0.1631, allocations: 0 / 361.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.624e-06/0.1631, allocations: 3.938 kB / 361.7 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1631, allocations: 0 / 361.7 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000203/0.1633, allocations: 101 kB / 361.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.066e-05/0.1634, allocations: 89.03 kB / 361.9 MB, free: 9.125 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.714e-05/0.1634, allocations: 4 kB / 361.9 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.89e-05/0.1635, allocations: 23.89 kB / 361.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.181e-05/0.1635, allocations: 4 kB / 361.9 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.1636, allocations: 0 / 361.9 MB, free: 9.094 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.897e-05/0.1637, allocations: 91.27 kB / 362 MB, free: 9.004 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1637, allocations: 0 / 362 MB, free: 9.004 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002443/0.1639, allocations: 12 kB / 362 MB, free: 8.992 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: 3 (pulse.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 1 (pulse.next) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0001772/0.1641, allocations: 99.23 kB / 362.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001889/0.1643, allocations: 44.17 kB / 362.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.1643, allocations: 4.062 kB / 362.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.583e-06/0.1643, allocations: 0 / 362.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000506/0.1648, allocations: 32.02 kB / 362.2 MB, free: 8.805 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003872/0.1652, allocations: 157.5 kB / 362.3 MB, free: 8.621 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/0.1656, allocations: 0.684 MB / 363 MB, free: 7.914 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.011e-05/0.1656, allocations: 11.98 kB / 363 MB, free: 7.902 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.495e-05/0.1656, allocations: 7.438 kB / 363 MB, free: 7.895 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1656, allocations: 0 / 363 MB, free: 7.895 MB / 302.1 MB Notification: Performance of Templates: time 0.004558/0.1702, allocations: 0.6396 MB / 363.7 MB, free: 7.262 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TimeBasedPulse/TimeBasedPulse.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches