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.00205/0.00205, allocations: 88.73 kB / 21.5 MB, free: 2.98 MB / 18.57 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.002119/0.002119, allocations: 166.2 kB / 24.91 MB, free: 8.758 MB / 18.57 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.037/1.037, allocations: 177 MB / 205.2 MB, free: 5.445 MB / 186.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.633e-06/1.633e-06, allocations: 0 / 273.4 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.723e-05/2.886e-05, allocations: 2.312 kB / 273.4 MB, free: 1.234 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003455/0.003484, allocations: 1.751 MB / 275.1 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.004798, allocations: 0.6658 MB / 275.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.671e-05/0.004895, allocations: 0 / 275.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001383/0.005033, allocations: 19.8 kB / 275.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.33e-05/0.005096, allocations: 23.8 kB / 275.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003792/0.005476, allocations: 87.69 kB / 275.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002255/0.005701, allocations: 155.5 kB / 276.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.005854, allocations: 26.22 kB / 276.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002971/0.006152, allocations: 91.84 kB / 276.2 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.006288, allocations: 51.78 kB / 276.2 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.762e-05/0.006325, allocations: 16 kB / 276.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.185e-05/0.006407, allocations: 20 kB / 276.3 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.53e-05/0.006453, allocations: 35.89 kB / 276.3 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.267e-05/0.006515, allocations: 43.89 kB / 276.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000233/0.006748, allocations: 115.5 kB / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.006754, allocations: 0 / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.006756, allocations: 0 / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.006761, allocations: 0 / 276.4 MB, free: 14.12 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005809/0.007342, allocations: 391.8 kB / 276.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.007396, allocations: 11.98 kB / 276.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002266/0.007622, allocations: 32.91 kB / 276.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.007846, allocations: 146.2 kB / 277 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.044e-05/0.007876, allocations: 8.375 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.763e-05/0.007914, allocations: 12.38 kB / 277 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002583/0.008172, allocations: 121.6 kB / 277.2 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.008184, allocations: 3.938 kB / 277.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.006e-05/0.008204, allocations: 11.98 kB / 277.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.008211, allocations: 0 / 277.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.679e-05/0.008278, allocations: 19.98 kB / 277.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009927/0.00927, allocations: 244 kB / 277.4 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002117/0.009482, allocations: 78.47 kB / 277.5 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.348e-05/0.009535, allocations: 24.84 kB / 277.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.009558, allocations: 4 kB / 277.5 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001909/0.009749, allocations: 103.3 kB / 277.6 MB, free: 12.83 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.974e-06/0.009751, allocations: 3.938 kB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002845/0.01004, allocations: 109.5 kB / 277.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.818e-05/0.01009, allocations: 63.39 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.01021, allocations: 146 kB / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.01023, allocations: 29.7 kB / 278 MB, free: 12.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.266e-05/0.01029, allocations: 104.6 kB / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.946e-05/0.01034, allocations: 43.61 kB / 278.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.093e-05/0.01041, allocations: 45.67 kB / 278.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.01053, allocations: 330.7 kB / 278.5 MB, free: 11.92 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.981e-05/0.01057, allocations: 16 kB / 278.5 MB, free: 11.9 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.969e-05/0.01066, allocations: 96.41 kB / 278.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001465/0.0108, allocations: 120.4 kB / 278.7 MB, free: 11.63 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.01081, allocations: 4 kB / 278.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002279/0.01103, allocations: 137.5 kB / 278.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.01106, allocations: 7.984 kB / 278.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.01107, allocations: 4 kB / 278.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.01108, allocations: 7.938 kB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001801/0.01126, allocations: 39.92 kB / 278.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.01127, allocations: 4 kB / 278.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.854e-05/0.01136, allocations: 23.88 kB / 278.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.01137, allocations: 4 kB / 278.9 MB, free: 11.39 MB / 266.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 0.0001139/0.01149, allocations: 131.7 kB / 279.1 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.357e-05/0.01152, allocations: 16.11 kB / 279.1 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002143/0.01174, allocations: 97.52 kB / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.01174, allocations: 0 / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.01174, allocations: 4 kB / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.01175, allocations: 3.984 kB / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004381/0.01219, allocations: 274.5 kB / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.01219, allocations: 0 / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001024/0.0123, allocations: 15.98 kB / 279.5 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/0.0123, allocations: 0 / 279.5 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.01233, allocations: 7.984 kB / 279.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.01233, allocations: 0 / 279.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.01234, allocations: 8 kB / 279.5 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003541/0.01269, allocations: 231.3 kB / 279.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.741e-05/0.01272, allocations: 11.91 kB / 279.7 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.376e-05/0.01277, allocations: 8 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.0129, allocations: 19.98 kB / 279.8 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.316e-05/0.01296, allocations: 15.91 kB / 279.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.01298, allocations: 4 kB / 279.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.647e-05/0.01304, allocations: 40.75 kB / 279.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01304, allocations: 0 / 279.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003081/0.01334, allocations: 32.03 kB / 279.8 MB, free: 10.44 MB / 266.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.0002113/0.01355, allocations: 85.53 kB / 279.9 MB, free: 10.35 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002094/0.01376, allocations: 84.94 kB / 280 MB, free: 10.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.01377, allocations: 3.938 kB / 280 MB, free: 10.26 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.933e-05/0.01383, allocations: 43.64 kB / 280.1 MB, free: 10.21 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001448/0.01397, allocations: 19.98 kB / 280.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006515/0.01462, allocations: 289.7 kB / 280.4 MB, free: 9.887 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.495e-05/0.01467, allocations: 75.72 kB / 280.4 MB, free: 9.793 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.745e-05/0.01472, allocations: 13.14 kB / 280.5 MB, free: 9.781 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.148e-05/0.01478, allocations: 59.38 kB / 280.5 MB, free: 9.723 MB / 266.7 MB Notification: Performance of SimCode: time 1.172e-06/0.01478, allocations: 0 / 280.5 MB, free: 9.723 MB / 266.7 MB Notification: Performance of Templates: time 0.003111/0.01789, allocations: 1.293 MB / 281.8 MB, free: 8.449 MB / 266.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 -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.8053025021217763]