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.0008223/0.0008223, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001052/0.001874, allocations: 449.7 kB / 10.37 MB, free: 324 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.0006963/0.0006963, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008239/0.00152, allocations: 463.6 kB / 11.72 MB, free: 2.453 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 1.019/1.019, allocations: 177.4 MB / 189.9 MB, free: 4.84 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0891/1.108, allocations: 53.86 MB / 243.7 MB, free: 14.92 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.423e-06/1.423e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.649e-06/1.107e-05, allocations: 2.312 kB / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.001841/0.001852, allocations: 1.794 MB / 246.8 MB, free: 11.85 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008271/0.002679, allocations: 0.6628 MB / 247.5 MB, free: 11.18 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.413e-05/0.002753, allocations: 3.938 kB / 247.5 MB, free: 11.18 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.079e-05/0.002824, allocations: 15.8 kB / 247.5 MB, free: 11.16 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.099e-05/0.002865, allocations: 27.73 kB / 247.5 MB, free: 11.13 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002032/0.003068, allocations: 87.7 kB / 247.6 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001725/0.00324, allocations: 147.5 kB / 247.7 MB, free: 10.9 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.003349, allocations: 22.27 kB / 247.8 MB, free: 10.88 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001972/0.003546, allocations: 119.6 kB / 247.9 MB, free: 10.76 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.35e-05/0.00363, allocations: 39.88 kB / 247.9 MB, free: 10.72 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.192e-05/0.003652, allocations: 16 kB / 247.9 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.017e-05/0.003722, allocations: 23.98 kB / 248 MB, free: 10.68 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.47e-05/0.003747, allocations: 23.94 kB / 248 MB, free: 10.66 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.524e-05/0.003782, allocations: 31.94 kB / 248 MB, free: 10.63 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000153/0.003935, allocations: 99.59 kB / 248.1 MB, free: 10.53 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.512e-05/0.00395, allocations: 0 / 248.1 MB, free: 10.53 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.003951, allocations: 4 kB / 248.1 MB, free: 10.53 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.414e-05/0.003965, allocations: 0 / 248.1 MB, free: 10.53 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.0005951/0.00456, allocations: 419.4 kB / 248.5 MB, free: 10.08 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.004601, allocations: 8.625 kB / 248.5 MB, free: 10.07 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001888/0.00479, allocations: 106 kB / 248.6 MB, free: 9.953 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001708/0.004961, allocations: 150.1 kB / 248.8 MB, free: 9.781 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.004981, allocations: 12.38 kB / 248.8 MB, free: 9.77 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.148e-05/0.005003, allocations: 12.38 kB / 248.8 MB, free: 9.758 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001513/0.005154, allocations: 118.8 kB / 248.9 MB, free: 9.633 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.005163, allocations: 7.938 kB / 248.9 MB, free: 9.625 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.005175, allocations: 3.984 kB / 248.9 MB, free: 9.621 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.005179, allocations: 0 / 248.9 MB, free: 9.621 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.93e-05/0.005218, allocations: 19.12 kB / 249 MB, free: 9.605 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005682/0.005787, allocations: 240 kB / 249.2 MB, free: 9.355 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001215/0.005908, allocations: 78.47 kB / 249.3 MB, free: 9.27 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.035e-05/0.005939, allocations: 16.86 kB / 249.3 MB, free: 9.25 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.005951, allocations: 4 kB / 249.3 MB, free: 9.246 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001183/0.006069, allocations: 111.2 kB / 249.4 MB, free: 9.125 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.243e-06/0.006071, allocations: 3.938 kB / 249.4 MB, free: 9.121 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001639/0.006235, allocations: 109.6 kB / 249.5 MB, free: 9.008 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.673e-05/0.006271, allocations: 63.33 kB / 249.6 MB, free: 8.934 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.457e-05/0.006336, allocations: 146 kB / 249.7 MB, free: 8.781 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.00635, allocations: 37.7 kB / 249.8 MB, free: 8.738 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.402e-05/0.006384, allocations: 96.56 kB / 249.8 MB, free: 8.641 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.105e-05/0.006416, allocations: 39.67 kB / 249.9 MB, free: 8.602 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-05/0.006464, allocations: 49.67 kB / 249.9 MB, free: 8.547 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.956e-05/0.006554, allocations: 334.7 kB / 250.3 MB, free: 8.211 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.338e-05/0.006577, allocations: 20 kB / 250.3 MB, free: 8.191 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.08e-05/0.006638, allocations: 85.2 kB / 250.4 MB, free: 8.078 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001041/0.006742, allocations: 124.4 kB / 250.5 MB, free: 7.926 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.006746, allocations: 0 / 250.5 MB, free: 7.926 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001402/0.006886, allocations: 125.6 kB / 250.6 MB, free: 7.797 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.006899, allocations: 12.02 kB / 250.6 MB, free: 7.785 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.006906, allocations: 4 kB / 250.6 MB, free: 7.781 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.00692, allocations: 7.938 kB / 250.6 MB, free: 7.773 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.007047, allocations: 55.91 kB / 250.7 MB, free: 7.719 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.007053, allocations: 4 kB / 250.7 MB, free: 7.715 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.913e-05/0.007102, allocations: 11.89 kB / 250.7 MB, free: 7.703 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.007113, allocations: 12 kB / 250.7 MB, free: 7.691 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.174e-05/0.007205, allocations: 135.6 kB / 250.8 MB, free: 7.547 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.812e-05/0.007223, allocations: 15.98 kB / 250.9 MB, free: 7.531 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001411/0.007364, allocations: 106.3 kB / 251 MB, free: 7.422 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.007366, allocations: 0 / 251 MB, free: 7.422 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.007368, allocations: 0 / 251 MB, free: 7.422 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.007373, allocations: 0 / 251 MB, free: 7.422 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002245/0.007598, allocations: 273.5 kB / 251.2 MB, free: 7.133 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.007599, allocations: 0 / 251.2 MB, free: 7.133 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.36e-05/0.007653, allocations: 19.92 kB / 251.2 MB, free: 7.113 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.121e-05/0.007664, allocations: 19.83 kB / 251.3 MB, free: 7.094 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.007666, allocations: 0 / 251.3 MB, free: 7.094 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.007676, allocations: 4 kB / 251.3 MB, free: 7.09 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.007678, allocations: 7.984 kB / 251.3 MB, free: 7.082 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.00768, allocations: 4 kB / 251.3 MB, free: 7.078 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001702/0.00785, allocations: 223.5 kB / 251.5 MB, free: 6.844 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.274e-05/0.007872, allocations: 11.98 kB / 251.5 MB, free: 6.832 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.305e-05/0.007936, allocations: 15.98 kB / 251.5 MB, free: 6.816 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.071e-05/0.007966, allocations: 11.98 kB / 251.5 MB, free: 6.805 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.007975, allocations: 3.984 kB / 251.5 MB, free: 6.801 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.249e-05/0.007997, allocations: 32.77 kB / 251.6 MB, free: 6.766 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007997, allocations: 0 / 251.6 MB, free: 6.766 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001619/0.008159, allocations: 31.94 kB / 251.6 MB, free: 6.734 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 0.0001106/0.00827, allocations: 97.88 kB / 251.7 MB, free: 6.633 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001497/0.008419, allocations: 88.73 kB / 251.8 MB, free: 6.543 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/0.00843, allocations: 7.984 kB / 251.8 MB, free: 6.535 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.62e-05/0.008486, allocations: 40.78 kB / 251.8 MB, free: 6.492 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001339/0.00862, allocations: 26.8 kB / 251.9 MB, free: 6.469 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009951/0.009615, allocations: 269.6 kB / 252.1 MB, free: 6.176 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.749e-05/0.009653, allocations: 67.84 kB / 252.2 MB, free: 6.09 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.333e-05/0.009686, allocations: 13.14 kB / 252.2 MB, free: 6.078 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.226e-05/0.009738, allocations: 67.36 kB / 252.3 MB, free: 6.012 MB / 250.7 MB Notification: Performance of SimCode: time 4.71e-07/0.009739, allocations: 0 / 252.3 MB, free: 6.012 MB / 250.7 MB Notification: Performance of Templates: time 0.002847/0.01259, allocations: 1.307 MB / 253.6 MB, free: 4.73 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.333425140939653]