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.001756/0.001756, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002056/0.002056, allocations: 211.4 kB / 24.48 MB, free: 3.977 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.535/1.535, allocations: 230.6 MB / 258.3 MB, free: 7.789 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.001564/0.001564, allocations: 47.92 kB / 378.9 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2563, allocations: 53.37 MB / 432.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003026/0.2593, allocations: 1.677 MB / 434 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.2605, allocations: 0.6389 MB / 434.6 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.26e-05/0.2606, allocations: 3.938 kB / 434.6 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.2607, allocations: 11.86 kB / 434.7 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.212e-05/0.2607, allocations: 19.8 kB / 434.7 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003088/0.261, allocations: 91.75 kB / 434.8 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002131/0.2613, allocations: 155.5 kB / 434.9 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001219/0.2614, allocations: 29.42 kB / 434.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001602/0.2615, allocations: 63.83 kB / 435 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001089/0.2616, allocations: 67.67 kB / 435.1 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.014e-05/0.2617, allocations: 16 kB / 435.1 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.296e-05/0.2617, allocations: 20 kB / 435.1 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.869e-05/0.2618, allocations: 27.92 kB / 435.1 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.326e-05/0.2618, allocations: 51.77 kB / 435.2 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000209/0.262, allocations: 146.2 kB / 435.3 MB, free: 3.723 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2621, allocations: 4 kB / 435.3 MB, free: 3.719 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2621, allocations: 0 / 435.3 MB, free: 3.719 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.2621, allocations: 4 kB / 435.3 MB, free: 3.715 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.0007197/0.2628, allocations: 419.7 kB / 435.7 MB, free: 3.266 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.2628, allocations: 12.03 kB / 435.8 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002408/0.2631, allocations: 28.83 kB / 435.8 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002631/0.2633, allocations: 154.9 kB / 435.9 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.2634, allocations: 8.375 kB / 435.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.617e-05/0.2634, allocations: 16.12 kB / 436 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004719/0.2639, allocations: 169.5 kB / 436.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.2639, allocations: 4 kB / 436.1 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.007e-05/0.2639, allocations: 4 kB / 436.1 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.2639, allocations: 0 / 436.1 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003564/0.2643, allocations: 99.91 kB / 436.2 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006589/0.2649, allocations: 344.1 kB / 436.6 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005941/0.2655, allocations: 186.4 kB / 436.7 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002895/0.2658, allocations: 88.78 kB / 436.8 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.2658, allocations: 0 / 436.8 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004302/0.2663, allocations: 171.3 kB / 437 MB, free: 1.922 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.2663, allocations: 3.938 kB / 437 MB, free: 1.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.00105/0.2673, allocations: 341.3 kB / 437.3 MB, free: 1.578 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.413e-05/0.2674, allocations: 67.39 kB / 437.4 MB, free: 1.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.2675, allocations: 143.4 kB / 437.5 MB, free: 1.352 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.23e-05/0.2675, allocations: 37.69 kB / 437.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.798e-05/0.2676, allocations: 104.5 kB / 437.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.709e-05/0.2676, allocations: 43.67 kB / 437.7 MB, free: 1.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.797e-05/0.2677, allocations: 45.64 kB / 437.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.2679, allocations: 330.8 kB / 438.1 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.268, allocations: 51.97 kB / 438.1 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.2682, allocations: 116.4 kB / 438.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003097/0.2685, allocations: 172.4 kB / 438.4 MB, free: 392 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.2685, allocations: 0 / 438.4 MB, free: 392 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003929/0.2689, allocations: 209.3 kB / 438.6 MB, free: 176 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.2689, allocations: 4 kB / 438.6 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.2689, allocations: 8.281 kB / 438.6 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.2689, allocations: 4 kB / 438.6 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001724/0.2691, allocations: 35.86 kB / 438.7 MB, free: 124 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.2691, allocations: 7.938 kB / 438.7 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.2692, allocations: 31.8 kB / 438.7 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.595e-05/0.2692, allocations: 11.94 kB / 438.7 MB, free: 72 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.0001326/0.2693, allocations: 127.6 kB / 438.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.129e-05/0.2694, allocations: 15.91 kB / 438.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000767/0.2701, allocations: 288.4 kB / 439.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.2701, allocations: 0 / 439.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.2701, allocations: 3.938 kB / 439.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2701, allocations: 0 / 439.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009794/0.2711, allocations: 0.5018 MB / 439.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2711, allocations: 0 / 439.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.2712, allocations: 15.98 kB / 439.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2712, allocations: 0 / 439.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.873e-05/0.2713, allocations: 15.92 kB / 439.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.2713, allocations: 7.984 kB / 439.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2713, allocations: 0 / 439.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.2723, allocations: 474.1 kB / 440.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.217e-05/0.2724, allocations: 15.94 kB / 440.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.656e-05/0.2724, allocations: 15.92 kB / 440.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001947/0.2726, allocations: 23.97 kB / 440.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.163e-05/0.2727, allocations: 15.92 kB / 440.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.2727, allocations: 7.984 kB / 440.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.639e-05/0.2728, allocations: 113.5 kB / 440.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2728, allocations: 0 / 440.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002866/0.273, allocations: 32.06 kB / 440.4 MB, free: 14.36 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.0001274/0.2732, allocations: 103.2 kB / 440.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004563/0.2736, allocations: 159.7 kB / 440.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2736, allocations: 0.5625 kB / 440.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002686/0.2739, allocations: 91.86 kB / 440.7 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000245/0.2741, allocations: 10.66 kB / 440.7 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007861/0.2749, allocations: 332.7 kB / 441.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.08e-05/0.275, allocations: 89.88 kB / 441.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.18e-05/0.2751, allocations: 17.02 kB / 441.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.629e-05/0.2751, allocations: 23.42 kB / 441.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2751, allocations: 4 kB / 441.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of Templates: time 0.004443/0.2796, allocations: 1.361 MB / 442.6 MB, free: 12.15 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 -s gbode -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: 5.676022166997427]