Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.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.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009044/0.0009046, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.0008864/0.0008864, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.626/1.626, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002597/0.0002597, allocations: 10.12 kB / 300.7 MB, free: 5.969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1306, allocations: 50.42 MB / 351.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001675/0.1323, allocations: 1.138 MB / 352.3 MB, free: 10.61 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001823/0.1325, allocations: 47.83 kB / 352.3 MB, free: 10.56 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.432e-05/0.1326, allocations: 0 / 352.3 MB, free: 10.56 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.538e-05/0.1326, allocations: 0 / 352.3 MB, free: 10.56 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.717e-05/0.1327, allocations: 7.984 kB / 352.3 MB, free: 10.55 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002651/0.133, allocations: 31.03 kB / 352.4 MB, free: 10.52 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.953e-05/0.1331, allocations: 19.97 kB / 352.4 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.648e-05/0.1332, allocations: 16 kB / 352.4 MB, free: 10.49 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.534e-05/0.1332, allocations: 11.92 kB / 352.4 MB, free: 10.48 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.842e-05/0.1333, allocations: 15.92 kB / 352.4 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.972e-05/0.1333, allocations: 4 kB / 352.4 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.241e-05/0.1333, allocations: 0 / 352.4 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.886e-05/0.1334, allocations: 7.984 kB / 352.4 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.652e-05/0.1334, allocations: 29.7 kB / 352.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.645e-05/0.1335, allocations: 31.89 kB / 352.5 MB, free: 10.38 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.1335, allocations: 0 / 352.5 MB, free: 10.38 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1335, allocations: 0 / 352.5 MB, free: 10.38 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.366e-06/0.1335, allocations: 0 / 352.5 MB, free: 10.38 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000474/0.134, allocations: 343.3 kB / 352.8 MB, free: 10 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.134, allocations: 8.031 kB / 352.8 MB, free: 9.992 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.339e-05/0.1341, allocations: 15.83 kB / 352.9 MB, free: 9.977 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001981/0.1343, allocations: 175 kB / 353 MB, free: 9.766 MB / 286.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001575/0.1344, allocations: 33.7 kB / 353.1 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.61e-05/0.1345, allocations: 4 kB / 353.1 MB, free: 9.723 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003076/0.1348, allocations: 135.2 kB / 353.2 MB, free: 9.578 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.1348, allocations: 0 / 353.2 MB, free: 9.578 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.1348, allocations: 0 / 353.2 MB, free: 9.578 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.1348, allocations: 3.953 kB / 353.2 MB, free: 9.574 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.406e-05/0.1349, allocations: 19.98 kB / 353.2 MB, free: 9.555 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001404/0.135, allocations: 161.7 kB / 353.4 MB, free: 9.348 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000182/0.1352, allocations: 135.7 kB / 353.5 MB, free: 9.188 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.584e-06/0.1353, allocations: 8 kB / 353.5 MB, free: 9.18 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.1353, allocations: 34.62 kB / 353.5 MB, free: 9.137 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.403e-06/0.1353, allocations: 3.938 kB / 353.6 MB, free: 9.133 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002687/0.1356, allocations: 150.9 kB / 353.7 MB, free: 8.961 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/0.1356, allocations: 63.31 kB / 353.8 MB, free: 8.887 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.127e-05/0.1357, allocations: 109.8 kB / 353.9 MB, free: 8.77 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.1358, allocations: 25.7 kB / 353.9 MB, free: 8.738 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.422e-05/0.1358, allocations: 92.08 kB / 354 MB, free: 8.645 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.222e-05/0.1358, allocations: 4 kB / 354 MB, free: 8.641 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.026e-06/0.1358, allocations: 0 / 354 MB, free: 8.641 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.1359, allocations: 318.8 kB / 354.3 MB, free: 8.32 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.443e-05/0.136, allocations: 4 kB / 354.3 MB, free: 8.316 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.863e-05/0.136, allocations: 40.28 kB / 354.3 MB, free: 8.262 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.084e-05/0.136, allocations: 16 kB / 354.4 MB, free: 8.246 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1361, allocations: 0 / 354.4 MB, free: 8.246 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.338e-05/0.1362, allocations: 73.47 kB / 354.4 MB, free: 8.168 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.1362, allocations: 8 kB / 354.4 MB, free: 8.16 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.748e-06/0.1362, allocations: 0 / 354.4 MB, free: 8.16 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.1362, allocations: 0 / 354.4 MB, free: 8.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.793e-05/0.1363, allocations: 12.59 kB / 354.5 MB, free: 8.148 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.1363, allocations: 4 kB / 354.5 MB, free: 8.145 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.346e-05/0.1363, allocations: 0 / 354.5 MB, free: 8.145 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.864e-06/0.1363, allocations: 7.953 kB / 354.5 MB, free: 8.137 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.268e-05/0.1364, allocations: 125.7 kB / 354.6 MB, free: 8.004 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.92e-05/0.1365, allocations: 61.69 kB / 354.6 MB, free: 7.938 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.595e-05/0.1365, allocations: 7.953 kB / 354.7 MB, free: 7.926 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1365, allocations: 0 / 354.7 MB, free: 7.926 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.1365, allocations: 0 / 354.7 MB, free: 7.926 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1366, allocations: 8 kB / 354.7 MB, free: 7.918 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.74e-05/0.1367, allocations: 165.5 kB / 354.8 MB, free: 7.707 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.1367, allocations: 3.938 kB / 354.8 MB, free: 7.703 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.053e-06/0.1367, allocations: 0 / 354.8 MB, free: 7.703 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.1367, allocations: 3.938 kB / 354.8 MB, free: 7.699 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.1367, allocations: 4 kB / 354.8 MB, free: 7.695 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-06/0.1367, allocations: 0 / 354.8 MB, free: 7.695 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.1367, allocations: 4 kB / 354.8 MB, free: 7.691 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001185/0.1368, allocations: 97 kB / 354.9 MB, free: 7.578 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.592e-05/0.1369, allocations: 77.11 kB / 355 MB, free: 7.484 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.1369, allocations: 4 kB / 355 MB, free: 7.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.18e-05/0.137, allocations: 4 kB / 355 MB, free: 7.477 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.35e-06/0.137, allocations: 4 kB / 355 MB, free: 7.473 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.137, allocations: 0 / 355 MB, free: 7.473 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.913e-05/0.137, allocations: 83.27 kB / 355.1 MB, free: 7.391 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.137, allocations: 0 / 355.1 MB, free: 7.391 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001895/0.1372, allocations: 12 kB / 355.1 MB, free: 7.379 MB / 286.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: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.counter,pulse.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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 9.977e-05/0.1373, allocations: 99.25 kB / 355.2 MB, free: 7.273 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.1374, allocations: 36.11 kB / 355.2 MB, free: 7.238 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1374, allocations: 0 / 355.2 MB, free: 7.238 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.31e-07/0.1374, allocations: 0 / 355.2 MB, free: 7.238 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000607/0.1381, allocations: 0.7218 MB / 356 MB, free: 6.492 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002646/0.1383, allocations: 129.1 kB / 356.1 MB, free: 6.34 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002128/0.1386, allocations: 0.6887 MB / 356.8 MB, free: 5.625 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.098e-05/0.1386, allocations: 4.125 kB / 356.8 MB, free: 5.617 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.166e-05/0.1386, allocations: 15.42 kB / 356.8 MB, free: 5.602 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1386, allocations: 0 / 356.8 MB, free: 5.602 MB / 286.1 MB Notification: Performance of Templates: time 0.002645/0.1413, allocations: 0.6114 MB / 357.4 MB, free: 4.996 MB / 286.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches