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.0009268/0.0009268, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.0009655/0.0009655, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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.085/1.085, allocations: 177.1 MB / 205 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] 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 2.284e-06/2.284e-06, allocations: 0 / 273 MB, free: 1.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.941e-05/4.17e-05, allocations: 2.312 kB / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00376/0.003801, allocations: 1.494 MB / 274.5 MB, free: 56 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003251/0.004126, allocations: 43.78 kB / 274.5 MB, free: 12 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.163e-05/0.004218, allocations: 4 kB / 274.5 MB, free: 8 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.438e-05/0.004262, allocations: 3.938 kB / 274.5 MB, free: 4 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.152e-05/0.004354, allocations: 0 / 274.5 MB, free: 4 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003962/0.00475, allocations: 23.97 kB / 274.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001262/0.004876, allocations: 47.83 kB / 274.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.005004, allocations: 7.938 kB / 274.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.005104, allocations: 23.98 kB / 274.6 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.497e-05/0.005149, allocations: 19.91 kB / 274.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.603e-05/0.005175, allocations: 4 kB / 274.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.489e-05/0.00519, allocations: 4 kB / 274.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.966e-05/0.00522, allocations: 11.98 kB / 274.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.755e-05/0.005257, allocations: 11.94 kB / 274.7 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.0054, allocations: 31.89 kB / 274.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.005405, allocations: 0 / 274.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.005406, allocations: 0 / 274.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.005412, allocations: 0 / 274.7 MB, free: 15.82 MB / 266.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.0007201/0.006133, allocations: 372.6 kB / 275.1 MB, free: 15.42 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.917e-05/0.006192, allocations: 16.03 kB / 275.1 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.975e-05/0.006251, allocations: 8.891 kB / 275.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002184/0.00647, allocations: 124.5 kB / 275.2 MB, free: 15.25 MB / 266.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.0001301/0.0066, allocations: 42.17 kB / 275.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.865e-05/0.006629, allocations: 8.375 kB / 275.3 MB, free: 15.19 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003691/0.006998, allocations: 130.2 kB / 275.4 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.007009, allocations: 192 / 275.4 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.007025, allocations: 4.375 kB / 275.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.755e-05/0.007043, allocations: 8.125 kB / 275.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.316e-05/0.007106, allocations: 15.92 kB / 275.4 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001534/0.007259, allocations: 120.6 kB / 275.5 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002363/0.007496, allocations: 63.16 kB / 275.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.107e-05/0.007547, allocations: 15.69 kB / 275.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-06/0.007556, allocations: 0 / 275.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.007591, allocations: 37.39 kB / 275.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 1.012e-06/0.007592, allocations: 0 / 275.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002428/0.007835, allocations: 77.61 kB / 275.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/0.007905, allocations: 59.41 kB / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.008014, allocations: 169.9 kB / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.008031, allocations: 25.7 kB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.468e-05/0.008085, allocations: 130.9 kB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.008107, allocations: 11.89 kB / 276.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-05/0.008149, allocations: 23.38 kB / 276.1 MB, free: 14.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.008311, allocations: 496.1 kB / 276.6 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.728e-05/0.008329, allocations: 4 kB / 276.6 MB, free: 13.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.679e-05/0.008356, allocations: 23.38 kB / 276.6 MB, free: 13.65 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.15e-05/0.008397, allocations: 31.3 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.0084, allocations: 0 / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.153e-05/0.008492, allocations: 49.64 kB / 276.7 MB, free: 13.56 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.008509, allocations: 4 kB / 276.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.008517, allocations: 4 kB / 276.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.008537, allocations: 0 / 276.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.833e-05/0.008595, allocations: 4 kB / 276.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.008608, allocations: 7.922 kB / 276.7 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.988e-05/0.008628, allocations: 4 kB / 276.7 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.529e-06/0.008632, allocations: 0 / 276.7 MB, free: 13.54 MB / 266.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 9.933e-05/0.008732, allocations: 164.6 kB / 276.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.953e-05/0.008831, allocations: 65.58 kB / 277 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.492e-05/0.008866, allocations: 8.125 kB / 277 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.008869, allocations: 4 kB / 277 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.008873, allocations: 0 / 277 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.00888, allocations: 3.938 kB / 277 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.172e-05/0.008961, allocations: 112.6 kB / 277.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.008963, allocations: 0 / 277.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.105e-06/0.008972, allocations: 0 / 277.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.008974, allocations: 0 / 277.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.008987, allocations: 12.44 kB / 277.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.008988, allocations: 0 / 277.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.00899, allocations: 0 / 277.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001429/0.009133, allocations: 108.3 kB / 277.2 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.404e-05/0.009147, allocations: 0 / 277.2 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.821e-05/0.009175, allocations: 8 kB / 277.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.231e-05/0.009227, allocations: 3.938 kB / 277.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.336e-06/0.00923, allocations: 3.938 kB / 277.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/0.00924, allocations: 4 kB / 277.2 MB, free: 12.97 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.479e-05/0.009295, allocations: 127.2 kB / 277.4 MB, free: 12.85 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009295, allocations: 0 / 277.4 MB, free: 12.85 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002291/0.009524, allocations: 15.94 kB / 277.4 MB, free: 12.83 MB / 266.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.0001434/0.009667, allocations: 95.25 kB / 277.5 MB, free: 12.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001356/0.009803, allocations: 31.67 kB / 277.5 MB, free: 12.69 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.009806, allocations: 0 / 277.5 MB, free: 12.69 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.01e-07/0.009807, allocations: 0 / 277.5 MB, free: 12.69 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007994/0.01061, allocations: 1.057 MB / 278.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003482/0.01095, allocations: 140 kB / 278.7 MB, free: 11.44 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.261e-05/0.011, allocations: 55.55 kB / 278.7 MB, free: 11.37 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.653e-05/0.01102, allocations: 15.97 kB / 278.8 MB, free: 11.35 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.047e-05/0.01105, allocations: 8.5 kB / 278.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of SimCode: time 7.82e-07/0.01105, allocations: 0 / 278.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of Templates: time 0.003295/0.01435, allocations: 0.7688 MB / 279.5 MB, free: 10.59 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.042026869021356]