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.001105/0.001105, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001524/0.002629, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.000995/0.000995, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001492/0.002487, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.9114/0.9114, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2216/1.133, allocations: 52.49 MB / 238.5 MB, free: 7.613 MB / 234.7 MB " [Timeout remaining time 179] 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.645e-06/2.645e-06, allocations: 0 / 239.7 MB, free: 6.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.168e-05/3.432e-05, allocations: 2.312 kB / 239.7 MB, free: 6.352 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003726/0.00376, allocations: 1.516 MB / 241.3 MB, free: 4.84 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001735/0.003934, allocations: 45.14 kB / 241.3 MB, free: 4.797 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.885e-05/0.004013, allocations: 3.938 kB / 241.3 MB, free: 4.793 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 2.869e-05/0.004041, allocations: 0 / 241.3 MB, free: 4.793 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 4.921e-05/0.004091, allocations: 12.91 kB / 241.3 MB, free: 4.781 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002287/0.004319, allocations: 23.97 kB / 241.3 MB, free: 4.758 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001362/0.004456, allocations: 39.91 kB / 241.4 MB, free: 4.719 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.004573, allocations: 14.95 kB / 241.4 MB, free: 4.707 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.004709, allocations: 27.92 kB / 241.4 MB, free: 4.68 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.173e-05/0.004761, allocations: 15.97 kB / 241.4 MB, free: 4.664 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.227e-05/0.004793, allocations: 4 kB / 241.4 MB, free: 4.66 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.496e-05/0.004808, allocations: 4 kB / 241.4 MB, free: 4.656 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.66e-05/0.004845, allocations: 7.938 kB / 241.5 MB, free: 4.648 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.054e-05/0.004875, allocations: 8 kB / 241.5 MB, free: 4.641 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002176/0.005093, allocations: 31.84 kB / 241.5 MB, free: 4.609 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.676e-05/0.005109, allocations: 0.8438 kB / 241.5 MB, free: 4.609 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.005111, allocations: 0 / 241.5 MB, free: 4.609 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.005124, allocations: 0 / 241.5 MB, free: 4.609 MB / 234.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.0004561/0.00558, allocations: 261.7 kB / 241.8 MB, free: 4.328 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.005618, allocations: 8.031 kB / 241.8 MB, free: 4.32 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.362e-05/0.005662, allocations: 12.94 kB / 241.8 MB, free: 4.309 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001748/0.005836, allocations: 114.8 kB / 241.9 MB, free: 4.172 MB / 234.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.0001058/0.005942, allocations: 34.25 kB / 241.9 MB, free: 4.133 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.555e-05/0.005958, allocations: 9.031 kB / 241.9 MB, free: 4.125 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001991/0.006157, allocations: 127.1 kB / 242.1 MB, free: 3.988 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.006165, allocations: 192 / 242.1 MB, free: 3.988 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.006173, allocations: 384 / 242.1 MB, free: 3.988 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.006183, allocations: 8.125 kB / 242.1 MB, free: 3.98 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.053e-05/0.006214, allocations: 11.98 kB / 242.1 MB, free: 3.969 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.694e-05/0.006291, allocations: 65.64 kB / 242.1 MB, free: 3.891 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001173/0.006408, allocations: 55.17 kB / 242.2 MB, free: 3.828 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.61e-05/0.006434, allocations: 20.84 kB / 242.2 MB, free: 3.805 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.402e-06/0.006441, allocations: 1.969 kB / 242.2 MB, free: 3.805 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.006464, allocations: 30.56 kB / 242.2 MB, free: 3.766 MB / 234.7 MB Notification: Performance of pre-optimization done (n=5): time 7.81e-07/0.006465, allocations: 4 kB / 242.2 MB, free: 3.762 MB / 234.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001252/0.00659, allocations: 57.61 kB / 242.3 MB, free: 3.699 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/0.006643, allocations: 59.41 kB / 242.4 MB, free: 3.629 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.229e-05/0.006705, allocations: 116.2 kB / 242.5 MB, free: 3.504 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.006717, allocations: 25.7 kB / 242.5 MB, free: 3.473 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.278e-05/0.00674, allocations: 84.14 kB / 242.6 MB, free: 3.387 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.385e-05/0.006754, allocations: 4 kB / 242.6 MB, free: 3.383 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.352e-05/0.006777, allocations: 18.33 kB / 242.6 MB, free: 3.359 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.144e-05/0.006859, allocations: 319.4 kB / 242.9 MB, free: 3.039 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.953e-06/0.006866, allocations: 4 kB / 242.9 MB, free: 3.035 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.641e-05/0.006882, allocations: 18.22 kB / 242.9 MB, free: 3.012 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.501e-05/0.006907, allocations: 19.31 kB / 243 MB, free: 2.988 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.00691, allocations: 0 / 243 MB, free: 2.988 MB / 234.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 4.23e-05/0.006952, allocations: 46.88 kB / 243 MB, free: 2.938 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.006965, allocations: 8 kB / 243 MB, free: 2.93 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.00697, allocations: 0 / 243 MB, free: 2.93 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.006984, allocations: 0.9688 kB / 243 MB, free: 2.93 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.178e-05/0.007026, allocations: 11.92 kB / 243 MB, free: 2.918 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.00703, allocations: 0 / 243 MB, free: 2.918 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.238e-05/0.007042, allocations: 4.953 kB / 243 MB, free: 2.914 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.007048, allocations: 7.938 kB / 243 MB, free: 2.906 MB / 234.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 6.276e-05/0.007111, allocations: 110.6 kB / 243.1 MB, free: 2.789 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.144e-05/0.007152, allocations: 53.69 kB / 243.2 MB, free: 2.73 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.503e-05/0.007177, allocations: 8.797 kB / 243.2 MB, free: 2.719 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.007179, allocations: 0 / 243.2 MB, free: 2.719 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-06/0.00718, allocations: 0.6875 kB / 243.2 MB, free: 2.719 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.007184, allocations: 0 / 243.2 MB, free: 2.719 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.898e-05/0.007233, allocations: 70.97 kB / 243.3 MB, free: 2.633 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-07/0.007233, allocations: 0 / 243.3 MB, free: 2.633 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.779e-06/0.007238, allocations: 10.5 kB / 243.3 MB, free: 2.625 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.107e-05/0.007249, allocations: 7.922 kB / 243.3 MB, free: 2.617 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.52e-07/0.00725, allocations: 3.938 kB / 243.3 MB, free: 2.613 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.93e-06/0.007255, allocations: 0 / 243.3 MB, free: 2.613 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.007255, allocations: 4 kB / 243.3 MB, free: 2.609 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.007256, allocations: 0 / 243.3 MB, free: 2.609 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.025e-05/0.007297, allocations: 54.05 kB / 243.4 MB, free: 2.539 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.007311, allocations: 4 kB / 243.4 MB, free: 2.535 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.058e-05/0.007341, allocations: 7.984 kB / 243.4 MB, free: 2.527 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.046e-06/0.007344, allocations: 0.5 kB / 243.4 MB, free: 2.527 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-06/0.007347, allocations: 0.8438 kB / 243.4 MB, free: 2.527 MB / 234.7 MB Notification: Performance of sorting global known variables: time 1.2e-05/0.007359, allocations: 8.859 kB / 243.4 MB, free: 2.516 MB / 234.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007359, allocations: 0 / 243.4 MB, free: 2.516 MB / 234.7 MB Notification: Performance of remove unused functions: time 9.258e-05/0.007452, allocations: 17.56 kB / 243.4 MB, free: 2.5 MB / 234.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 9.748e-05/0.00755, allocations: 80.59 kB / 243.5 MB, free: 2.414 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 7.325e-05/0.007623, allocations: 32.84 kB / 243.5 MB, free: 2.379 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.007626, allocations: 0 / 243.5 MB, free: 2.379 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-07/0.007626, allocations: 0 / 243.5 MB, free: 2.379 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004224/0.008049, allocations: 0.7991 MB / 244.3 MB, free: 1.535 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003831/0.008432, allocations: 131.8 kB / 244.4 MB, free: 1.383 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.478e-05/0.008467, allocations: 59.34 kB / 244.5 MB, free: 1.305 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 2.268e-05/0.008489, allocations: 0 / 244.5 MB, free: 1.305 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.685e-05/0.008546, allocations: 59.38 kB / 244.5 MB, free: 1.242 MB / 234.7 MB Notification: Performance of SimCode: time 8.62e-07/0.008547, allocations: 256 / 244.5 MB, free: 1.242 MB / 234.7 MB Notification: Performance of Templates: time 0.002356/0.0109, allocations: 0.8237 MB / 245.4 MB, free: 456 kB / 234.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.664469269104302]