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.001372/0.001372, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 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.001628/0.001628, allocations: 213.7 kB / 24.54 MB, free: 4.02 MB / 14.72 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.485/1.485, allocations: 230.3 MB / 258 MB, free: 8.234 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001934/0.001934, allocations: 63.89 kB / 378.8 MB, free: 2.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3317/0.3337, allocations: 53.35 MB / 432.1 MB, free: 7.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003769/0.3374, allocations: 1.753 MB / 433.9 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001912/0.3393, allocations: 0.6739 MB / 434.5 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001294/0.3395, allocations: 0 / 434.5 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001898/0.3397, allocations: 23.8 kB / 434.6 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.703e-05/0.3397, allocations: 15.8 kB / 434.6 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004943/0.3402, allocations: 91.7 kB / 434.7 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002843/0.3405, allocations: 143.6 kB / 434.8 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.3407, allocations: 25.61 kB / 434.8 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002274/0.3409, allocations: 71.72 kB / 434.9 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001485/0.341, allocations: 71.73 kB / 435 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.765e-05/0.3411, allocations: 12 kB / 435 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.441e-05/0.3412, allocations: 19.98 kB / 435 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.72e-05/0.3412, allocations: 35.91 kB / 435 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.3413, allocations: 67.7 kB / 435.1 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002886/0.3416, allocations: 137.1 kB / 435.2 MB, free: 3.938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3416, allocations: 0 / 435.2 MB, free: 3.938 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.3416, allocations: 0 / 435.2 MB, free: 3.938 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.3416, allocations: 0 / 435.2 MB, free: 3.938 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.0009761/0.3426, allocations: 421.2 kB / 435.6 MB, free: 3.484 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.634e-05/0.3427, allocations: 19.95 kB / 435.7 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002927/0.343, allocations: 28.83 kB / 435.7 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000408/0.3434, allocations: 158.5 kB / 435.8 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.969e-05/0.3434, allocations: 12.36 kB / 435.9 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.291e-05/0.3435, allocations: 12.12 kB / 435.9 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005695/0.3441, allocations: 172 kB / 436 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.3441, allocations: 0 / 436 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.55e-05/0.3441, allocations: 4 kB / 436 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.3441, allocations: 0 / 436 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003919/0.3445, allocations: 99.84 kB / 436.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007584/0.3453, allocations: 399.5 kB / 436.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006142/0.3459, allocations: 190.4 kB / 436.7 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002939/0.3462, allocations: 84.78 kB / 436.8 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.3462, allocations: 0 / 436.8 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004599/0.3466, allocations: 175.2 kB / 437 MB, free: 2.066 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.3466, allocations: 3.938 kB / 437 MB, free: 2.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001096/0.3477, allocations: 349.2 kB / 437.3 MB, free: 1.715 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.411e-05/0.3478, allocations: 55.41 kB / 437.4 MB, free: 1.648 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.3479, allocations: 149.7 kB / 437.5 MB, free: 1.492 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.942e-05/0.348, allocations: 37.7 kB / 437.5 MB, free: 1.449 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.272e-05/0.3481, allocations: 104.5 kB / 437.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.078e-05/0.3481, allocations: 43.67 kB / 437.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.429e-05/0.3482, allocations: 45.7 kB / 437.7 MB, free: 1.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.3483, allocations: 322.8 kB / 438.1 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.3485, allocations: 47.97 kB / 438.1 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.3486, allocations: 113.2 kB / 438.2 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000336/0.349, allocations: 176.3 kB / 438.4 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.349, allocations: 0 / 438.4 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004236/0.3494, allocations: 213.3 kB / 438.6 MB, free: 328 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.3494, allocations: 4 kB / 438.6 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.3494, allocations: 4 kB / 438.6 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.663e-05/0.3495, allocations: 7.938 kB / 438.6 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002029/0.3497, allocations: 35.91 kB / 438.6 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.453e-05/0.3497, allocations: 4 kB / 438.6 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.3498, allocations: 24.17 kB / 438.7 MB, free: 248 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.403e-05/0.3498, allocations: 11.98 kB / 438.7 MB, free: 236 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.0001737/0.35, allocations: 132 kB / 438.8 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.156e-05/0.35, allocations: 15.91 kB / 438.8 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000812/0.3508, allocations: 276.7 kB / 439.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.3508, allocations: 3.938 kB / 439.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.657e-06/0.3508, allocations: 7.984 kB / 439.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.3508, allocations: 0 / 439.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001123/0.352, allocations: 0.5442 MB / 439.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.352, allocations: 3.938 kB / 439.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.3521, allocations: 15.98 kB / 439.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3521, allocations: 7.938 kB / 439.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.3521, allocations: 4 kB / 439.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.3521, allocations: 7.984 kB / 439.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3521, allocations: 0 / 439.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.3532, allocations: 466.6 kB / 440.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.42e-05/0.3532, allocations: 19.81 kB / 440.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.191e-05/0.3533, allocations: 8 kB / 440.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.3534, allocations: 31.95 kB / 440.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.712e-05/0.3535, allocations: 7.984 kB / 440.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/0.3535, allocations: 11.98 kB / 440.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.843e-05/0.3536, allocations: 110.3 kB / 440.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3536, allocations: 3.938 kB / 440.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002878/0.3539, allocations: 28 kB / 440.4 MB, free: 14.48 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.0001636/0.3541, allocations: 111.1 kB / 440.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004847/0.3546, allocations: 168 kB / 440.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3546, allocations: 0 / 440.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002705/0.3548, allocations: 83.88 kB / 440.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002546/0.3551, allocations: 15.92 kB / 440.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008829/0.356, allocations: 329.1 kB / 441.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004608/0.3564, allocations: 0.7045 MB / 441.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.102e-05/0.3565, allocations: 17.08 kB / 441.8 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.508e-05/0.3565, allocations: 15.44 kB / 441.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3565, allocations: 0 / 441.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of Templates: time 0.004876/0.3614, allocations: 1.336 MB / 443.1 MB, free: 11.66 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.13149877730757]