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.001114/0.001114, allocations: 80.34 kB / 22.21 MB, free: 2.277 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.001247/0.001247, allocations: 166.7 kB / 25.61 MB, free: 8.867 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.004/1.004, allocations: 177 MB / 205.9 MB, free: 4.453 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.213e-06/1.213e-06, allocations: 0 / 274.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.202e-05/2.323e-05, allocations: 3 kB / 274.1 MB, free: 4.285 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002398/0.002421, allocations: 1.743 MB / 275.8 MB, free: 2.543 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.00346, allocations: 0.6451 MB / 276.5 MB, free: 1.895 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.00357, allocations: 0 / 276.5 MB, free: 1.895 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.00373, allocations: 15.8 kB / 276.5 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.549e-05/0.003785, allocations: 20.67 kB / 276.5 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003966/0.004182, allocations: 96.41 kB / 276.6 MB, free: 1.766 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001708/0.004352, allocations: 155.4 kB / 276.8 MB, free: 1.613 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.004459, allocations: 23.14 kB / 276.8 MB, free: 1.586 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001717/0.00463, allocations: 91.8 kB / 276.9 MB, free: 1.496 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.93e-05/0.00471, allocations: 51.84 kB / 276.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.079e-05/0.00473, allocations: 12 kB / 276.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.438e-05/0.004795, allocations: 20.72 kB / 277 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.066e-05/0.004836, allocations: 35.89 kB / 277 MB, free: 1.379 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.492e-05/0.00489, allocations: 51.83 kB / 277.1 MB, free: 1.328 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001664/0.005057, allocations: 111.6 kB / 277.2 MB, free: 1.219 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.00506, allocations: 0 / 277.2 MB, free: 1.219 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.143e-06/0.005061, allocations: 0 / 277.2 MB, free: 1.219 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.005066, allocations: 0 / 277.2 MB, free: 1.219 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.0007874/0.005853, allocations: 0.515 MB / 277.7 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.005893, allocations: 8.031 kB / 277.7 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001621/0.006055, allocations: 36.83 kB / 277.7 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001772/0.006233, allocations: 156.4 kB / 277.9 MB, free: 448 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.37e-05/0.006256, allocations: 12.38 kB / 277.9 MB, free: 436 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.828e-05/0.006285, allocations: 16.36 kB / 277.9 MB, free: 420 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001813/0.006466, allocations: 118.8 kB / 278 MB, free: 292 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.006475, allocations: 7.875 kB / 278 MB, free: 284 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.006489, allocations: 3.984 kB / 278 MB, free: 280 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.006495, allocations: 4 kB / 278 MB, free: 276 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.582e-05/0.006541, allocations: 25.94 kB / 278.1 MB, free: 252 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004537/0.006995, allocations: 368.1 kB / 278.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001477/0.007143, allocations: 94.88 kB / 278.5 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.119e-05/0.007184, allocations: 23.67 kB / 278.5 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.0072, allocations: 4 kB / 278.5 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001405/0.00734, allocations: 105 kB / 278.6 MB, free: 15.61 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.007342, allocations: 0 / 278.6 MB, free: 15.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002761/0.007618, allocations: 187.8 kB / 278.8 MB, free: 15.42 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.00767, allocations: 59.41 kB / 278.9 MB, free: 15.35 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.755e-05/0.007768, allocations: 197.8 kB / 279.1 MB, free: 15.14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.007785, allocations: 33.7 kB / 279.1 MB, free: 15.1 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.354e-05/0.007848, allocations: 155.2 kB / 279.3 MB, free: 14.94 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.322e-05/0.007891, allocations: 43.67 kB / 279.3 MB, free: 14.9 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.327e-05/0.007955, allocations: 51.34 kB / 279.4 MB, free: 14.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.008105, allocations: 0.5 MB / 279.9 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.068e-05/0.008136, allocations: 15.98 kB / 279.9 MB, free: 14.31 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.096e-05/0.008217, allocations: 118.5 kB / 280 MB, free: 14.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001436/0.008361, allocations: 158.1 kB / 280.1 MB, free: 13.96 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.008364, allocations: 4 kB / 280.1 MB, free: 13.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000188/0.008552, allocations: 161.5 kB / 280.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.008569, allocations: 11.94 kB / 280.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.008574, allocations: 0 / 280.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.008591, allocations: 4 kB / 280.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.008713, allocations: 43.97 kB / 280.4 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.00872, allocations: 7.938 kB / 280.4 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.042e-05/0.00877, allocations: 19.89 kB / 280.4 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.008781, allocations: 4 kB / 280.4 MB, free: 13.7 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.0001401/0.008921, allocations: 182.4 kB / 280.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.816e-05/0.008949, allocations: 15.97 kB / 280.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002288/0.009178, allocations: 162.3 kB / 280.7 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.009183, allocations: 4 kB / 280.7 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.009185, allocations: 3.984 kB / 280.7 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.00919, allocations: 0 / 280.7 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004036/0.009594, allocations: 433.7 kB / 281.2 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.009596, allocations: 0 / 281.2 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.217e-05/0.009658, allocations: 11.98 kB / 281.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.009662, allocations: 4 kB / 281.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.009674, allocations: 0 / 281.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.009676, allocations: 4 kB / 281.2 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.009678, allocations: 4 kB / 281.2 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003214/0.009999, allocations: 346.3 kB / 281.5 MB, free: 12.49 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.675e-05/0.01002, allocations: 15.89 kB / 281.6 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.731e-05/0.01004, allocations: 8 kB / 281.6 MB, free: 12.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.161e-05/0.01011, allocations: 15.98 kB / 281.6 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.361e-05/0.01016, allocations: 15.97 kB / 281.6 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.107e-06/0.01017, allocations: 7.938 kB / 281.6 MB, free: 12.43 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.6e-05/0.01022, allocations: 150.1 kB / 281.7 MB, free: 12.29 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01022, allocations: 0 / 281.7 MB, free: 12.29 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001906/0.01041, allocations: 28 kB / 281.8 MB, free: 12.26 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.0001144/0.01053, allocations: 115.2 kB / 281.9 MB, free: 12.14 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001444/0.01067, allocations: 87.5 kB / 282 MB, free: 12.05 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.01067, allocations: 0 / 282 MB, free: 12.05 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.872e-05/0.01073, allocations: 51.59 kB / 282 MB, free: 11.99 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001734/0.01091, allocations: 19.92 kB / 282 MB, free: 11.97 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005693/0.01148, allocations: 291.5 kB / 282.3 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.177e-05/0.01152, allocations: 71.64 kB / 282.4 MB, free: 11.57 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.548e-05/0.01155, allocations: 17.12 kB / 282.4 MB, free: 11.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.931e-05/0.01161, allocations: 90.19 kB / 282.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of SimCode: time 6.92e-07/0.01161, allocations: 0 / 282.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of Templates: time 0.003079/0.01469, allocations: 1.367 MB / 283.9 MB, free: 10.12 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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 3.9709134777076542]