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.001939/0.001939, allocations: 92.62 kB / 20.96 MB, free: 3.473 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.002346/0.002346, allocations: 149.4 kB / 24.26 MB, free: 184 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.464/1.464, allocations: 173.4 MB / 200.8 MB, free: 9.297 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 2.044e-06/2.044e-06, allocations: 0 / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.837e-05/3.042e-05, allocations: 2.312 kB / 267.3 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00286/0.00289, allocations: 1.44 MB / 268.8 MB, free: 5.266 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002093/0.0031, allocations: 43.83 kB / 268.8 MB, free: 5.223 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.471e-05/0.003164, allocations: 0 / 268.8 MB, free: 5.223 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.016e-05/0.003205, allocations: 3.938 kB / 268.8 MB, free: 5.219 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.964e-05/0.003264, allocations: 3.938 kB / 268.8 MB, free: 5.215 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002504/0.003515, allocations: 31.91 kB / 268.8 MB, free: 5.184 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000121/0.003636, allocations: 43.89 kB / 268.9 MB, free: 5.141 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.124e-05/0.003727, allocations: 15.94 kB / 268.9 MB, free: 5.125 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.593e-05/0.003813, allocations: 19.92 kB / 268.9 MB, free: 5.105 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.99e-05/0.003853, allocations: 19.97 kB / 268.9 MB, free: 5.086 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.091e-05/0.003874, allocations: 4 kB / 268.9 MB, free: 5.082 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.194e-05/0.003886, allocations: 4 kB / 268.9 MB, free: 5.078 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.324e-05/0.003909, allocations: 11.92 kB / 269 MB, free: 5.066 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.886e-05/0.003948, allocations: 8 kB / 269 MB, free: 5.059 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.004064, allocations: 43.86 kB / 269 MB, free: 5.016 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.983e-06/0.004066, allocations: 0 / 269 MB, free: 5.016 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.004067, allocations: 4 kB / 269 MB, free: 5.012 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.967e-06/0.004071, allocations: 0 / 269 MB, free: 5.012 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.0005009/0.004572, allocations: 274.2 kB / 269.3 MB, free: 4.711 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.004611, allocations: 12.03 kB / 269.3 MB, free: 4.699 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.153e-05/0.004672, allocations: 12.94 kB / 269.3 MB, free: 4.688 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002337/0.004906, allocations: 125.7 kB / 269.4 MB, free: 4.539 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.0001022/0.005008, allocations: 38.19 kB / 269.5 MB, free: 4.496 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.315e-05/0.005021, allocations: 4.375 kB / 269.5 MB, free: 4.492 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000332/0.005353, allocations: 123.9 kB / 269.6 MB, free: 4.359 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.005361, allocations: 192 / 269.6 MB, free: 4.359 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.005376, allocations: 16.3 kB / 269.6 MB, free: 4.344 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.005382, allocations: 4.125 kB / 269.6 MB, free: 4.34 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.686e-05/0.005449, allocations: 15.94 kB / 269.6 MB, free: 4.324 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001482/0.005597, allocations: 105.3 kB / 269.7 MB, free: 4.191 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001841/0.005781, allocations: 54.69 kB / 269.8 MB, free: 4.129 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.815e-05/0.00586, allocations: 24.84 kB / 269.8 MB, free: 4.102 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.134e-05/0.005871, allocations: 0 / 269.8 MB, free: 4.102 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/0.005898, allocations: 34.56 kB / 269.8 MB, free: 4.059 MB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 8.61e-07/0.005899, allocations: 0 / 269.8 MB, free: 4.059 MB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002477/0.006147, allocations: 81.58 kB / 269.9 MB, free: 3.973 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.426e-05/0.006231, allocations: 59.41 kB / 270 MB, free: 3.902 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001143/0.006345, allocations: 109.8 kB / 270.1 MB, free: 3.785 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.006368, allocations: 25.7 kB / 270.1 MB, free: 3.754 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.511e-05/0.006443, allocations: 88.14 kB / 270.2 MB, free: 3.664 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.997e-05/0.006463, allocations: 7.938 kB / 270.2 MB, free: 3.656 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-05/0.006497, allocations: 13.72 kB / 270.2 MB, free: 3.637 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.00668, allocations: 314.8 kB / 270.5 MB, free: 3.32 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.555e-05/0.006696, allocations: 4 kB / 270.5 MB, free: 3.316 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.425e-05/0.00673, allocations: 25.7 kB / 270.5 MB, free: 3.285 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.666e-05/0.006777, allocations: 25.66 kB / 270.6 MB, free: 3.254 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.006779, allocations: 0 / 270.6 MB, free: 3.254 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.566e-05/0.006864, allocations: 53.62 kB / 270.6 MB, free: 3.195 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.00688, allocations: 4 kB / 270.6 MB, free: 3.191 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.006884, allocations: 0 / 270.6 MB, free: 3.191 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.006898, allocations: 4 kB / 270.6 MB, free: 3.188 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.451e-05/0.006943, allocations: 4 kB / 270.6 MB, free: 3.184 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.00695, allocations: 8 kB / 270.6 MB, free: 3.176 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.592e-05/0.006966, allocations: 448 / 270.6 MB, free: 3.176 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.808e-06/0.00697, allocations: 0 / 270.6 MB, free: 3.176 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.0001071/0.007077, allocations: 118 kB / 270.8 MB, free: 3.051 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/0.007208, allocations: 77.52 kB / 270.8 MB, free: 2.969 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.475e-05/0.007233, allocations: 12.12 kB / 270.8 MB, free: 2.953 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.007234, allocations: 0 / 270.8 MB, free: 2.953 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.007238, allocations: 0 / 270.8 MB, free: 2.953 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.007245, allocations: 7.922 kB / 270.9 MB, free: 2.945 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000121/0.007366, allocations: 97.33 kB / 271 MB, free: 2.82 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.007367, allocations: 4 kB / 271 MB, free: 2.816 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.134e-05/0.007379, allocations: 4 kB / 271 MB, free: 2.812 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.854e-06/0.007387, allocations: 3.984 kB / 271 MB, free: 2.809 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.007398, allocations: 4 kB / 271 MB, free: 2.805 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.007399, allocations: 0 / 271 MB, free: 2.805 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.007399, allocations: 0 / 271 MB, free: 2.805 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001641/0.007564, allocations: 89.06 kB / 271.1 MB, free: 2.699 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.833e-05/0.007582, allocations: 7.953 kB / 271.1 MB, free: 2.691 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.007601, allocations: 4 kB / 271.1 MB, free: 2.688 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.106e-05/0.007652, allocations: 11.92 kB / 271.1 MB, free: 2.676 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.314e-06/0.007655, allocations: 0 / 271.1 MB, free: 2.676 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-06/0.007661, allocations: 4 kB / 271.1 MB, free: 2.672 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.936e-05/0.00772, allocations: 87.28 kB / 271.2 MB, free: 2.586 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.00772, allocations: 0 / 271.2 MB, free: 2.586 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001944/0.007915, allocations: 7.938 kB / 271.2 MB, free: 2.578 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.000129/0.008044, allocations: 99.23 kB / 271.3 MB, free: 2.473 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001163/0.00816, allocations: 24 kB / 271.3 MB, free: 2.449 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.008161, allocations: 0 / 271.3 MB, free: 2.449 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.11e-07/0.008162, allocations: 0 / 271.3 MB, free: 2.449 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00115/0.009312, allocations: 0.7282 MB / 272 MB, free: 1.695 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003286/0.00964, allocations: 138.3 kB / 272.2 MB, free: 1.535 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.758e-05/0.009708, allocations: 63.34 kB / 272.2 MB, free: 1.453 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.971e-05/0.009737, allocations: 8.234 kB / 272.2 MB, free: 1.445 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.091e-05/0.009768, allocations: 8.5 kB / 272.2 MB, free: 1.434 MB / 250.7 MB Notification: Performance of SimCode: time 3.71e-07/0.009769, allocations: 0 / 272.2 MB, free: 1.434 MB / 250.7 MB Notification: Performance of Templates: time 0.003328/0.0131, allocations: 0.7631 MB / 273 MB, free: 0.6875 MB / 250.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] 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.157791422097944]