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.00118/0.00118, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 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.001172/0.001172, allocations: 171.8 kB / 24.82 MB, free: 9.254 MB / 18.57 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.004/1.004, allocations: 177 MB / 205.1 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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 1.573e-06/1.573e-06, allocations: 0 / 273.3 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.185e-05/1.343e-05, allocations: 2.312 kB / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.001911/0.001924, allocations: 1.741 MB / 275.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008383/0.002763, allocations: 0.6543 MB / 275.7 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.034e-05/0.002833, allocations: 0 / 275.7 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.86e-05/0.002931, allocations: 15.8 kB / 275.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.911e-05/0.002971, allocations: 19.8 kB / 275.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002532/0.003224, allocations: 87.69 kB / 275.8 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000144/0.003368, allocations: 159.5 kB / 276 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.147e-05/0.003459, allocations: 21.62 kB / 276 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.003606, allocations: 95.78 kB / 276.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.174e-05/0.003678, allocations: 51.84 kB / 276.2 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.587e-05/0.003704, allocations: 12 kB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.981e-05/0.003754, allocations: 20 kB / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.561e-05/0.003779, allocations: 31.89 kB / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.876e-05/0.003818, allocations: 47.89 kB / 276.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000132/0.00395, allocations: 111.5 kB / 276.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.003953, allocations: 4 kB / 276.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.003954, allocations: 4 kB / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.003957, allocations: 0 / 276.4 MB, free: 14.14 MB / 266.7 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.0004364/0.004394, allocations: 0.515 MB / 276.9 MB, free: 13.58 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.004429, allocations: 11.98 kB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001244/0.004553, allocations: 36.83 kB / 276.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.004689, allocations: 153 kB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.004707, allocations: 12.36 kB / 277.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.211e-05/0.004729, allocations: 12.38 kB / 277.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000157/0.004886, allocations: 125.5 kB / 277.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.004893, allocations: 11.86 kB / 277.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-06/0.004903, allocations: 0 / 277.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.004908, allocations: 4 kB / 277.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.409e-05/0.004952, allocations: 19.98 kB / 277.3 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003754/0.005327, allocations: 360.1 kB / 277.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001259/0.005453, allocations: 90.89 kB / 277.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.062e-05/0.005494, allocations: 35.66 kB / 277.8 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.005508, allocations: 4 kB / 277.8 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001154/0.005623, allocations: 109 kB / 277.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.005624, allocations: 0 / 277.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002462/0.005871, allocations: 181.3 kB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.215e-05/0.005903, allocations: 59.39 kB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.37e-05/0.005986, allocations: 201.2 kB / 278.3 MB, free: 12.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.459e-05/0.006001, allocations: 33.69 kB / 278.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.97e-05/0.006051, allocations: 151.2 kB / 278.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.661e-05/0.006087, allocations: 51.66 kB / 278.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-05/0.006134, allocations: 51.34 kB / 278.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.006249, allocations: 0.5039 MB / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.452e-05/0.006274, allocations: 15.98 kB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.692e-05/0.006341, allocations: 120.7 kB / 279.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001132/0.006454, allocations: 148.7 kB / 279.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.006456, allocations: 0 / 279.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001482/0.006604, allocations: 157.2 kB / 279.5 MB, free: 10.72 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.041e-05/0.006615, allocations: 11.94 kB / 279.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.00662, allocations: 4.281 kB / 279.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.006631, allocations: 8 kB / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.006736, allocations: 43.97 kB / 279.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.006742, allocations: 7.938 kB / 279.6 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.278e-05/0.006785, allocations: 19.89 kB / 279.6 MB, free: 10.63 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-06/0.006793, allocations: 4 kB / 279.6 MB, free: 10.62 MB / 266.7 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 8.887e-05/0.006882, allocations: 190.4 kB / 279.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.15e-05/0.006904, allocations: 15.91 kB / 279.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001867/0.00709, allocations: 169.4 kB / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.007092, allocations: 0 / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.007094, allocations: 0 / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.007097, allocations: 4 kB / 280 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003091/0.007406, allocations: 429.8 kB / 280.4 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.007408, allocations: 0 / 280.4 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.425e-05/0.007462, allocations: 15.98 kB / 280.4 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.007464, allocations: 0 / 280.4 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.007474, allocations: 3.984 kB / 280.4 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.007475, allocations: 4 kB / 280.4 MB, free: 9.766 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.007476, allocations: 0 / 280.4 MB, free: 9.766 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002546/0.00773, allocations: 347.7 kB / 280.8 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.176e-05/0.007742, allocations: 15.91 kB / 280.8 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.199e-05/0.007764, allocations: 12.03 kB / 280.8 MB, free: 9.379 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.055e-05/0.007835, allocations: 19.97 kB / 280.8 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.835e-05/0.007863, allocations: 7.984 kB / 280.8 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.007875, allocations: 15.98 kB / 280.8 MB, free: 9.336 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.779e-05/0.007923, allocations: 143.1 kB / 281 MB, free: 9.195 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007923, allocations: 0 / 281 MB, free: 9.195 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001809/0.008104, allocations: 28 kB / 281 MB, free: 9.168 MB / 266.7 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 7.424e-05/0.008178, allocations: 107.2 kB / 281.1 MB, free: 9.055 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001289/0.008307, allocations: 106.7 kB / 281.2 MB, free: 8.949 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.21e-07/0.008308, allocations: 0 / 281.2 MB, free: 8.949 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.152e-05/0.00836, allocations: 43.61 kB / 281.3 MB, free: 8.902 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001566/0.008516, allocations: 19.98 kB / 281.3 MB, free: 8.883 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004922/0.009008, allocations: 291.3 kB / 281.6 MB, free: 8.57 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.543e-05/0.009044, allocations: 72.02 kB / 281.6 MB, free: 8.48 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.853e-05/0.009072, allocations: 13.14 kB / 281.6 MB, free: 8.469 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.327e-05/0.009126, allocations: 82.2 kB / 281.7 MB, free: 8.387 MB / 266.7 MB Notification: Performance of SimCode: time 3.91e-07/0.009126, allocations: 0 / 281.7 MB, free: 8.387 MB / 266.7 MB Notification: Performance of Templates: time 0.002647/0.01177, allocations: 1.354 MB / 283.1 MB, free: 7.055 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.793798105791211]