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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001871/0.001871, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001882/0.001882, allocations: 153.1 kB / 24.26 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 178] 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=5011,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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.757e-05/3.939e-05, allocations: 6.25 kB / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003039/0.003078, allocations: 1.44 MB / 268.8 MB, free: 5.285 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002067/0.003285, allocations: 39.84 kB / 268.8 MB, free: 5.246 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.894e-05/0.003344, allocations: 7.938 kB / 268.8 MB, free: 5.238 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.202e-05/0.003366, allocations: 0 / 268.8 MB, free: 5.238 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.323e-05/0.003429, allocations: 7.922 kB / 268.8 MB, free: 5.23 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002357/0.003665, allocations: 35.89 kB / 268.8 MB, free: 5.195 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001018/0.003767, allocations: 39.86 kB / 268.9 MB, free: 5.156 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.276e-05/0.003849, allocations: 4 kB / 268.9 MB, free: 5.152 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.695e-05/0.003926, allocations: 19.98 kB / 268.9 MB, free: 5.133 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.522e-05/0.003982, allocations: 19.91 kB / 268.9 MB, free: 5.113 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.274e-05/0.004004, allocations: 4 kB / 268.9 MB, free: 5.109 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.212e-05/0.004017, allocations: 8 kB / 268.9 MB, free: 5.102 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.195e-05/0.004038, allocations: 7.984 kB / 269 MB, free: 5.094 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.105e-05/0.00407, allocations: 11.98 kB / 269 MB, free: 5.082 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001183/0.004188, allocations: 43.81 kB / 269 MB, free: 5.039 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.00419, allocations: 0 / 269 MB, free: 5.039 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.004191, allocations: 4 kB / 269 MB, free: 5.035 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.004195, allocations: 0 / 269 MB, free: 5.035 MB / 250.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.0005462/0.004742, allocations: 380.1 kB / 269.4 MB, free: 4.625 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.00478, allocations: 8.031 kB / 269.4 MB, free: 4.617 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.267e-05/0.004833, allocations: 12.94 kB / 269.4 MB, free: 4.605 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002165/0.005049, allocations: 132.5 kB / 269.5 MB, free: 4.449 MB / 250.7 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.0001065/0.005156, allocations: 38.25 kB / 269.6 MB, free: 4.406 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.535e-05/0.005171, allocations: 8.359 kB / 269.6 MB, free: 4.398 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003249/0.005496, allocations: 133.5 kB / 269.7 MB, free: 4.254 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.005506, allocations: 192 / 269.7 MB, free: 4.254 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.005518, allocations: 4.375 kB / 269.7 MB, free: 4.25 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.005524, allocations: 4.125 kB / 269.7 MB, free: 4.246 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.094e-05/0.005595, allocations: 16 kB / 269.7 MB, free: 4.23 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001602/0.005755, allocations: 120.6 kB / 269.8 MB, free: 4.078 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002239/0.005979, allocations: 71.11 kB / 269.9 MB, free: 3.996 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.323e-05/0.006043, allocations: 27.67 kB / 269.9 MB, free: 3.965 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.172e-05/0.006054, allocations: 0 / 269.9 MB, free: 3.965 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.439e-05/0.006089, allocations: 37.39 kB / 270 MB, free: 3.918 MB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 8.42e-07/0.006089, allocations: 0 / 270 MB, free: 3.918 MB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002417/0.006331, allocations: 77.58 kB / 270.1 MB, free: 3.836 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/0.006402, allocations: 63.39 kB / 270.1 MB, free: 3.762 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.00655, allocations: 169.9 kB / 270.3 MB, free: 3.578 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.006571, allocations: 29.7 kB / 270.3 MB, free: 3.543 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.243e-05/0.006654, allocations: 134.9 kB / 270.4 MB, free: 3.406 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.545e-05/0.006669, allocations: 7.953 kB / 270.5 MB, free: 3.398 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.625e-05/0.006716, allocations: 27.38 kB / 270.5 MB, free: 3.363 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0005509/0.007266, allocations: 492.1 kB / 271 MB, free: 2.871 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.275e-05/0.007289, allocations: 11.98 kB / 271 MB, free: 2.859 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.9e-05/0.007318, allocations: 19.38 kB / 271 MB, free: 2.832 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.243e-05/0.007371, allocations: 35.25 kB / 271 MB, free: 2.789 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.007372, allocations: 0 / 271 MB, free: 2.789 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.911e-05/0.007461, allocations: 57.69 kB / 271.1 MB, free: 2.727 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.007479, allocations: 8 kB / 271.1 MB, free: 2.719 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.007484, allocations: 0 / 271.1 MB, free: 2.719 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.007499, allocations: 0 / 271.1 MB, free: 2.719 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.425e-05/0.007543, allocations: 8.375 kB / 271.1 MB, free: 2.711 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.007551, allocations: 3.938 kB / 271.1 MB, free: 2.707 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.44e-05/0.007565, allocations: 0 / 271.1 MB, free: 2.707 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.007576, allocations: 8 kB / 271.1 MB, free: 2.699 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001297/0.007705, allocations: 164.6 kB / 271.3 MB, free: 2.527 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.00783, allocations: 61.64 kB / 271.3 MB, free: 2.461 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.438e-05/0.007864, allocations: 16.17 kB / 271.3 MB, free: 2.441 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.007868, allocations: 4 kB / 271.4 MB, free: 2.438 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.007872, allocations: 0 / 271.4 MB, free: 2.438 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.007876, allocations: 3.938 kB / 271.4 MB, free: 2.434 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001147/0.007991, allocations: 116.6 kB / 271.5 MB, free: 2.285 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.007992, allocations: 0 / 271.5 MB, free: 2.285 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.807e-06/0.008001, allocations: 3.938 kB / 271.5 MB, free: 2.281 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.008002, allocations: 0 / 271.5 MB, free: 2.281 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.008013, allocations: 4 kB / 271.5 MB, free: 2.277 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.008014, allocations: 0 / 271.5 MB, free: 2.277 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.008015, allocations: 192 / 271.5 MB, free: 2.277 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001669/0.008182, allocations: 108.4 kB / 271.6 MB, free: 2.148 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.388e-05/0.008196, allocations: 7.953 kB / 271.6 MB, free: 2.141 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.13e-05/0.008217, allocations: 7.984 kB / 271.6 MB, free: 2.133 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.313e-05/0.00826, allocations: 4 kB / 271.6 MB, free: 2.129 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.364e-06/0.008262, allocations: 0 / 271.6 MB, free: 2.129 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-06/0.008272, allocations: 4 kB / 271.6 MB, free: 2.125 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.991e-05/0.008352, allocations: 127.2 kB / 271.7 MB, free: 2 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008352, allocations: 0 / 271.7 MB, free: 2 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001803/0.008532, allocations: 7.938 kB / 271.7 MB, free: 1.992 MB / 250.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 (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.0001433/0.008675, allocations: 111.3 kB / 271.8 MB, free: 1.875 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001235/0.008799, allocations: 35.69 kB / 271.9 MB, free: 1.836 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.0088, allocations: 0 / 271.9 MB, free: 1.836 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.008801, allocations: 0 / 271.9 MB, free: 1.836 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.009817, allocations: 1.072 MB / 273 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003304/0.01015, allocations: 140 kB / 273.1 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.256e-05/0.01022, allocations: 71.33 kB / 273.2 MB, free: 492 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.016e-05/0.01024, allocations: 256 / 273.2 MB, free: 492 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.377e-05/0.01027, allocations: 12.69 kB / 273.2 MB, free: 476 kB / 250.7 MB Notification: Performance of SimCode: time 8.61e-07/0.01027, allocations: 4 kB / 273.2 MB, free: 472 kB / 250.7 MB Notification: Performance of Templates: time 0.003622/0.0139, allocations: 0.7518 MB / 273.9 MB, free: 15.72 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 240] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.259492360986769]