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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001159/0.00116, allocations: 180.4 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008865/0.0008867, allocations: 89.47 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003767/0.0003768, allocations: 4 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3101, allocations: 50.41 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1095/0.4197, allocations: 76.18 MB / 477.7 MB, free: 4.324 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/0.42, allocations: 79.89 kB / 477.8 MB, free: 4.246 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002546/0.4226, allocations: 0.8801 MB / 478.6 MB, free: 3.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4226, allocations: 0 / 478.6 MB, free: 3.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.4226, allocations: 3.625 kB / 478.6 MB, free: 3.371 MB / 346.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.0004022/0.4231, allocations: 343.2 kB / 479 MB, free: 2.988 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.4231, allocations: 8.031 kB / 479 MB, free: 2.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.362e-05/0.4232, allocations: 11.89 kB / 479 MB, free: 2.969 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001892/0.4234, allocations: 175 kB / 479.2 MB, free: 2.758 MB / 346.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= -1 + pulse.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001662/0.4235, allocations: 37.69 kB / 479.2 MB, free: 2.715 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.468e-05/0.4236, allocations: 4 kB / 479.2 MB, free: 2.711 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003128/0.4239, allocations: 124.7 kB / 479.3 MB, free: 2.578 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.4239, allocations: 4.906 kB / 479.3 MB, free: 2.574 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.4239, allocations: 0 / 479.3 MB, free: 2.574 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.4239, allocations: 11.95 kB / 479.3 MB, free: 2.562 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.034e-05/0.424, allocations: 15.98 kB / 479.4 MB, free: 2.547 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001601/0.4242, allocations: 161.7 kB / 479.5 MB, free: 2.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002084/0.4244, allocations: 143.7 kB / 479.7 MB, free: 2.172 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.804e-06/0.4244, allocations: 3.938 kB / 479.7 MB, free: 2.168 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.4244, allocations: 30.56 kB / 479.7 MB, free: 2.129 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.4244, allocations: 4 kB / 479.7 MB, free: 2.125 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002629/0.4247, allocations: 150.9 kB / 479.8 MB, free: 1.953 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.4248, allocations: 51.41 kB / 479.9 MB, free: 1.891 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.08e-05/0.4249, allocations: 104.9 kB / 480 MB, free: 1.781 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.4249, allocations: 29.7 kB / 480 MB, free: 1.746 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.178e-05/0.4249, allocations: 88.08 kB / 480.1 MB, free: 1.656 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.25e-05/0.425, allocations: 0 / 480.1 MB, free: 1.656 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-06/0.425, allocations: 4 kB / 480.1 MB, free: 1.652 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.4251, allocations: 322.8 kB / 480.4 MB, free: 1.328 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.857e-05/0.4251, allocations: 8 kB / 480.4 MB, free: 1.32 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.146e-05/0.4251, allocations: 44.27 kB / 480.5 MB, free: 1.262 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.005e-05/0.4252, allocations: 12 kB / 480.5 MB, free: 1.25 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.4252, allocations: 7.938 kB / 480.5 MB, free: 1.242 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.993e-05/0.4253, allocations: 73.47 kB / 480.6 MB, free: 1.164 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.4253, allocations: 8 kB / 480.6 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.4253, allocations: 0 / 480.6 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.4254, allocations: 0 / 480.6 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.634e-05/0.4254, allocations: 4 kB / 480.6 MB, free: 1.152 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.922e-06/0.4254, allocations: 4 kB / 480.6 MB, free: 1.148 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.263e-05/0.4254, allocations: 0 / 480.6 MB, free: 1.148 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.4255, allocations: 8.156 kB / 480.6 MB, free: 1.141 MB / 346.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 (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.038e-05/0.4256, allocations: 132.6 kB / 480.7 MB, free: 1.004 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.854e-05/0.4257, allocations: 61.69 kB / 480.8 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.693e-05/0.4257, allocations: 3.969 kB / 480.8 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.4257, allocations: 0 / 480.8 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.4257, allocations: 96 / 480.8 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.4257, allocations: 7.984 kB / 480.8 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001076/0.4258, allocations: 166 kB / 481 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.4258, allocations: 0 / 481 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.801e-06/0.4259, allocations: 4 kB / 481 MB, free: 0.707 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.4259, allocations: 4 kB / 481 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.4259, allocations: 0 / 481 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.4259, allocations: 0 / 481 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.4259, allocations: 4 kB / 481 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001249/0.426, allocations: 96.91 kB / 481.1 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.854e-05/0.4261, allocations: 77.11 kB / 481.1 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.456e-05/0.4261, allocations: 8 kB / 481.1 MB, free: 496 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.089e-05/0.4262, allocations: 4 kB / 481.1 MB, free: 492 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.843e-06/0.4262, allocations: 0 / 481.1 MB, free: 492 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/0.4262, allocations: 7.984 kB / 481.2 MB, free: 484 kB / 346.7 MB Notification: Performance of sorting global known variables: time 4.112e-05/0.4262, allocations: 87.22 kB / 481.2 MB, free: 396 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4262, allocations: 0 / 481.2 MB, free: 396 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001786/0.4264, allocations: 8 kB / 481.3 MB, free: 388 kB / 346.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 (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.000118/0.4265, allocations: 103.2 kB / 481.4 MB, free: 276 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000117/0.4267, allocations: 36.17 kB / 481.4 MB, free: 240 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4267, allocations: 4.062 kB / 481.4 MB, free: 236 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-07/0.4267, allocations: 0 / 481.4 MB, free: 236 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007071/0.4274, allocations: 0.718 MB / 482.1 MB, free: 15.49 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003391/0.4277, allocations: 128.4 kB / 482.2 MB, free: 15.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003508/0.4281, allocations: 0.6888 MB / 482.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.48e-05/0.4282, allocations: 8.109 kB / 482.9 MB, free: 14.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.735e-05/0.4282, allocations: 11.44 kB / 482.9 MB, free: 14.6 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4282, allocations: 0 / 482.9 MB, free: 14.6 MB / 362.7 MB Notification: Performance of Templates: time 0.003063/0.4313, allocations: 0.5956 MB / 483.5 MB, free: 14.01 MB / 362.7 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches