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.001927/0.001927, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002782/0.002782, allocations: 209.3 kB / 23.73 MB, free: 4.379 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.525/1.525, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001746/0.001746, allocations: 47.92 kB / 378.2 MB, free: 2.551 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2971, allocations: 53.37 MB / 431.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003302/0.3004, allocations: 1.446 MB / 433 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002313/0.3006, allocations: 43.91 kB / 433.1 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.95e-05/0.3007, allocations: 3.938 kB / 433.1 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.967e-05/0.3007, allocations: 0 / 433.1 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.178e-05/0.3008, allocations: 11.91 kB / 433.1 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002671/0.3011, allocations: 23.98 kB / 433.1 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000117/0.3012, allocations: 43.84 kB / 433.1 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.3013, allocations: 11.98 kB / 433.2 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.93e-05/0.3014, allocations: 15.94 kB / 433.2 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.682e-05/0.3014, allocations: 15.92 kB / 433.2 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.781e-05/0.3015, allocations: 4 kB / 433.2 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.408e-05/0.3015, allocations: 8 kB / 433.2 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.65e-05/0.3015, allocations: 19.91 kB / 433.2 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.97e-05/0.3016, allocations: 15.94 kB / 433.2 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.3017, allocations: 35.69 kB / 433.3 MB, free: 5.016 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3017, allocations: 0 / 433.3 MB, free: 5.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3017, allocations: 0 / 433.3 MB, free: 5.016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.3017, allocations: 0 / 433.3 MB, free: 5.016 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.0005182/0.3022, allocations: 279.7 kB / 433.5 MB, free: 4.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.3023, allocations: 12.02 kB / 433.6 MB, free: 4.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.025e-05/0.3023, allocations: 8.891 kB / 433.6 MB, free: 4.695 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002832/0.3026, allocations: 126.5 kB / 433.7 MB, free: 4.547 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.0001199/0.3027, allocations: 37.62 kB / 433.7 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.926e-05/0.3027, allocations: 4.375 kB / 433.7 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003725/0.3031, allocations: 123.8 kB / 433.8 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.3031, allocations: 3.938 kB / 433.9 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.3031, allocations: 4 kB / 433.9 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.3031, allocations: 0 / 433.9 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.358e-05/0.3032, allocations: 23.92 kB / 433.9 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001464/0.3034, allocations: 117.2 kB / 434 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003037/0.3037, allocations: 54.69 kB / 434 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.146e-05/0.3037, allocations: 20.84 kB / 434.1 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.128e-05/0.3037, allocations: 0 / 434.1 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.3038, allocations: 34.56 kB / 434.1 MB, free: 4.066 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.132e-06/0.3038, allocations: 0 / 434.1 MB, free: 4.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002574/0.304, allocations: 77.56 kB / 434.2 MB, free: 3.984 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.32e-05/0.3041, allocations: 55.41 kB / 434.2 MB, free: 3.918 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.3042, allocations: 109.8 kB / 434.3 MB, free: 3.801 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.3042, allocations: 25.7 kB / 434.4 MB, free: 3.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.122e-05/0.3043, allocations: 88.14 kB / 434.4 MB, free: 3.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.142e-05/0.3043, allocations: 11.89 kB / 434.5 MB, free: 3.668 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.752e-05/0.3043, allocations: 21.7 kB / 434.5 MB, free: 3.641 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.3045, allocations: 314.8 kB / 434.8 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.536e-05/0.3045, allocations: 8 kB / 434.8 MB, free: 3.316 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.187e-05/0.3046, allocations: 44.22 kB / 434.8 MB, free: 3.258 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.945e-05/0.3047, allocations: 48.17 kB / 434.9 MB, free: 3.195 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3047, allocations: 4 kB / 434.9 MB, free: 3.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000119/0.3048, allocations: 73.58 kB / 435 MB, free: 3.113 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.3048, allocations: 8 kB / 435 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3048, allocations: 0 / 435 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/0.3048, allocations: 7.938 kB / 435 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.586e-05/0.3049, allocations: 12.36 kB / 435 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.543e-06/0.3049, allocations: 0 / 435 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.768e-05/0.3049, allocations: 0 / 435 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.3049, allocations: 12.16 kB / 435 MB, free: 3.074 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.0001104/0.305, allocations: 117.4 kB / 435.1 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.3052, allocations: 65.62 kB / 435.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.735e-05/0.3052, allocations: 8 kB / 435.2 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3052, allocations: 4 kB / 435.2 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3052, allocations: 0 / 435.2 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3052, allocations: 0 / 435.2 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001059/0.3053, allocations: 105.3 kB / 435.3 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3053, allocations: 0 / 435.3 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.812e-06/0.3053, allocations: 0 / 435.3 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3053, allocations: 4 kB / 435.3 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.3053, allocations: 7.984 kB / 435.3 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.3053, allocations: 3.938 kB / 435.3 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3053, allocations: 0 / 435.3 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000148/0.3055, allocations: 85.17 kB / 435.4 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.602e-05/0.3055, allocations: 12.03 kB / 435.4 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.073e-05/0.3055, allocations: 0 / 435.4 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.342e-05/0.3056, allocations: 11.88 kB / 435.4 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.789e-06/0.3056, allocations: 3.984 kB / 435.4 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.896e-06/0.3056, allocations: 4 kB / 435.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.826e-05/0.3056, allocations: 83.28 kB / 435.5 MB, free: 2.504 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3056, allocations: 4 kB / 435.5 MB, free: 2.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002106/0.3059, allocations: 12 kB / 435.5 MB, free: 2.488 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.0001062/0.306, allocations: 99.38 kB / 435.6 MB, free: 2.383 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001267/0.3061, allocations: 39.86 kB / 435.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3061, allocations: 0 / 435.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.41e-07/0.3061, allocations: 0 / 435.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007787/0.3069, allocations: 0.7222 MB / 436.4 MB, free: 1.598 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003717/0.3072, allocations: 129.6 kB / 436.5 MB, free: 1.445 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.341e-05/0.3073, allocations: 67.34 kB / 436.6 MB, free: 1.359 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.366e-05/0.3073, allocations: 3.984 kB / 436.6 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.938e-05/0.3074, allocations: 11.44 kB / 436.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3074, allocations: 0 / 436.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of Templates: time 0.003529/0.3109, allocations: 0.789 MB / 437.4 MB, free: 0.5781 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 -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/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_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: 4.577014117967337]