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.0009381/0.0009381, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001055/0.001055, allocations: 168.7 kB / 24.91 MB, free: 9.18 MB / 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 0.9825/0.9825, allocations: 177.1 MB / 205.3 MB, free: 5.461 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 1.523e-06/1.523e-06, allocations: 0 / 273.5 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.294e-05/2.447e-05, allocations: 2.312 kB / 273.5 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002797/0.002821, allocations: 1.537 MB / 275 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002192/0.00304, allocations: 39.83 kB / 275.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.639e-05/0.003107, allocations: 4 kB / 275.1 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.044e-05/0.003137, allocations: 3.938 kB / 275.1 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.29e-05/0.0032, allocations: 7.938 kB / 275.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002257/0.003426, allocations: 27.97 kB / 275.1 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.276e-05/0.003519, allocations: 39.84 kB / 275.1 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.871e-05/0.003597, allocations: 11.98 kB / 275.1 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.301e-05/0.00368, allocations: 23.92 kB / 275.2 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.45e-05/0.003715, allocations: 11.97 kB / 275.2 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.003734, allocations: 4 kB / 275.2 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.899e-06/0.003744, allocations: 4 kB / 275.2 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.639e-05/0.00377, allocations: 15.92 kB / 275.2 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.131e-05/0.003792, allocations: 8 kB / 275.2 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 9.217e-05/0.003884, allocations: 39.83 kB / 275.3 MB, free: 15.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.003886, allocations: 0 / 275.3 MB, free: 15.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.003887, allocations: 0 / 275.3 MB, free: 15.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.003891, allocations: 0 / 275.3 MB, free: 15.46 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.0003097/0.0042, allocations: 249 kB / 275.5 MB, free: 15.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.004235, allocations: 12.03 kB / 275.5 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.358e-05/0.004269, allocations: 8.938 kB / 275.5 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.004412, allocations: 125.6 kB / 275.6 MB, free: 15.02 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 6.922e-05/0.004482, allocations: 38.25 kB / 275.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.845e-06/0.004489, allocations: 4.375 kB / 275.7 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.004679, allocations: 128.5 kB / 275.8 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.00469, allocations: 8.109 kB / 275.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.004698, allocations: 4.375 kB / 275.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.004704, allocations: 4.125 kB / 275.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.011e-05/0.004734, allocations: 11.94 kB / 275.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.147e-05/0.004806, allocations: 57.03 kB / 275.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001188/0.004925, allocations: 50.55 kB / 275.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.822e-05/0.004953, allocations: 20.84 kB / 276 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.73e-06/0.004959, allocations: 0 / 276 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.004984, allocations: 34.56 kB / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 1.012e-06/0.004985, allocations: 0 / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001239/0.005109, allocations: 61.61 kB / 276.1 MB, free: 14.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/0.005156, allocations: 55.41 kB / 276.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.129e-05/0.005218, allocations: 114.7 kB / 276.2 MB, free: 14.35 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.018e-05/0.005228, allocations: 25.7 kB / 276.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.545e-05/0.005253, allocations: 84.14 kB / 276.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.145e-05/0.005265, allocations: 3.953 kB / 276.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.011e-05/0.005295, allocations: 21.7 kB / 276.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.515e-05/0.00538, allocations: 322.8 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.943e-06/0.005387, allocations: 4 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.711e-05/0.005404, allocations: 13.72 kB / 276.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.745e-05/0.005431, allocations: 17.66 kB / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.005433, allocations: 0 / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.376e-05/0.005497, allocations: 45.62 kB / 276.7 MB, free: 13.78 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.005511, allocations: 8 kB / 276.8 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.005516, allocations: 0 / 276.8 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.005529, allocations: 8.047 kB / 276.8 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.2e-05/0.005561, allocations: 4 kB / 276.8 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.765e-06/0.005563, allocations: 0 / 276.8 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.665e-05/0.00558, allocations: 4.438 kB / 276.8 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.449e-06/0.005584, allocations: 3.938 kB / 276.8 MB, free: 13.75 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 0.0001614/0.005746, allocations: 125.8 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.783e-05/0.005804, allocations: 45.69 kB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.682e-05/0.00583, allocations: 12.11 kB / 277 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.005833, allocations: 0 / 277 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.005834, allocations: 3.938 kB / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.005837, allocations: 4 kB / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.964e-05/0.005887, allocations: 65.84 kB / 277 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.005892, allocations: 4 kB / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.173e-06/0.0059, allocations: 3.984 kB / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.005901, allocations: 0 / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-06/0.005907, allocations: 0 / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.005908, allocations: 0 / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.005909, allocations: 0 / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.346e-05/0.005952, allocations: 57.08 kB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.045e-06/0.00596, allocations: 7.953 kB / 277.1 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.005977, allocations: 4.172 kB / 277.1 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.469e-05/0.006012, allocations: 8 kB / 277.1 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.087e-06/0.006016, allocations: 3.984 kB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.006023, allocations: 4 kB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.597e-05/0.006038, allocations: 12.86 kB / 277.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006039, allocations: 0 / 277.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001455/0.006184, allocations: 4 kB / 277.1 MB, free: 13.34 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 8.37e-05/0.006268, allocations: 90.88 kB / 277.2 MB, free: 13.24 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.407e-05/0.006332, allocations: 20.86 kB / 277.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.006334, allocations: 0 / 277.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.61e-07/0.006335, allocations: 4.125 kB / 277.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004201/0.006755, allocations: 0.7084 MB / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002236/0.006979, allocations: 130.5 kB / 278.1 MB, free: 12.33 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.066e-05/0.007009, allocations: 59.34 kB / 278.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.559e-05/0.007025, allocations: 7.938 kB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.816e-05/0.007073, allocations: 55.36 kB / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of SimCode: time 7.11e-07/0.007074, allocations: 0 / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of Templates: time 0.002374/0.009447, allocations: 0.8039 MB / 279 MB, free: 11.4 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 -s gbode -gbm=radauIIA3 -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: 2.5998704936355352]