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.001993/0.001993, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002024/0.002024, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.674/1.674, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001643/0.001643, allocations: 51.92 kB / 373.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1159, allocations: 53.33 MB / 426.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002718/0.1186, allocations: 1.435 MB / 428.2 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002075/0.1188, allocations: 43.84 kB / 428.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.786e-05/0.1189, allocations: 4 kB / 428.3 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.66e-05/0.1189, allocations: 11.88 kB / 428.3 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.075e-05/0.1189, allocations: 7.922 kB / 428.3 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002359/0.1192, allocations: 23.97 kB / 428.3 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001009/0.1193, allocations: 39.91 kB / 428.4 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.1194, allocations: 8 kB / 428.4 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.247e-05/0.1194, allocations: 19.92 kB / 428.4 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.956e-05/0.1195, allocations: 15.92 kB / 428.4 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.882e-05/0.1195, allocations: 4 kB / 428.4 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.085e-05/0.1195, allocations: 4 kB / 428.4 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.771e-05/0.1195, allocations: 7.984 kB / 428.4 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.781e-05/0.1196, allocations: 23.86 kB / 428.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001064/0.1197, allocations: 43.81 kB / 428.5 MB, free: 2.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1197, allocations: 0 / 428.5 MB, free: 2.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1197, allocations: 0 / 428.5 MB, free: 2.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1197, allocations: 0 / 428.5 MB, free: 2.582 MB / 350.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.0005279/0.1202, allocations: 351.3 kB / 428.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.1203, allocations: 8.031 kB / 428.8 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.09e-05/0.1203, allocations: 8.891 kB / 428.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002161/0.1205, allocations: 192.2 kB / 429 MB, free: 1.945 MB / 350.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 9.479e-05/0.1206, allocations: 38.25 kB / 429.1 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.955e-05/0.1206, allocations: 8.375 kB / 429.1 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003099/0.1209, allocations: 123.8 kB / 429.2 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.121, allocations: 3.938 kB / 429.2 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.121, allocations: 0 / 429.2 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.121, allocations: 0 / 429.2 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.601e-05/0.121, allocations: 19.98 kB / 429.2 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001882/0.1212, allocations: 169.6 kB / 429.4 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002399/0.1215, allocations: 139.7 kB / 429.5 MB, free: 1.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.892e-05/0.1215, allocations: 20.84 kB / 429.5 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.573e-06/0.1215, allocations: 0 / 429.5 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.1216, allocations: 34.56 kB / 429.6 MB, free: 1.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.153e-06/0.1216, allocations: 4 kB / 429.6 MB, free: 1.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002339/0.1218, allocations: 73.62 kB / 429.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.979e-05/0.1219, allocations: 59.39 kB / 429.7 MB, free: 1.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.173e-05/0.1219, allocations: 109.8 kB / 429.8 MB, free: 1.023 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.122, allocations: 25.7 kB / 429.8 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.847e-05/0.122, allocations: 84.12 kB / 429.9 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.122, allocations: 11.95 kB / 429.9 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.853e-05/0.1221, allocations: 17.72 kB / 430 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1222, allocations: 318.8 kB / 430.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.301e-05/0.1222, allocations: 12 kB / 430.3 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.483e-05/0.1223, allocations: 36.23 kB / 430.3 MB, free: 500 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.78e-05/0.1224, allocations: 52.22 kB / 430.4 MB, free: 432 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1224, allocations: 0 / 430.4 MB, free: 432 kB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001127/0.1225, allocations: 77.52 kB / 430.4 MB, free: 348 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1225, allocations: 13.97 kB / 430.5 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.1225, allocations: 0 / 430.5 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.1225, allocations: 4 kB / 430.5 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.384e-05/0.1226, allocations: 8.156 kB / 430.5 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.1226, allocations: 0 / 430.5 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.792e-05/0.1226, allocations: 4 kB / 430.5 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.787e-06/0.1226, allocations: 0 / 430.5 MB, free: 320 kB / 350.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.0001026/0.1227, allocations: 122.2 kB / 430.6 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.1228, allocations: 69.62 kB / 430.7 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.771e-05/0.1228, allocations: 3.969 kB / 430.7 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1228, allocations: 4 kB / 430.7 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.1228, allocations: 0 / 430.7 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.1228, allocations: 4 kB / 430.7 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/0.123, allocations: 157.7 kB / 430.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.123, allocations: 3.938 kB / 430.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.252e-06/0.123, allocations: 0 / 430.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.123, allocations: 3.938 kB / 430.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.123, allocations: 8 kB / 430.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.123, allocations: 0 / 430.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.123, allocations: 0 / 430.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001557/0.1232, allocations: 97 kB / 430.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.062e-05/0.1232, allocations: 81.11 kB / 431 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.1232, allocations: 3.938 kB / 431 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.807e-05/0.1233, allocations: 8 kB / 431 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.575e-06/0.1233, allocations: 0 / 431 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.1233, allocations: 3.984 kB / 431 MB, free: 15.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.051e-05/0.1234, allocations: 87.28 kB / 431.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1234, allocations: 0 / 431.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001944/0.1236, allocations: 7.938 kB / 431.1 MB, free: 15.55 MB / 366.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.0001192/0.1237, allocations: 105.8 kB / 431.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001307/0.1238, allocations: 31.92 kB / 431.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.1238, allocations: 4 kB / 431.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 7.91e-07/0.1238, allocations: 0 / 431.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007887/0.1246, allocations: 0.7182 MB / 432 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003383/0.1249, allocations: 141.8 kB / 432.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.1253, allocations: 0.6807 MB / 432.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.536e-05/0.1253, allocations: 4 kB / 432.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.474e-05/0.1253, allocations: 11.42 kB / 432.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1253, allocations: 7.938 kB / 432.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of Templates: time 0.003256/0.1286, allocations: 0.6861 MB / 433.5 MB, free: 13.09 MB / 366.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.947166435420513]