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.001202/0.001202, allocations: 107.2 kB / 17.74 MB, free: 5.316 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.001328/0.001329, allocations: 188.2 kB / 18.67 MB, free: 4.395 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.363/1.363, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 43.92 kB / 352 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.3269, allocations: 49.43 MB / 401.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002539/0.3295, allocations: 1.434 MB / 402.8 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001939/0.3297, allocations: 43.84 kB / 402.9 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.511e-05/0.3298, allocations: 0 / 402.9 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.658e-05/0.3298, allocations: 0 / 402.9 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.398e-05/0.3299, allocations: 7.922 kB / 402.9 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002405/0.3301, allocations: 31.91 kB / 402.9 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.907e-05/0.3302, allocations: 35.92 kB / 402.9 MB, free: 7.344 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.3303, allocations: 15.98 kB / 403 MB, free: 7.328 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.878e-05/0.3304, allocations: 11.94 kB / 403 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.523e-05/0.3304, allocations: 23.91 kB / 403 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.056e-05/0.3305, allocations: 4 kB / 403 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.929e-06/0.3305, allocations: 0 / 403 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.437e-05/0.3305, allocations: 11.98 kB / 403 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.517e-05/0.3306, allocations: 15.88 kB / 403 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.954e-05/0.3307, allocations: 43.86 kB / 403.1 MB, free: 7.219 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3307, allocations: 7.938 kB / 403.1 MB, free: 7.211 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3307, allocations: 0 / 403.1 MB, free: 7.211 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.3307, allocations: 0 / 403.1 MB, free: 7.211 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.0004921/0.3312, allocations: 352.8 kB / 403.4 MB, free: 6.816 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.3313, allocations: 11.89 kB / 403.4 MB, free: 6.805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.741e-05/0.3313, allocations: 4.938 kB / 403.4 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002143/0.3315, allocations: 184.2 kB / 403.6 MB, free: 6.582 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.0001062/0.3316, allocations: 42.25 kB / 403.7 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.619e-05/0.3317, allocations: 8.375 kB / 403.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002881/0.3319, allocations: 123.8 kB / 403.8 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.332, allocations: 3.938 kB / 403.8 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.332, allocations: 0 / 403.8 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.332, allocations: 3.938 kB / 403.8 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.801e-05/0.3321, allocations: 15.98 kB / 403.8 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001583/0.3322, allocations: 173.3 kB / 404 MB, free: 6.156 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002059/0.3324, allocations: 131.8 kB / 404.1 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.232e-05/0.3325, allocations: 24.86 kB / 404.1 MB, free: 5.973 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.395e-06/0.3325, allocations: 3.984 kB / 404.1 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.3325, allocations: 38.5 kB / 404.2 MB, free: 5.922 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.153e-06/0.3325, allocations: 0 / 404.2 MB, free: 5.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.000218/0.3328, allocations: 77.53 kB / 404.3 MB, free: 5.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.799e-05/0.3328, allocations: 59.41 kB / 404.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.037e-05/0.3329, allocations: 109.8 kB / 404.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/0.333, allocations: 29.7 kB / 404.4 MB, free: 5.617 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.601e-05/0.333, allocations: 84.08 kB / 404.5 MB, free: 5.531 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.547e-05/0.333, allocations: 4 kB / 404.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.275e-05/0.3331, allocations: 21.7 kB / 404.6 MB, free: 5.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.3332, allocations: 318.8 kB / 404.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.561e-05/0.3332, allocations: 4 kB / 404.9 MB, free: 5.176 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.118e-05/0.3333, allocations: 44.22 kB / 404.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.622e-05/0.3333, allocations: 52.23 kB / 405 MB, free: 5.051 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3333, allocations: 0 / 405 MB, free: 5.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.383e-05/0.3334, allocations: 69.53 kB / 405 MB, free: 4.977 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.3335, allocations: 11.94 kB / 405 MB, free: 4.965 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3335, allocations: 0 / 405 MB, free: 4.965 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.3335, allocations: 3.938 kB / 405 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.223e-05/0.3335, allocations: 11.98 kB / 405.1 MB, free: 4.949 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.3336, allocations: 4.156 kB / 405.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.544e-05/0.3336, allocations: 4 kB / 405.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-06/0.3336, allocations: 4 kB / 405.1 MB, free: 4.938 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.97e-05/0.3337, allocations: 114.3 kB / 405.2 MB, free: 4.816 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.3338, allocations: 77.41 kB / 405.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.384e-05/0.3338, allocations: 7.969 kB / 405.3 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.3338, allocations: 4 kB / 405.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3338, allocations: 0 / 405.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.3339, allocations: 0 / 405.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.334, allocations: 161.7 kB / 405.4 MB, free: 4.512 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.334, allocations: 0 / 405.4 MB, free: 4.512 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.551e-06/0.334, allocations: 0 / 405.4 MB, free: 4.512 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.334, allocations: 7.922 kB / 405.4 MB, free: 4.504 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-06/0.334, allocations: 4 kB / 405.4 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.334, allocations: 0 / 405.4 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.334, allocations: 0 / 405.4 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001317/0.3342, allocations: 89.06 kB / 405.5 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.437e-05/0.3342, allocations: 92.95 kB / 405.6 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.3342, allocations: 3.938 kB / 405.6 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.53e-05/0.3343, allocations: 7.984 kB / 405.6 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.683e-06/0.3343, allocations: 144 / 405.6 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.3343, allocations: 7.984 kB / 405.6 MB, free: 4.266 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.012e-05/0.3344, allocations: 79.28 kB / 405.7 MB, free: 4.188 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3344, allocations: 0 / 405.7 MB, free: 4.188 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001907/0.3346, allocations: 12 kB / 405.7 MB, free: 4.176 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.0001103/0.3347, allocations: 107.2 kB / 405.8 MB, free: 4.062 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001141/0.3348, allocations: 35.94 kB / 405.9 MB, free: 4.027 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3348, allocations: 0 / 405.9 MB, free: 4.027 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.244e-06/0.3348, allocations: 3.984 kB / 405.9 MB, free: 4.023 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006608/0.3355, allocations: 0.7156 MB / 406.6 MB, free: 3.285 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002971/0.3358, allocations: 151.7 kB / 406.7 MB, free: 3.105 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000254/0.3361, allocations: 0.6922 MB / 407.4 MB, free: 2.387 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.147e-05/0.3361, allocations: 11.44 kB / 407.4 MB, free: 2.375 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3361, allocations: 0 / 407.4 MB, free: 2.375 MB / 318.1 MB Notification: Performance of Templates: time 0.002168/0.3383, allocations: 0.776 MB / 408.2 MB, free: 1.602 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