Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 111 kB / 21.18 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001714/0.001714, allocations: 207.5 kB / 24.48 MB, free: 3.969 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.929/1.929, allocations: 230.6 MB / 258.2 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 43.92 kB / 379 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4194/0.4214, allocations: 53.38 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003519/0.4249, allocations: 1.45 MB / 433.8 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002955/0.4252, allocations: 39.84 kB / 433.8 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.527e-05/0.4253, allocations: 0 / 433.8 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.351e-05/0.4253, allocations: 7.922 kB / 433.8 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.798e-05/0.4254, allocations: 3.938 kB / 433.8 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002931/0.4257, allocations: 27.97 kB / 433.9 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001289/0.4258, allocations: 43.86 kB / 433.9 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.4259, allocations: 15.77 kB / 433.9 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.711e-05/0.426, allocations: 12 kB / 433.9 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.782e-05/0.426, allocations: 23.92 kB / 434 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.833e-05/0.4261, allocations: 3.938 kB / 434 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.742e-05/0.4261, allocations: 4 kB / 434 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.624e-05/0.4261, allocations: 15.92 kB / 434 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.986e-05/0.4262, allocations: 15.92 kB / 434 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001404/0.4263, allocations: 39.81 kB / 434 MB, free: 5.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.4263, allocations: 4 kB / 434 MB, free: 5.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4263, allocations: 4 kB / 434 MB, free: 5.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.4263, allocations: 0 / 434 MB, free: 5.02 MB / 334.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.000579/0.4269, allocations: 273.1 kB / 434.3 MB, free: 4.727 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.4269, allocations: 8.031 kB / 434.3 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.015e-05/0.427, allocations: 8.891 kB / 434.3 MB, free: 4.711 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002876/0.4273, allocations: 122.5 kB / 434.4 MB, free: 4.566 MB / 334.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.0001217/0.4274, allocations: 34.25 kB / 434.5 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.341e-05/0.4274, allocations: 4.375 kB / 434.5 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004233/0.4278, allocations: 123.8 kB / 434.6 MB, free: 4.391 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.4279, allocations: 3.938 kB / 434.6 MB, free: 4.387 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.4279, allocations: 4 kB / 434.6 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.4279, allocations: 4 kB / 434.6 MB, free: 4.379 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.04e-05/0.428, allocations: 15.98 kB / 434.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001733/0.4281, allocations: 113.2 kB / 434.7 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003244/0.4285, allocations: 58.62 kB / 434.8 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.191e-05/0.4286, allocations: 24.84 kB / 434.8 MB, free: 4.129 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.318e-05/0.4286, allocations: 4 kB / 434.8 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.4286, allocations: 30.56 kB / 434.9 MB, free: 4.086 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.674e-06/0.4286, allocations: 0 / 434.9 MB, free: 4.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003149/0.4289, allocations: 77.62 kB / 434.9 MB, free: 4.004 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.425e-05/0.429, allocations: 59.34 kB / 435 MB, free: 3.934 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.4291, allocations: 109.8 kB / 435.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.4292, allocations: 25.7 kB / 435.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.623e-05/0.4292, allocations: 84.08 kB / 435.2 MB, free: 3.699 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.395e-05/0.4293, allocations: 11.94 kB / 435.2 MB, free: 3.688 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.995e-05/0.4293, allocations: 21.72 kB / 435.2 MB, free: 3.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.4295, allocations: 310.8 kB / 435.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.897e-05/0.4295, allocations: 15.98 kB / 435.6 MB, free: 3.332 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.048e-05/0.4296, allocations: 36.3 kB / 435.6 MB, free: 3.281 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.467e-05/0.4297, allocations: 44.67 kB / 435.6 MB, free: 3.223 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4297, allocations: 0 / 435.6 MB, free: 3.223 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001724/0.4298, allocations: 85.69 kB / 435.7 MB, free: 3.133 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.4299, allocations: 7.984 kB / 435.7 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.4299, allocations: 7.984 kB / 435.7 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.575e-05/0.4299, allocations: 11.88 kB / 435.7 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.607e-05/0.43, allocations: 4 kB / 435.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.43, allocations: 160 / 435.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.31e-05/0.43, allocations: 4 kB / 435.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.43, allocations: 4 kB / 435.8 MB, free: 3.094 MB / 334.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 0.0001395/0.4302, allocations: 117.8 kB / 435.9 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.4303, allocations: 61.69 kB / 435.9 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.173e-05/0.4303, allocations: 12.03 kB / 435.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.4303, allocations: 0 / 435.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4303, allocations: 0 / 435.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.4303, allocations: 3.984 kB / 435.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001193/0.4305, allocations: 101.3 kB / 436 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.4305, allocations: 0 / 436 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.417e-05/0.4305, allocations: 4 kB / 436 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.4305, allocations: 0 / 436 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.4305, allocations: 3.984 kB / 436.1 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.092e-06/0.4305, allocations: 7.922 kB / 436.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.4305, allocations: 3.938 kB / 436.1 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001881/0.4307, allocations: 93.08 kB / 436.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.713e-05/0.4307, allocations: 7.938 kB / 436.2 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.934e-05/0.4307, allocations: 4 kB / 436.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.576e-05/0.4308, allocations: 7.922 kB / 436.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.466e-06/0.4308, allocations: 0 / 436.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.4308, allocations: 4 kB / 436.2 MB, free: 2.602 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.972e-05/0.4309, allocations: 87.28 kB / 436.3 MB, free: 2.516 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4309, allocations: 0 / 436.3 MB, free: 2.516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003622/0.4313, allocations: 12 kB / 436.3 MB, free: 2.504 MB / 334.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.0001283/0.4314, allocations: 103.2 kB / 436.4 MB, free: 2.395 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001582/0.4315, allocations: 31.94 kB / 436.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4315, allocations: 0 / 436.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.32e-07/0.4315, allocations: 0 / 436.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.4326, allocations: 0.718 MB / 437.1 MB, free: 1.621 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004165/0.433, allocations: 129.6 kB / 437.3 MB, free: 1.469 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.678e-05/0.4331, allocations: 71.27 kB / 437.3 MB, free: 1.379 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.168e-05/0.4331, allocations: 12.31 kB / 437.3 MB, free: 1.367 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.072e-05/0.4331, allocations: 7.438 kB / 437.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of SimCode: time 4.5e-07/0.4331, allocations: 0 / 437.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of Templates: time 0.004373/0.4375, allocations: 0.7902 MB / 438.1 MB, free: 0.5938 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.38825650200306]