Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00159/0.00159, allocations: 109.1 kB / 21.19 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001763/0.001763, allocations: 217 kB / 24.5 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.74/1.74, allocations: 230.5 MB / 258.1 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001975/0.001975, allocations: 55.91 kB / 379 MB, free: 2.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.2426, allocations: 53.41 MB / 432.4 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003086/0.2457, allocations: 1.461 MB / 433.9 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002149/0.2459, allocations: 43.84 kB / 433.9 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.807e-05/0.246, allocations: 0 / 433.9 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.549e-05/0.2461, allocations: 7.922 kB / 433.9 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.468e-05/0.2461, allocations: 3.938 kB / 433.9 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002557/0.2464, allocations: 23.97 kB / 434 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001065/0.2465, allocations: 43.86 kB / 434 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.2466, allocations: 15.97 kB / 434 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.131e-05/0.2466, allocations: 15.94 kB / 434 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.399e-05/0.2467, allocations: 15.92 kB / 434.1 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.674e-05/0.2467, allocations: 4 kB / 434.1 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.154e-05/0.2467, allocations: 4 kB / 434.1 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.898e-05/0.2467, allocations: 19.86 kB / 434.1 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.372e-05/0.2468, allocations: 19.92 kB / 434.1 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001141/0.2469, allocations: 39.67 kB / 434.1 MB, free: 5.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2469, allocations: 0 / 434.1 MB, free: 5.039 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2469, allocations: 0 / 434.1 MB, free: 5.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.491e-06/0.2469, allocations: 7.938 kB / 434.1 MB, free: 5.031 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.0004892/0.2474, allocations: 271.8 kB / 434.4 MB, free: 4.738 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.2474, allocations: 8.031 kB / 434.4 MB, free: 4.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.598e-05/0.2475, allocations: 8.891 kB / 434.4 MB, free: 4.723 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002448/0.2477, allocations: 122.5 kB / 434.6 MB, free: 4.578 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.0001117/0.2478, allocations: 34.25 kB / 434.6 MB, free: 4.539 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.383e-05/0.2479, allocations: 4.375 kB / 434.6 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003192/0.2482, allocations: 123.8 kB / 434.7 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.2482, allocations: 3.938 kB / 434.7 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.2482, allocations: 4 kB / 434.7 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.2482, allocations: 0 / 434.7 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.462e-05/0.2483, allocations: 19.98 kB / 434.7 MB, free: 4.375 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001716/0.2484, allocations: 136.6 kB / 434.9 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001943/0.2486, allocations: 62.62 kB / 434.9 MB, free: 4.129 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.675e-05/0.2487, allocations: 24.84 kB / 435 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.145e-05/0.2487, allocations: 0 / 435 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.087e-05/0.2487, allocations: 34.56 kB / 435 MB, free: 4.059 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 9.81e-07/0.2488, allocations: 0 / 435 MB, free: 4.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002259/0.249, allocations: 77.55 kB / 435.1 MB, free: 3.977 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.104e-05/0.249, allocations: 71.33 kB / 435.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.2492, allocations: 101.9 kB / 435.2 MB, free: 3.785 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.2492, allocations: 25.7 kB / 435.3 MB, free: 3.754 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.856e-05/0.2492, allocations: 88.12 kB / 435.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/0.2492, allocations: 7.953 kB / 435.4 MB, free: 3.656 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.007e-05/0.2493, allocations: 17.72 kB / 435.4 MB, free: 3.633 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.2494, allocations: 318.8 kB / 435.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.789e-05/0.2494, allocations: 4 kB / 435.7 MB, free: 3.309 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.248e-05/0.2495, allocations: 40.3 kB / 435.7 MB, free: 3.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.633e-05/0.2496, allocations: 52.22 kB / 435.8 MB, free: 3.188 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2496, allocations: 7.938 kB / 435.8 MB, free: 3.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001248/0.2497, allocations: 73.95 kB / 435.9 MB, free: 3.102 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.2497, allocations: 11.94 kB / 435.9 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.2497, allocations: 0 / 435.9 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.2497, allocations: 4 kB / 435.9 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.728e-05/0.2498, allocations: 8 kB / 435.9 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.2498, allocations: 3.938 kB / 435.9 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.626e-05/0.2498, allocations: 4 kB / 435.9 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.539e-06/0.2498, allocations: 8.156 kB / 435.9 MB, free: 3.062 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 8.804e-05/0.2499, allocations: 113.8 kB / 436 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.25, allocations: 61.62 kB / 436.1 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.817e-05/0.25, allocations: 12.05 kB / 436.1 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.25, allocations: 4 kB / 436.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.25, allocations: 0 / 436.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.2501, allocations: 0 / 436.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00011/0.2502, allocations: 128.7 kB / 436.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2502, allocations: 0 / 436.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.047e-05/0.2502, allocations: 7.938 kB / 436.2 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.329e-06/0.2502, allocations: 3.938 kB / 436.2 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.2502, allocations: 4 kB / 436.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2502, allocations: 3.938 kB / 436.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.2502, allocations: 0 / 436.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000141/0.2503, allocations: 93.06 kB / 436.3 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.108e-05/0.2503, allocations: 4 kB / 436.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.2504, allocations: 3.938 kB / 436.3 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.809e-05/0.2504, allocations: 12 kB / 436.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.515e-06/0.2504, allocations: 0 / 436.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.2504, allocations: 4 kB / 436.3 MB, free: 2.535 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.288e-05/0.2505, allocations: 87.27 kB / 436.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2505, allocations: 0 / 436.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001973/0.2507, allocations: 8 kB / 436.4 MB, free: 2.441 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.0001258/0.2508, allocations: 98.62 kB / 436.5 MB, free: 2.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001366/0.2509, allocations: 40.11 kB / 436.6 MB, free: 2.301 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2509, allocations: 0 / 436.6 MB, free: 2.301 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.71e-07/0.2509, allocations: 0 / 436.6 MB, free: 2.301 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007403/0.2517, allocations: 0.7253 MB / 437.3 MB, free: 1.555 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003395/0.252, allocations: 159.3 kB / 437.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003301/0.2523, allocations: 0.6848 MB / 438.1 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.376e-05/0.2524, allocations: 7.438 kB / 438.1 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2524, allocations: 0 / 438.1 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of Templates: time 0.002538/0.2549, allocations: 0.7733 MB / 438.9 MB, free: 15.88 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 7.142513282829896]