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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001403/0.001403, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00133/0.0014, allocations: 106.3 kB / 296.7 MB, free: 6.484 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001031/0.001031, allocations: 47.92 kB / 356.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.334, allocations: 50.46 MB / 407.1 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002733/0.3368, allocations: 1.493 MB / 408.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000221/0.337, allocations: 35.91 kB / 408.6 MB, free: 26.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.557e-05/0.3371, allocations: 3.938 kB / 408.6 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.306e-05/0.3372, allocations: 0 / 408.6 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.588e-05/0.3373, allocations: 7.188 kB / 408.6 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002967/0.3376, allocations: 31.91 kB / 408.6 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.085e-05/0.3377, allocations: 35.92 kB / 408.7 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.3378, allocations: 7.984 kB / 408.7 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.142e-05/0.3378, allocations: 19.92 kB / 408.7 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.116e-05/0.3379, allocations: 15.92 kB / 408.7 MB, free: 26.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.906e-05/0.3379, allocations: 4 kB / 408.7 MB, free: 26.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.191e-05/0.3379, allocations: 4 kB / 408.7 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.605e-05/0.338, allocations: 14.77 kB / 408.7 MB, free: 26.17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.681e-05/0.338, allocations: 11.94 kB / 408.7 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001024/0.3381, allocations: 35.86 kB / 408.8 MB, free: 26.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3381, allocations: 4 kB / 408.8 MB, free: 26.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3381, allocations: 0 / 408.8 MB, free: 26.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.329e-06/0.3381, allocations: 0 / 408.8 MB, free: 26.12 MB / 298.7 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.000475/0.3386, allocations: 357 kB / 409.1 MB, free: 25.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.3387, allocations: 8.875 kB / 409.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.754e-05/0.3387, allocations: 8.844 kB / 409.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001629/0.3389, allocations: 180.3 kB / 409.3 MB, free: 25.49 MB / 298.7 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.000143/0.339, allocations: 45.78 kB / 409.4 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.2e-05/0.3391, allocations: 384 / 409.4 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002731/0.3393, allocations: 127.8 kB / 409.5 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.3394, allocations: 7.938 kB / 409.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.3394, allocations: 0 / 409.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.3394, allocations: 0 / 409.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.673e-05/0.3394, allocations: 15.94 kB / 409.5 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00012/0.3396, allocations: 169.5 kB / 409.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/0.3398, allocations: 139.8 kB / 409.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.905e-05/0.3398, allocations: 24.86 kB / 409.8 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.726e-06/0.3398, allocations: 4 kB / 409.8 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.791e-05/0.3399, allocations: 30.56 kB / 409.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.894e-06/0.3399, allocations: 0 / 409.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002001/0.3401, allocations: 81.55 kB / 409.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.674e-05/0.3401, allocations: 59.41 kB / 410 MB, free: 24.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.476e-05/0.3402, allocations: 106.2 kB / 410.1 MB, free: 24.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.019e-05/0.3402, allocations: 33.64 kB / 410.1 MB, free: 24.53 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.218e-05/0.3402, allocations: 84.14 kB / 410.2 MB, free: 24.44 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.561e-05/0.3403, allocations: 3.906 kB / 410.2 MB, free: 24.44 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.787e-05/0.3403, allocations: 21.72 kB / 410.3 MB, free: 24.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.947e-05/0.3403, allocations: 322.8 kB / 410.6 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.525e-05/0.3404, allocations: 4 kB / 410.6 MB, free: 24.08 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.749e-05/0.3404, allocations: 48.28 kB / 410.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.185e-05/0.3404, allocations: 56.17 kB / 410.7 MB, free: 23.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3405, allocations: 0 / 410.7 MB, free: 23.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.34e-05/0.3405, allocations: 65.78 kB / 410.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.3406, allocations: 11.94 kB / 410.7 MB, free: 23.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.3406, allocations: 4 kB / 410.8 MB, free: 23.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.3406, allocations: 0 / 410.8 MB, free: 23.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.658e-05/0.3406, allocations: 7.938 kB / 410.8 MB, free: 23.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.3407, allocations: 7.984 kB / 410.8 MB, free: 23.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.63e-05/0.3407, allocations: 7.906 kB / 410.8 MB, free: 23.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-06/0.3407, allocations: 4 kB / 410.8 MB, free: 23.84 MB / 298.7 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 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.682e-05/0.3408, allocations: 120.3 kB / 410.9 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.69e-05/0.3409, allocations: 69.56 kB / 411 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.429e-05/0.3409, allocations: 7.969 kB / 411 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.3409, allocations: 0 / 411 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.3409, allocations: 0 / 411 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3409, allocations: 4 kB / 411 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.408e-05/0.341, allocations: 157.7 kB / 411.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.341, allocations: 0 / 411.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.53e-06/0.341, allocations: 0 / 411.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.341, allocations: 4.031 kB / 411.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.607e-06/0.341, allocations: 3.984 kB / 411.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.341, allocations: 0 / 411.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.341, allocations: 11.98 kB / 411.1 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000263/0.3413, allocations: 0.6551 MB / 411.8 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.109e-05/0.3413, allocations: 81.05 kB / 411.9 MB, free: 22.58 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.778e-05/0.3413, allocations: 8 kB / 411.9 MB, free: 22.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.201e-05/0.3414, allocations: 7.984 kB / 411.9 MB, free: 22.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.803e-06/0.3414, allocations: 0 / 411.9 MB, free: 22.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.3415, allocations: 8 kB / 411.9 MB, free: 22.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.346e-05/0.3415, allocations: 79.28 kB / 412 MB, free: 22.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3415, allocations: 0 / 412 MB, free: 22.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002841/0.3418, allocations: 12 kB / 412 MB, free: 22.47 MB / 298.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: 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.872e-05/0.3419, allocations: 99.23 kB / 412.1 MB, free: 22.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.908e-05/0.342, allocations: 35.92 kB / 412.1 MB, free: 22.33 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.342, allocations: 320 / 412.1 MB, free: 22.33 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.31e-07/0.342, allocations: 4 kB / 412.1 MB, free: 22.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005206/0.3425, allocations: 0.7219 MB / 412.9 MB, free: 21.58 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003035/0.3428, allocations: 252.1 kB / 413.1 MB, free: 21.29 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00013/0.343, allocations: 0.6849 MB / 413.8 MB, free: 20.58 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.169e-05/0.343, allocations: 3.984 kB / 413.8 MB, free: 20.58 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2e-05/0.343, allocations: 11.44 kB / 413.8 MB, free: 20.57 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.343, allocations: 0 / 413.8 MB, free: 20.57 MB / 298.7 MB Notification: Performance of Templates: time 0.002459/0.3455, allocations: 0.6584 MB / 414.5 MB, free: 19.91 MB / 298.7 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@2/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