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.002087/0.002087, allocations: 111.8 kB / 20.43 MB, free: 1.473 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.002945/0.002945, allocations: 214 kB / 23.74 MB, free: 4.688 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.588/1.588, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.001638/0.001638, allocations: 51.92 kB / 378.3 MB, free: 2.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2692, allocations: 53.35 MB / 431.6 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002969/0.2721, allocations: 1.751 MB / 433.4 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001182/0.2733, allocations: 0.6778 MB / 434 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.64e-05/0.2734, allocations: 7.938 kB / 434 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.2735, allocations: 19.8 kB / 434.1 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.025e-05/0.2735, allocations: 15.8 kB / 434.1 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002901/0.2738, allocations: 91.7 kB / 434.2 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002066/0.274, allocations: 151.6 kB / 434.3 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.2741, allocations: 21.62 kB / 434.3 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001498/0.2743, allocations: 75.77 kB / 434.4 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.2744, allocations: 67.67 kB / 434.5 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.414e-05/0.2744, allocations: 12 kB / 434.5 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.713e-05/0.2745, allocations: 16 kB / 434.5 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.57e-05/0.2746, allocations: 39.89 kB / 434.5 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.586e-05/0.2746, allocations: 55.73 kB / 434.6 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001984/0.2748, allocations: 145.7 kB / 434.7 MB, free: 3.789 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.2749, allocations: 0 / 434.7 MB, free: 3.789 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2749, allocations: 0 / 434.7 MB, free: 3.789 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.455e-06/0.2749, allocations: 0 / 434.7 MB, free: 3.789 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.0006773/0.2755, allocations: 425.2 kB / 435.2 MB, free: 3.332 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.2756, allocations: 8.031 kB / 435.2 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002368/0.2758, allocations: 32.81 kB / 435.2 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002461/0.2761, allocations: 154.8 kB / 435.3 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.2761, allocations: 8.375 kB / 435.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.714e-05/0.2761, allocations: 16.12 kB / 435.4 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004332/0.2766, allocations: 164.7 kB / 435.5 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-06/0.2766, allocations: 4 kB / 435.5 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.2766, allocations: 3.984 kB / 435.5 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.2766, allocations: 0 / 435.5 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003477/0.2769, allocations: 103.9 kB / 435.6 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000683/0.2776, allocations: 399.4 kB / 436 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005556/0.2782, allocations: 190.4 kB / 436.2 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002751/0.2784, allocations: 84.78 kB / 436.3 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.689e-05/0.2785, allocations: 4 kB / 436.3 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003969/0.2789, allocations: 168.6 kB / 436.5 MB, free: 1.926 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.2789, allocations: 0 / 436.5 MB, free: 1.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001009/0.2799, allocations: 347.1 kB / 436.8 MB, free: 1.582 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.2799, allocations: 67.38 kB / 436.9 MB, free: 1.504 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.2801, allocations: 147.6 kB / 437 MB, free: 1.352 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.38e-05/0.2801, allocations: 41.69 kB / 437.1 MB, free: 1.305 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.182e-05/0.2802, allocations: 100.5 kB / 437.2 MB, free: 1.203 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.766e-05/0.2802, allocations: 51.56 kB / 437.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.53e-05/0.2803, allocations: 45.7 kB / 437.3 MB, free: 1.102 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.2805, allocations: 326.8 kB / 437.6 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001235/0.2806, allocations: 43.97 kB / 437.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/0.2808, allocations: 116.5 kB / 437.7 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003099/0.2811, allocations: 172.4 kB / 437.9 MB, free: 396 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2811, allocations: 4 kB / 437.9 MB, free: 392 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000394/0.2815, allocations: 213.2 kB / 438.1 MB, free: 172 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.2815, allocations: 4 kB / 438.1 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.2815, allocations: 4 kB / 438.1 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/0.2815, allocations: 7.938 kB / 438.1 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.2817, allocations: 36.2 kB / 438.2 MB, free: 120 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.2817, allocations: 4 kB / 438.2 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.846e-05/0.2818, allocations: 23.88 kB / 438.2 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.88e-05/0.2819, allocations: 8 kB / 438.2 MB, free: 84 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.0001663/0.282, allocations: 131.6 kB / 438.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.808e-05/0.282, allocations: 15.91 kB / 438.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007257/0.2828, allocations: 270.2 kB / 438.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.2828, allocations: 11.92 kB / 438.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.467e-06/0.2828, allocations: 4 kB / 438.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.2828, allocations: 0 / 438.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009977/0.2838, allocations: 0.547 MB / 439.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.2838, allocations: 3.938 kB / 439.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.2839, allocations: 15.98 kB / 439.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.2839, allocations: 0 / 439.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.153e-05/0.2839, allocations: 7.984 kB / 439.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2839, allocations: 4 kB / 439.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.2839, allocations: 0 / 439.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.2849, allocations: 467.1 kB / 439.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.507e-05/0.285, allocations: 15.88 kB / 439.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.95e-05/0.285, allocations: 11.98 kB / 439.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001829/0.2852, allocations: 27.97 kB / 439.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.362e-05/0.2852, allocations: 16.03 kB / 439.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.2853, allocations: 15.98 kB / 439.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.184e-05/0.2853, allocations: 108.9 kB / 439.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2853, allocations: 3.938 kB / 439.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000283/0.2856, allocations: 28 kB / 439.9 MB, free: 14.32 MB / 350.1 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.0001193/0.2857, allocations: 99.25 kB / 440 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00046/0.2862, allocations: 167.7 kB / 440.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2862, allocations: 0 / 440.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002498/0.2865, allocations: 83.86 kB / 440.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002442/0.2867, allocations: 15.88 kB / 440.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008276/0.2875, allocations: 341.2 kB / 440.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003756/0.2879, allocations: 0.7084 MB / 441.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.365e-05/0.2879, allocations: 13.08 kB / 441.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.724e-05/0.288, allocations: 15.42 kB / 441.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.288, allocations: 0 / 441.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of Templates: time 0.004487/0.2925, allocations: 1.336 MB / 442.6 MB, free: 11.51 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/DemonstrateSignalExtrema/DemonstrateSignalExtrema.csv","/var/lib/jenkins/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: 5.948981892084703]