Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001033/0.001033, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00167/0.002703, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001026/0.001026, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001432/0.002458, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9768/0.9768, allocations: 177.5 MB / 190 MB, free: 4.789 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1194/1.096, allocations: 53.88 MB / 243.9 MB, free: 14.83 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="mat",numberOfIntervals=150000,variableFilter="time|signalExtrema1.y_min|signalExtrema1.y_max|signalExtrema1.t_min|signalExtrema1.t_max|signalExtrema2.y_min|signalExtrema2.y_max|signalExtrema2.t_min|signalExtrema2.t_max",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="mat",numberOfIntervals=150000,variableFilter="time|signalExtrema1.y_min|signalExtrema1.y_max|signalExtrema1.t_min|signalExtrema1.t_max|signalExtrema2.y_min|signalExtrema2.y_max|signalExtrema2.t_min|signalExtrema2.t_max",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.144e-05/2.301e-05, allocations: 2.312 kB / 245.2 MB, free: 13.54 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003126/0.003149, allocations: 1.794 MB / 247 MB, free: 11.74 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.004162, allocations: 0.6666 MB / 247.7 MB, free: 11.07 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.518e-05/0.004237, allocations: 3.938 kB / 247.7 MB, free: 11.06 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.969e-05/0.004306, allocations: 7.875 kB / 247.7 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.834e-05/0.004355, allocations: 23.78 kB / 247.7 MB, free: 11.03 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.004567, allocations: 95.58 kB / 247.8 MB, free: 10.94 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001988/0.004766, allocations: 147.5 kB / 247.9 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.004873, allocations: 26.27 kB / 248 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002102/0.005084, allocations: 107.7 kB / 248.1 MB, free: 10.66 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001035/0.005187, allocations: 55.84 kB / 248.1 MB, free: 10.61 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.969e-05/0.005217, allocations: 12 kB / 248.1 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.152e-05/0.005298, allocations: 19.94 kB / 248.2 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.822e-05/0.005337, allocations: 27.92 kB / 248.2 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.774e-05/0.005384, allocations: 31.94 kB / 248.2 MB, free: 10.52 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001802/0.005565, allocations: 99.61 kB / 248.3 MB, free: 10.42 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.081e-05/0.005575, allocations: 4 kB / 248.3 MB, free: 10.41 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.005576, allocations: 0 / 248.3 MB, free: 10.41 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.005586, allocations: 0 / 248.3 MB, free: 10.41 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006006/0.006187, allocations: 415.4 kB / 248.7 MB, free: 9.973 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.006229, allocations: 12.62 kB / 248.7 MB, free: 9.961 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002237/0.006453, allocations: 106 kB / 248.8 MB, free: 9.84 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.006651, allocations: 146.1 kB / 249 MB, free: 9.672 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.006679, allocations: 12.38 kB / 249 MB, free: 9.66 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.487e-05/0.006714, allocations: 8.375 kB / 249 MB, free: 9.652 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000219/0.006933, allocations: 126 kB / 249.1 MB, free: 9.523 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.006942, allocations: 3.938 kB / 249.1 MB, free: 9.52 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.00696, allocations: 4 kB / 249.1 MB, free: 9.516 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.006969, allocations: 7.984 kB / 249.1 MB, free: 9.508 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.851e-05/0.007028, allocations: 19.98 kB / 249.2 MB, free: 9.488 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004277/0.007456, allocations: 240 kB / 249.4 MB, free: 9.238 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001574/0.007613, allocations: 78.48 kB / 249.5 MB, free: 9.152 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.809e-05/0.007661, allocations: 20.84 kB / 249.5 MB, free: 9.129 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.007675, allocations: 4 kB / 249.5 MB, free: 9.125 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001695/0.007845, allocations: 115.2 kB / 249.6 MB, free: 9 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.804e-06/0.007847, allocations: 0 / 249.6 MB, free: 9 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002385/0.008085, allocations: 105.6 kB / 249.7 MB, free: 8.891 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/0.008129, allocations: 63.33 kB / 249.8 MB, free: 8.816 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.477e-05/0.008224, allocations: 146 kB / 249.9 MB, free: 8.664 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.008244, allocations: 29.7 kB / 249.9 MB, free: 8.629 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.898e-05/0.008293, allocations: 108.6 kB / 250.1 MB, free: 8.52 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.402e-05/0.008337, allocations: 39.67 kB / 250.1 MB, free: 8.48 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.924e-05/0.008396, allocations: 45.67 kB / 250.1 MB, free: 8.43 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.557e-05/0.008492, allocations: 330.7 kB / 250.5 MB, free: 8.098 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.632e-05/0.008528, allocations: 15.98 kB / 250.5 MB, free: 8.082 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.109e-05/0.008609, allocations: 85.2 kB / 250.6 MB, free: 7.969 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001386/0.008748, allocations: 128.3 kB / 250.7 MB, free: 7.812 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.008752, allocations: 0 / 250.7 MB, free: 7.812 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001861/0.008938, allocations: 129.4 kB / 250.8 MB, free: 7.68 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.008952, allocations: 8 kB / 250.8 MB, free: 7.672 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.008959, allocations: 8.281 kB / 250.8 MB, free: 7.664 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.008974, allocations: 0 / 250.8 MB, free: 7.664 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/0.009147, allocations: 55.91 kB / 250.9 MB, free: 7.609 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.009153, allocations: 3.984 kB / 250.9 MB, free: 7.605 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.746e-05/0.009221, allocations: 19.89 kB / 250.9 MB, free: 7.586 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.009233, allocations: 4 kB / 250.9 MB, free: 7.582 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 (signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,$whenCondition2,$whenCondition1,signalExtrema2.y_max,$PRE.signalExtrema2.y_max,signalExtrema2.y_min,$PRE.signalExtrema2.y_min,signalExtrema1.y_max,$PRE.signalExtrema1.y_max,signalExtrema1.y_min,$PRE.signalExtrema1.y_min) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.504e-05/0.009328, allocations: 135.7 kB / 251 MB, free: 7.441 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.461e-05/0.009373, allocations: 15.98 kB / 251.1 MB, free: 7.426 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001455/0.009518, allocations: 97.31 kB / 251.2 MB, free: 7.324 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.009521, allocations: 4 kB / 251.2 MB, free: 7.32 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.009523, allocations: 4 kB / 251.2 MB, free: 7.316 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.009528, allocations: 3.984 kB / 251.2 MB, free: 7.312 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002271/0.009755, allocations: 270.6 kB / 251.4 MB, free: 7.023 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.009757, allocations: 3.938 kB / 251.4 MB, free: 7.02 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.962e-05/0.009826, allocations: 15.98 kB / 251.4 MB, free: 7.004 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.146e-05/0.009838, allocations: 15.84 kB / 251.5 MB, free: 6.988 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.009841, allocations: 7.984 kB / 251.5 MB, free: 6.98 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.009851, allocations: 3.938 kB / 251.5 MB, free: 6.977 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.009853, allocations: 0 / 251.5 MB, free: 6.977 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.009854, allocations: 0 / 251.5 MB, free: 6.977 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001779/0.01003, allocations: 235.4 kB / 251.7 MB, free: 6.73 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.287e-05/0.01005, allocations: 12 kB / 251.7 MB, free: 6.719 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.619e-05/0.01012, allocations: 19.97 kB / 251.7 MB, free: 6.699 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.933e-05/0.01015, allocations: 11.98 kB / 251.7 MB, free: 6.688 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.01016, allocations: 3.984 kB / 251.8 MB, free: 6.684 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.592e-05/0.01018, allocations: 36.77 kB / 251.8 MB, free: 6.645 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01018, allocations: 0 / 251.8 MB, free: 6.645 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001432/0.01033, allocations: 31.94 kB / 251.8 MB, free: 6.613 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (sine.phi) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_min,signalExtrema1.t_max,signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_min,signalExtrema2.t_max) * Number of discrete states: 8 (signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.t_min,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.t_min) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * 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.154e-05/0.01042, allocations: 93.84 kB / 251.9 MB, free: 6.516 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001219/0.01054, allocations: 88.73 kB / 252 MB, free: 6.426 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.01055, allocations: 0 / 252 MB, free: 6.426 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.209e-05/0.01061, allocations: 56.55 kB / 252.1 MB, free: 6.371 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001365/0.01074, allocations: 27.98 kB / 252.1 MB, free: 6.344 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000994/0.01174, allocations: 266 kB / 252.3 MB, free: 6.055 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.939e-05/0.01178, allocations: 75.86 kB / 252.4 MB, free: 5.961 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.113e-05/0.01181, allocations: 9.141 kB / 252.4 MB, free: 5.953 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.275e-05/0.01186, allocations: 67.36 kB / 252.5 MB, free: 5.887 MB / 250.7 MB Notification: Performance of SimCode: time 6.42e-07/0.01186, allocations: 0 / 252.5 MB, free: 5.887 MB / 250.7 MB Notification: Performance of Templates: time 0.002956/0.01482, allocations: 1.292 MB / 253.8 MB, free: 4.621 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/DemonstrateSignalExtrema/DemonstrateSignalExtrema.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: 3.1911804294213653]