Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.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.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001109/0.001109, allocations: 95.27 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001417/0.001417, allocations: 205.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.58/1.58, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003868/0.0003875, allocations: 15.98 kB / 306.6 MB, free: 1.422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1519, allocations: 51.49 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002194/0.1542, allocations: 1.141 MB / 359.2 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002233/0.1544, allocations: 43.84 kB / 359.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.584e-05/0.1545, allocations: 0 / 359.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.431e-05/0.1545, allocations: 0 / 359.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.8e-05/0.1546, allocations: 3.984 kB / 359.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003254/0.155, allocations: 23.97 kB / 359.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.435e-05/0.1551, allocations: 27.92 kB / 359.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.1552, allocations: 11.97 kB / 359.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.605e-05/0.1553, allocations: 12 kB / 359.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.823e-05/0.1553, allocations: 15.92 kB / 359.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.597e-05/0.1554, allocations: 4 kB / 359.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.266e-05/0.1554, allocations: 3.938 kB / 359.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.972e-05/0.1554, allocations: 11.92 kB / 359.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.701e-05/0.1554, allocations: 29.7 kB / 359.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.471e-05/0.1555, allocations: 27.94 kB / 359.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1555, allocations: 0 / 359.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1555, allocations: 4 kB / 359.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.1555, allocations: 0 / 359.4 MB, free: 12.55 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005051/0.1561, allocations: 338.2 kB / 359.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.1561, allocations: 15.97 kB / 359.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.169e-05/0.1562, allocations: 7.906 kB / 359.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.1564, allocations: 178.9 kB / 359.9 MB, free: 11.94 MB / 302.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.0001432/0.1565, allocations: 36.88 kB / 360 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.282e-05/0.1565, allocations: 15.94 kB / 360 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003232/0.1569, allocations: 127.3 kB / 360.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.1569, allocations: 3.938 kB / 360.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.1569, allocations: 0 / 360.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.1569, allocations: 3.938 kB / 360.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.595e-05/0.157, allocations: 19.98 kB / 360.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001567/0.1571, allocations: 161.7 kB / 360.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002261/0.1574, allocations: 135.8 kB / 360.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.049e-05/0.1574, allocations: 0 / 360.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.814e-05/0.1574, allocations: 42.45 kB / 360.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 8.91e-07/0.1575, allocations: 0 / 360.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002691/0.1577, allocations: 158.8 kB / 360.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.104e-05/0.1578, allocations: 55.41 kB / 360.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.965e-05/0.1579, allocations: 105.9 kB / 360.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.1579, allocations: 33.69 kB / 360.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.091e-05/0.158, allocations: 84.12 kB / 360.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.658e-05/0.158, allocations: 8 kB / 360.9 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.616e-06/0.158, allocations: 0 / 360.9 MB, free: 10.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.1581, allocations: 310.8 kB / 361.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.928e-05/0.1582, allocations: 11.98 kB / 361.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.122e-05/0.1582, allocations: 44.23 kB / 361.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.004e-05/0.1583, allocations: 12 kB / 361.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1583, allocations: 0 / 361.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.807e-05/0.1584, allocations: 73.47 kB / 361.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.1584, allocations: 4.156 kB / 361.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1584, allocations: 15.94 kB / 361.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.1584, allocations: 0 / 361.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.225e-05/0.1585, allocations: 4 kB / 361.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.1585, allocations: 4 kB / 361.4 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.251e-05/0.1585, allocations: 0 / 361.4 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.1585, allocations: 8 kB / 361.4 MB, free: 10.3 MB / 302.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 9.257e-05/0.1586, allocations: 117.8 kB / 361.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.526e-05/0.1587, allocations: 61.59 kB / 361.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.123e-05/0.1588, allocations: 11.97 kB / 361.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.1588, allocations: 7.891 kB / 361.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1588, allocations: 0 / 361.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1588, allocations: 0 / 361.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001026/0.1589, allocations: 169.6 kB / 361.8 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1589, allocations: 0 / 361.8 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.991e-06/0.1589, allocations: 0 / 361.8 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.1589, allocations: 0 / 361.8 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.914e-06/0.159, allocations: 0 / 361.8 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.159, allocations: 448 / 361.8 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.159, allocations: 7.953 kB / 361.8 MB, free: 9.867 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001342/0.1591, allocations: 97.06 kB / 361.9 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.379e-05/0.1592, allocations: 81.02 kB / 361.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.1592, allocations: 7.984 kB / 361.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.047e-05/0.1592, allocations: 0 / 361.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.655e-06/0.1592, allocations: 0 / 361.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.1593, allocations: 8.094 kB / 362 MB, free: 9.641 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.076e-05/0.1593, allocations: 87.27 kB / 362 MB, free: 9.555 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1593, allocations: 0 / 362 MB, free: 9.555 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001875/0.1595, allocations: 16 kB / 362.1 MB, free: 9.539 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: 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 0.0001309/0.1596, allocations: 101.5 kB / 362.2 MB, free: 9.434 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001358/0.1598, allocations: 35.92 kB / 362.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1598, allocations: 0 / 362.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.41e-07/0.1598, allocations: 0 / 362.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006559/0.1605, allocations: 0.7145 MB / 362.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003376/0.1608, allocations: 136.6 kB / 363 MB, free: 8.496 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.1611, allocations: 0.6926 MB / 363.7 MB, free: 7.777 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.873e-05/0.1612, allocations: 3.938 kB / 363.7 MB, free: 7.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.625e-05/0.1612, allocations: 11.44 kB / 363.7 MB, free: 7.758 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1612, allocations: 4.031 kB / 363.7 MB, free: 7.754 MB / 302.1 MB Notification: Performance of Templates: time 0.002923/0.1641, allocations: 0.6046 MB / 364.4 MB, free: 7.156 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches