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.001244/0.001244, allocations: 108.9 kB / 17.06 MB, free: 6.137 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.001301/0.001301, allocations: 191 kB / 18 MB, free: 5.219 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.633/1.633, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 51.92 kB / 351.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4128/0.4144, allocations: 49.44 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002823/0.4172, allocations: 1.425 MB / 402.1 MB, free: 7.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002374/0.4175, allocations: 47.83 kB / 402.2 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.023e-05/0.4176, allocations: 0 / 402.2 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.495e-05/0.4176, allocations: 3.938 kB / 402.2 MB, free: 7.391 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.045e-05/0.4177, allocations: 7.938 kB / 402.2 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.418, allocations: 30.08 kB / 402.2 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001032/0.4181, allocations: 35.92 kB / 402.3 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.4182, allocations: 12 kB / 402.3 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.799e-05/0.4183, allocations: 19.92 kB / 402.3 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.535e-05/0.4183, allocations: 19.91 kB / 402.3 MB, free: 7.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.398e-05/0.4184, allocations: 4 kB / 402.3 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.204e-05/0.4184, allocations: 4 kB / 402.3 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.725e-05/0.4184, allocations: 11.92 kB / 402.3 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.084e-05/0.4185, allocations: 15.94 kB / 402.4 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001117/0.4186, allocations: 39.88 kB / 402.4 MB, free: 7.195 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.4186, allocations: 0 / 402.4 MB, free: 7.195 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4186, allocations: 0 / 402.4 MB, free: 7.195 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.4186, allocations: 4 kB / 402.4 MB, free: 7.191 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.000544/0.4192, allocations: 352.8 kB / 402.7 MB, free: 6.797 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.4192, allocations: 11.89 kB / 402.8 MB, free: 6.785 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.307e-05/0.4193, allocations: 12.86 kB / 402.8 MB, free: 6.773 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002345/0.4195, allocations: 180.2 kB / 402.9 MB, free: 6.559 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 0.0001124/0.4196, allocations: 38.25 kB / 403 MB, free: 6.516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.4196, allocations: 4.375 kB / 403 MB, free: 6.512 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003235/0.42, allocations: 123.8 kB / 403.1 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.42, allocations: 7.922 kB / 403.1 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.42, allocations: 0 / 403.1 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.42, allocations: 0 / 403.1 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.443e-05/0.4201, allocations: 23.98 kB / 403.1 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001538/0.4202, allocations: 161.3 kB / 403.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002056/0.4205, allocations: 147.7 kB / 403.4 MB, free: 5.973 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.282e-05/0.4205, allocations: 20.86 kB / 403.5 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.855e-06/0.4205, allocations: 4 kB / 403.5 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.229e-05/0.4206, allocations: 30.56 kB / 403.5 MB, free: 5.906 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.152e-06/0.4206, allocations: 0 / 403.5 MB, free: 5.906 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002318/0.4208, allocations: 85.52 kB / 403.6 MB, free: 5.816 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.417e-05/0.4209, allocations: 55.41 kB / 403.6 MB, free: 5.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.999e-05/0.421, allocations: 105.8 kB / 403.7 MB, free: 5.637 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.421, allocations: 29.7 kB / 403.8 MB, free: 5.602 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.68e-05/0.4211, allocations: 92.06 kB / 403.9 MB, free: 5.508 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.697e-05/0.4211, allocations: 4 kB / 403.9 MB, free: 5.504 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-05/0.4211, allocations: 17.72 kB / 403.9 MB, free: 5.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.4213, allocations: 318.8 kB / 404.2 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.653e-05/0.4213, allocations: 8 kB / 404.2 MB, free: 5.152 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.655e-05/0.4214, allocations: 48.27 kB / 404.2 MB, free: 5.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.44e-05/0.4214, allocations: 44.22 kB / 404.3 MB, free: 5.031 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.4214, allocations: 4.438 kB / 404.3 MB, free: 5.027 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001551/0.4216, allocations: 81.47 kB / 404.4 MB, free: 4.941 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.4216, allocations: 7.938 kB / 404.4 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.4216, allocations: 0 / 404.4 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.4217, allocations: 4 kB / 404.4 MB, free: 4.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.473e-05/0.4217, allocations: 8 kB / 404.4 MB, free: 4.922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.4217, allocations: 0 / 404.4 MB, free: 4.922 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.473e-05/0.4218, allocations: 4 kB / 404.4 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-06/0.4218, allocations: 4.156 kB / 404.4 MB, free: 4.914 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 9.197e-05/0.4219, allocations: 125.8 kB / 404.5 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.422, allocations: 65.53 kB / 404.6 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.629e-05/0.422, allocations: 7.969 kB / 404.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.422, allocations: 0 / 404.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.422, allocations: 0 / 404.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.422, allocations: 0 / 404.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001122/0.4222, allocations: 157.7 kB / 404.7 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.4222, allocations: 3.938 kB / 404.7 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.041e-06/0.4222, allocations: 4 kB / 404.7 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.4222, allocations: 7.938 kB / 404.8 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.4222, allocations: 4 kB / 404.8 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.4222, allocations: 0 / 404.8 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4222, allocations: 0 / 404.8 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001268/0.4223, allocations: 96.98 kB / 404.9 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.667e-05/0.4224, allocations: 81.02 kB / 404.9 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.4224, allocations: 3.938 kB / 404.9 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.648e-05/0.4225, allocations: 12 kB / 404.9 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-06/0.4225, allocations: 0 / 404.9 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.4225, allocations: 7.984 kB / 405 MB, free: 4.242 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.48e-05/0.4226, allocations: 87.28 kB / 405 MB, free: 4.156 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4226, allocations: 0 / 405 MB, free: 4.156 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001881/0.4228, allocations: 4 kB / 405 MB, free: 4.152 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 0.0001303/0.4229, allocations: 103.3 kB / 405.1 MB, free: 4.043 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001376/0.423, allocations: 40.16 kB / 405.2 MB, free: 4.004 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4231, allocations: 4.062 kB / 405.2 MB, free: 4 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.4231, allocations: 0 / 405.2 MB, free: 4 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006475/0.4237, allocations: 0.7193 MB / 405.9 MB, free: 3.258 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002974/0.424, allocations: 125.6 kB / 406 MB, free: 3.109 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002581/0.4243, allocations: 0.6844 MB / 406.7 MB, free: 2.398 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.034e-05/0.4243, allocations: 8.062 kB / 406.7 MB, free: 2.391 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.759e-05/0.4244, allocations: 11.42 kB / 406.7 MB, free: 2.379 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4244, allocations: 0 / 406.7 MB, free: 2.379 MB / 318.1 MB Notification: Performance of Templates: time 0.003352/0.4277, allocations: 0.6818 MB / 407.4 MB, free: 1.699 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/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