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.001484/0.001484, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001498/0.001498, allocations: 206 kB / 23.72 MB, free: 4.391 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.463/1.463, allocations: 230.5 MB / 257.4 MB, free: 7.793 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.002103/0.002103, allocations: 55.91 kB / 378.2 MB, free: 2.328 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2707, allocations: 53.41 MB / 431.6 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003128/0.2738, allocations: 1.446 MB / 433.1 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002829/0.2741, allocations: 47.84 kB / 433.1 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.234e-05/0.2742, allocations: 0 / 433.1 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.848e-05/0.2743, allocations: 3.938 kB / 433.1 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.153e-05/0.2743, allocations: 3.938 kB / 433.1 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003054/0.2746, allocations: 27.97 kB / 433.2 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001255/0.2748, allocations: 43.84 kB / 433.2 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.2749, allocations: 11.94 kB / 433.2 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.101e-05/0.275, allocations: 23.91 kB / 433.2 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.227e-05/0.275, allocations: 11.92 kB / 433.2 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.833e-05/0.2751, allocations: 4 kB / 433.3 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.658e-05/0.2751, allocations: 8 kB / 433.3 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.634e-05/0.2751, allocations: 8 kB / 433.3 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.637e-05/0.2752, allocations: 15.94 kB / 433.3 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001983/0.2754, allocations: 47.59 kB / 433.3 MB, free: 4.824 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.2754, allocations: 0 / 433.3 MB, free: 4.824 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.2754, allocations: 0 / 433.3 MB, free: 4.824 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.163e-05/0.2754, allocations: 3.938 kB / 433.3 MB, free: 4.82 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.0006707/0.2761, allocations: 272.7 kB / 433.6 MB, free: 4.527 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.2761, allocations: 11.98 kB / 433.6 MB, free: 4.516 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.896e-05/0.2762, allocations: 8.891 kB / 433.6 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000296/0.2765, allocations: 122.5 kB / 433.7 MB, free: 4.363 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.0001305/0.2766, allocations: 34.25 kB / 433.8 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.2766, allocations: 4.375 kB / 433.8 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003764/0.277, allocations: 135.8 kB / 433.9 MB, free: 4.176 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.277, allocations: 3.938 kB / 433.9 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.277, allocations: 4 kB / 433.9 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.2771, allocations: 0 / 433.9 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.024e-05/0.2771, allocations: 16 kB / 433.9 MB, free: 4.152 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001713/0.2773, allocations: 121.1 kB / 434.1 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002153/0.2775, allocations: 58.62 kB / 434.1 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.086e-05/0.2776, allocations: 20.84 kB / 434.1 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.2776, allocations: 0 / 434.1 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.2776, allocations: 34.56 kB / 434.2 MB, free: 3.871 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.412e-06/0.2776, allocations: 0 / 434.2 MB, free: 3.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002637/0.2779, allocations: 77.62 kB / 434.2 MB, free: 3.789 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.617e-05/0.278, allocations: 55.34 kB / 434.3 MB, free: 3.723 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.2781, allocations: 109.8 kB / 434.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.2781, allocations: 25.7 kB / 434.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.252e-05/0.2781, allocations: 88.14 kB / 434.5 MB, free: 3.484 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.2782, allocations: 11.94 kB / 434.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.342e-05/0.2782, allocations: 17.72 kB / 434.5 MB, free: 3.449 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.2784, allocations: 318.8 kB / 434.9 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.116e-05/0.2784, allocations: 8 kB / 434.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.908e-05/0.2784, allocations: 36.3 kB / 434.9 MB, free: 3.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001112/0.2785, allocations: 48.22 kB / 434.9 MB, free: 3.008 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2785, allocations: 4 kB / 434.9 MB, free: 3.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001327/0.2787, allocations: 81.45 kB / 435 MB, free: 2.918 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.2787, allocations: 8 kB / 435 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.2787, allocations: 448 / 435 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.465e-05/0.2787, allocations: 7.938 kB / 435 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.442e-05/0.2788, allocations: 4 kB / 435 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.2788, allocations: 0 / 435 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.31e-05/0.2788, allocations: 8 kB / 435.1 MB, free: 2.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-06/0.2788, allocations: 4.156 kB / 435.1 MB, free: 2.887 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.0001089/0.2789, allocations: 117.8 kB / 435.2 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.2791, allocations: 61.69 kB / 435.2 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.911e-05/0.2791, allocations: 15.98 kB / 435.2 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.2791, allocations: 0 / 435.2 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.2791, allocations: 0 / 435.2 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2791, allocations: 3.938 kB / 435.3 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.236e-05/0.2792, allocations: 105.3 kB / 435.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2792, allocations: 0 / 435.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.424e-06/0.2792, allocations: 0 / 435.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.2792, allocations: 4 kB / 435.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.2792, allocations: 4 kB / 435.4 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.2792, allocations: 3.938 kB / 435.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.2792, allocations: 0 / 435.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001648/0.2794, allocations: 93.02 kB / 435.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.397e-05/0.2794, allocations: 4 kB / 435.5 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.245e-05/0.2794, allocations: 3.984 kB / 435.5 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.102e-05/0.2795, allocations: 7.938 kB / 435.5 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.406e-06/0.2795, allocations: 144 / 435.5 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.2795, allocations: 7.984 kB / 435.5 MB, free: 2.395 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.666e-05/0.2795, allocations: 87.28 kB / 435.6 MB, free: 2.309 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2795, allocations: 4 kB / 435.6 MB, free: 2.305 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002144/0.2798, allocations: 15.98 kB / 435.6 MB, free: 2.289 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.0001354/0.2799, allocations: 95.25 kB / 435.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001566/0.2801, allocations: 31.92 kB / 435.7 MB, free: 2.156 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2801, allocations: 0 / 435.7 MB, free: 2.156 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.086e-06/0.2801, allocations: 4 kB / 435.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007814/0.2808, allocations: 0.7244 MB / 436.4 MB, free: 1.41 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003814/0.2812, allocations: 129.7 kB / 436.6 MB, free: 1.258 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.736e-05/0.2813, allocations: 71.33 kB / 436.6 MB, free: 1.168 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.784e-05/0.2813, allocations: 0 / 436.6 MB, free: 1.168 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.346e-05/0.2814, allocations: 15.38 kB / 436.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2814, allocations: 0 / 436.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of Templates: time 0.003877/0.2852, allocations: 0.7763 MB / 437.4 MB, free: 408 kB / 334.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/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: 4.462356936186552]