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.001325/0.001325, allocations: 115.7 kB / 17.74 MB, free: 5.297 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.001367/0.001367, allocations: 189.6 kB / 18.67 MB, free: 4.375 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.354/1.354, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001246, allocations: 39.92 kB / 352 MB, free: 3.289 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2656, allocations: 49.44 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002562/0.2683, allocations: 1.42 MB / 402.8 MB, free: 7.469 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001881/0.2685, allocations: 43.84 kB / 402.9 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.544e-05/0.2685, allocations: 0 / 402.9 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.613e-05/0.2686, allocations: 7.984 kB / 402.9 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.156e-05/0.2686, allocations: 7.922 kB / 402.9 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002164/0.2689, allocations: 23.92 kB / 402.9 MB, free: 7.387 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.579e-05/0.2689, allocations: 39.91 kB / 402.9 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.2691, allocations: 11.98 kB / 403 MB, free: 7.336 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.241e-05/0.2691, allocations: 19.92 kB / 403 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.747e-05/0.2692, allocations: 15.92 kB / 403 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.2692, allocations: 4 kB / 403 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.248e-05/0.2692, allocations: 4 kB / 403 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.442e-05/0.2692, allocations: 11.98 kB / 403 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.265e-05/0.2693, allocations: 23.86 kB / 403 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001054/0.2694, allocations: 35.88 kB / 403.1 MB, free: 7.223 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2694, allocations: 0 / 403.1 MB, free: 7.223 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2694, allocations: 0 / 403.1 MB, free: 7.223 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.027e-06/0.2694, allocations: 0 / 403.1 MB, free: 7.223 MB / 318.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.0004499/0.2699, allocations: 357 kB / 403.4 MB, free: 6.824 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.2699, allocations: 15.83 kB / 403.4 MB, free: 6.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.836e-05/0.27, allocations: 4.938 kB / 403.4 MB, free: 6.805 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002381/0.2702, allocations: 180.2 kB / 403.6 MB, free: 6.59 MB / 318.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 9.429e-05/0.2703, allocations: 46.25 kB / 403.7 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.2703, allocations: 384 / 403.7 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002911/0.2706, allocations: 119.9 kB / 403.8 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.2706, allocations: 3.938 kB / 403.8 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.2707, allocations: 7.938 kB / 403.8 MB, free: 6.398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.2707, allocations: 4 kB / 403.8 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.882e-05/0.2707, allocations: 15.98 kB / 403.8 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001552/0.2709, allocations: 169.2 kB / 404 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.2711, allocations: 135.8 kB / 404.1 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.665e-05/0.2712, allocations: 32.83 kB / 404.1 MB, free: 5.973 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.262e-06/0.2712, allocations: 0 / 404.1 MB, free: 5.973 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.2712, allocations: 34.5 kB / 404.2 MB, free: 5.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.052e-06/0.2712, allocations: 4 kB / 404.2 MB, free: 5.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002036/0.2714, allocations: 77.53 kB / 404.3 MB, free: 5.844 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.757e-05/0.2715, allocations: 59.41 kB / 404.3 MB, free: 5.773 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.513e-05/0.2716, allocations: 105.8 kB / 404.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.2716, allocations: 25.7 kB / 404.4 MB, free: 5.629 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.569e-05/0.2717, allocations: 88.08 kB / 404.5 MB, free: 5.539 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.474e-05/0.2717, allocations: 3.984 kB / 404.5 MB, free: 5.535 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-05/0.2717, allocations: 21.72 kB / 404.6 MB, free: 5.508 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.2719, allocations: 318.8 kB / 404.9 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.818e-05/0.2719, allocations: 7.984 kB / 404.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.747e-05/0.2719, allocations: 44.22 kB / 404.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.323e-05/0.272, allocations: 52.23 kB / 405 MB, free: 5.055 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.272, allocations: 0 / 405 MB, free: 5.055 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.999e-05/0.2721, allocations: 69.53 kB / 405 MB, free: 4.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.2721, allocations: 11.92 kB / 405 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2721, allocations: 7.938 kB / 405.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.2722, allocations: 0 / 405.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.46e-05/0.2722, allocations: 8.156 kB / 405.1 MB, free: 4.953 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.2722, allocations: 4 kB / 405.1 MB, free: 4.949 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.477e-05/0.2723, allocations: 4 kB / 405.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.2723, allocations: 4 kB / 405.1 MB, free: 4.941 MB / 318.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 ($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 8.569e-05/0.2724, allocations: 113.8 kB / 405.2 MB, free: 4.82 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.2725, allocations: 69.47 kB / 405.3 MB, free: 4.746 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.452e-05/0.2725, allocations: 8.406 kB / 405.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.2725, allocations: 0 / 405.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2725, allocations: 0 / 405.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.2725, allocations: 11.92 kB / 405.3 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001038/0.2726, allocations: 165.7 kB / 405.4 MB, free: 4.512 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.2726, allocations: 0 / 405.4 MB, free: 4.512 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.512e-06/0.2727, allocations: 0 / 405.4 MB, free: 4.512 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.2727, allocations: 3.938 kB / 405.4 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.2727, allocations: 0 / 405.4 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2727, allocations: 0 / 405.4 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.2727, allocations: 4 kB / 405.4 MB, free: 4.504 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.2728, allocations: 93.06 kB / 405.5 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.65e-05/0.2729, allocations: 84.95 kB / 405.6 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.162e-05/0.2729, allocations: 11.92 kB / 405.6 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.446e-05/0.2729, allocations: 0 / 405.6 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.535e-06/0.2729, allocations: 0 / 405.6 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.273, allocations: 8 kB / 405.6 MB, free: 4.273 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.958e-05/0.273, allocations: 83.27 kB / 405.7 MB, free: 4.191 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.273, allocations: 0 / 405.7 MB, free: 4.191 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002037/0.2732, allocations: 12 kB / 405.7 MB, free: 4.18 MB / 318.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.951e-05/0.2733, allocations: 103.2 kB / 405.8 MB, free: 4.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001182/0.2734, allocations: 35.92 kB / 405.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2735, allocations: 0 / 405.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-07/0.2735, allocations: 0 / 405.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006697/0.2741, allocations: 0.7195 MB / 406.6 MB, free: 3.293 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002977/0.2745, allocations: 151.7 kB / 406.7 MB, free: 3.113 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/0.2747, allocations: 0.6883 MB / 407.4 MB, free: 2.398 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.388e-05/0.2747, allocations: 11.44 kB / 407.4 MB, free: 2.387 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2748, allocations: 0 / 407.4 MB, free: 2.387 MB / 318.1 MB Notification: Performance of Templates: time 0.002081/0.2768, allocations: 0.776 MB / 408.2 MB, free: 1.613 MB / 318.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches