Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 106.8 kB / 21.19 MB, free: 0.6406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 213.3 kB / 24.49 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.512/1.512, allocations: 230.6 MB / 258.3 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 55.92 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2497, allocations: 53.37 MB / 432.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002932/0.2527, allocations: 1.685 MB / 434 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001186/0.2539, allocations: 0.635 MB / 434.7 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.383e-05/0.2539, allocations: 0 / 434.7 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000115/0.254, allocations: 19.8 kB / 434.7 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.61e-05/0.2541, allocations: 19.8 kB / 434.7 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000297/0.2544, allocations: 83.78 kB / 434.8 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001992/0.2546, allocations: 151.6 kB / 434.9 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.2547, allocations: 29.36 kB / 435 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001655/0.2549, allocations: 71.75 kB / 435 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.255, allocations: 63.75 kB / 435.1 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.971e-05/0.255, allocations: 16 kB / 435.1 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.714e-05/0.2551, allocations: 16 kB / 435.1 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.022e-05/0.2551, allocations: 35.89 kB / 435.2 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.383e-05/0.2552, allocations: 55.77 kB / 435.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002006/0.2554, allocations: 138.3 kB / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2554, allocations: 0 / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2554, allocations: 4 kB / 435.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.2554, allocations: 0 / 435.3 MB, free: 3.688 MB / 334.1 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.0007077/0.2561, allocations: 417.2 kB / 435.8 MB, free: 3.238 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.2561, allocations: 12.03 kB / 435.8 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002454/0.2564, allocations: 28.83 kB / 435.8 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002477/0.2566, allocations: 162.8 kB / 436 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.877e-05/0.2566, allocations: 12.36 kB / 436 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.031e-05/0.2567, allocations: 16.12 kB / 436 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000464/0.2571, allocations: 161.5 kB / 436.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.2572, allocations: 3.938 kB / 436.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.075e-05/0.2572, allocations: 4 kB / 436.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.2572, allocations: 0 / 436.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003543/0.2575, allocations: 107.8 kB / 436.2 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006385/0.2582, allocations: 336.2 kB / 436.6 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005609/0.2587, allocations: 186.4 kB / 436.8 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002761/0.259, allocations: 88.78 kB / 436.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.259, allocations: 0 / 436.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004302/0.2595, allocations: 178.1 kB / 437 MB, free: 1.887 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.2595, allocations: 0 / 437 MB, free: 1.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001031/0.2605, allocations: 353.2 kB / 437.4 MB, free: 1.535 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.2605, allocations: 59.39 kB / 437.4 MB, free: 1.465 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.2607, allocations: 152.7 kB / 437.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.2607, allocations: 33.7 kB / 437.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.883e-05/0.2608, allocations: 104.5 kB / 437.7 MB, free: 1.164 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.531e-05/0.2608, allocations: 39.69 kB / 437.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.179e-05/0.2609, allocations: 45.7 kB / 437.8 MB, free: 1.074 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.261, allocations: 326.8 kB / 438.1 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.2611, allocations: 47.97 kB / 438.2 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001692/0.2613, allocations: 116.5 kB / 438.3 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003003/0.2616, allocations: 164.4 kB / 438.4 MB, free: 372 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2616, allocations: 0 / 438.4 MB, free: 372 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003937/0.262, allocations: 217.2 kB / 438.6 MB, free: 148 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.262, allocations: 8.281 kB / 438.7 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.262, allocations: 4 kB / 438.7 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.2621, allocations: 8 kB / 438.7 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001781/0.2622, allocations: 35.91 kB / 438.7 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/0.2622, allocations: 7.938 kB / 438.7 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.2623, allocations: 19.89 kB / 438.7 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.312e-05/0.2624, allocations: 15.98 kB / 438.7 MB, free: 48 kB / 334.1 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.0001288/0.2625, allocations: 127.5 kB / 438.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.284e-05/0.2625, allocations: 15.91 kB / 438.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007434/0.2633, allocations: 274.2 kB / 439.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.2633, allocations: 3.984 kB / 439.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2633, allocations: 4 kB / 439.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.683e-05/0.2633, allocations: 23.77 kB / 439.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.964e-05/0.2634, allocations: 12 kB / 439.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/0.2635, allocations: 31.95 kB / 439.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.391e-05/0.2636, allocations: 7.984 kB / 439.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007399/0.2643, allocations: 335.7 kB / 439.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009698/0.2653, allocations: 0.514 MB / 440.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002447/0.2655, allocations: 84.02 kB / 440.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.601e-05/0.2656, allocations: 107.2 kB / 440.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of Backend: time 6.82e-07/0.2656, allocations: 0 / 440.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005398/0.2661, allocations: 164.7 kB / 440.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of SimCode: time 0.0007137/0.2669, allocations: 0.7162 MB / 441.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of Templates: time 0.004779/0.2716, allocations: 1.715 MB / 442.9 MB, free: 11.88 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/DemonstrateSignalExtrema/DemonstrateSignalExtrema.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 6.042160317003436]