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.001859/0.001859, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002235/0.002235, allocations: 206.4 kB / 23.73 MB, free: 4.391 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.56/1.56, allocations: 230.5 MB / 257.4 MB, free: 7.77 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.002004/0.002004, allocations: 67.89 kB / 378.2 MB, free: 2.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3196, allocations: 53.41 MB / 431.6 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.00468/0.3243, allocations: 1.685 MB / 433.3 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002006/0.3263, allocations: 0.6272 MB / 433.9 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.3265, allocations: 11.94 kB / 434 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.3266, allocations: 15.8 kB / 434 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.058e-05/0.3267, allocations: 19.8 kB / 434 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000524/0.3272, allocations: 83.77 kB / 434.1 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003397/0.3276, allocations: 159.5 kB / 434.2 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001778/0.3277, allocations: 17.62 kB / 434.2 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002536/0.328, allocations: 67.83 kB / 434.3 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.3282, allocations: 55.73 kB / 434.4 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.195e-05/0.3282, allocations: 12 kB / 434.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.826e-05/0.3283, allocations: 24 kB / 434.4 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.799e-05/0.3284, allocations: 31.91 kB / 434.4 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.3285, allocations: 59.7 kB / 434.5 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003641/0.3289, allocations: 137.7 kB / 434.6 MB, free: 3.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.3289, allocations: 0 / 434.6 MB, free: 3.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3289, allocations: 0 / 434.6 MB, free: 3.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.3289, allocations: 0 / 434.6 MB, free: 3.52 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.001135/0.33, allocations: 425.1 kB / 435 MB, free: 3.062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001047/0.3301, allocations: 11.98 kB / 435 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003935/0.3305, allocations: 36.83 kB / 435.1 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004628/0.331, allocations: 158.9 kB / 435.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.763e-05/0.331, allocations: 8.375 kB / 435.2 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.543e-05/0.3311, allocations: 20.06 kB / 435.3 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007931/0.3319, allocations: 157.5 kB / 435.4 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.3319, allocations: 3.938 kB / 435.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.34e-05/0.3319, allocations: 8 kB / 435.4 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.332, allocations: 4 kB / 435.4 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000672/0.3326, allocations: 95.91 kB / 435.5 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.3337, allocations: 344.1 kB / 435.9 MB, free: 2.172 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.3349, allocations: 186.4 kB / 436 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005361/0.3354, allocations: 88.78 kB / 436.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.3355, allocations: 0 / 436.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007126/0.3362, allocations: 174.4 kB / 436.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 2.545e-06/0.3362, allocations: 0 / 436.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001957/0.3381, allocations: 345.3 kB / 436.6 MB, free: 1.367 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.842e-05/0.3382, allocations: 63.39 kB / 436.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002364/0.3385, allocations: 149.7 kB / 436.9 MB, free: 1.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.317e-05/0.3385, allocations: 33.69 kB / 436.9 MB, free: 1.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.3387, allocations: 108.5 kB / 437 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.737e-05/0.3387, allocations: 39.69 kB / 437 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.3389, allocations: 41.7 kB / 437.1 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002438/0.3391, allocations: 330.8 kB / 437.4 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/0.3393, allocations: 47.97 kB / 437.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002786/0.3396, allocations: 121.1 kB / 437.6 MB, free: 384 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005656/0.3402, allocations: 180.3 kB / 437.7 MB, free: 172 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.3402, allocations: 0 / 437.7 MB, free: 172 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007546/0.3409, allocations: 201.4 kB / 437.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.341, allocations: 8 kB / 437.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.341, allocations: 4 kB / 437.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.341, allocations: 0 / 437.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000296/0.3413, allocations: 39.92 kB / 438 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.848e-05/0.3413, allocations: 11.88 kB / 438 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001949/0.3415, allocations: 28.16 kB / 438 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.458e-05/0.3415, allocations: 4 kB / 438 MB, free: 15.87 MB / 350.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.0002131/0.3417, allocations: 131.6 kB / 438.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.955e-05/0.3418, allocations: 11.91 kB / 438.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001307/0.3431, allocations: 290.1 kB / 438.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.3431, allocations: 4 kB / 438.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.3431, allocations: 3.938 kB / 438.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.3431, allocations: 0 / 438.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001746/0.3449, allocations: 0.5083 MB / 439 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3449, allocations: 0 / 439 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001953/0.3451, allocations: 15.98 kB / 439 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.3451, allocations: 3.938 kB / 439 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.185e-05/0.3451, allocations: 11.92 kB / 439 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.3451, allocations: 0 / 439 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.3451, allocations: 0 / 439 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/0.3469, allocations: 475.2 kB / 439.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.918e-05/0.347, allocations: 11.94 kB / 439.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.013e-05/0.347, allocations: 15.92 kB / 439.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003489/0.3474, allocations: 31.97 kB / 439.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.994e-05/0.3475, allocations: 11.98 kB / 439.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.305e-05/0.3475, allocations: 7.984 kB / 439.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001444/0.3476, allocations: 110.6 kB / 439.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3476, allocations: 0 / 439.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005543/0.3482, allocations: 28 kB / 439.7 MB, free: 14.16 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.0001981/0.3484, allocations: 99.25 kB / 439.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007565/0.3491, allocations: 167.7 kB / 439.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3492, allocations: 0 / 439.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000478/0.3496, allocations: 88.42 kB / 440 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004638/0.3501, allocations: 10.34 kB / 440 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.3515, allocations: 343.8 kB / 440.4 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001651/0.3517, allocations: 97.88 kB / 440.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.725e-05/0.3518, allocations: 13.08 kB / 440.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.733e-05/0.3519, allocations: 15.42 kB / 440.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3519, allocations: 4 kB / 440.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of Templates: time 0.00783/0.3597, allocations: 1.339 MB / 441.8 MB, free: 11.96 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.054436206817627]