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.001176/0.001176, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.001295/0.001295, allocations: 160.3 kB / 24.91 MB, free: 8.758 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.035/1.035, allocations: 177 MB / 205.2 MB, free: 5.434 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 2.274e-06/2.274e-06, allocations: 3.938 kB / 273.4 MB, free: 1.176 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.411e-05/1.638e-05, allocations: 2.312 kB / 273.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002163/0.00218, allocations: 1.783 MB / 275.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008675/0.003047, allocations: 0.6659 MB / 275.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.793e-05/0.003115, allocations: 3.938 kB / 275.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001172/0.003232, allocations: 11.86 kB / 275.9 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.865e-05/0.003271, allocations: 19.75 kB / 275.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002564/0.003527, allocations: 95.61 kB / 276 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001463/0.003674, allocations: 151.5 kB / 276.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.839e-05/0.003772, allocations: 30.22 kB / 276.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000153/0.003925, allocations: 91.84 kB / 276.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.486e-05/0.00401, allocations: 51.84 kB / 276.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.115e-05/0.004031, allocations: 12 kB / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.963e-05/0.004101, allocations: 20 kB / 276.3 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.637e-05/0.004127, allocations: 31.89 kB / 276.4 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.239e-05/0.004169, allocations: 51.83 kB / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001779/0.004347, allocations: 107.6 kB / 276.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.00435, allocations: 4 kB / 276.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.004351, allocations: 0 / 276.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.004355, allocations: 4 kB / 276.5 MB, free: 14.03 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.0004083/0.004764, allocations: 383.8 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.004799, allocations: 19.97 kB / 276.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/0.004926, allocations: 28.91 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.005069, allocations: 146.1 kB / 277.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.005087, allocations: 8.375 kB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.45e-05/0.005111, allocations: 12.38 kB / 277.1 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000148/0.005259, allocations: 122.8 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.892e-06/0.005266, allocations: 3.938 kB / 277.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.005275, allocations: 0 / 277.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.005279, allocations: 7.938 kB / 277.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.234e-05/0.005322, allocations: 30.72 kB / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003214/0.005643, allocations: 232.1 kB / 277.5 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001164/0.00576, allocations: 86.41 kB / 277.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.332e-05/0.005793, allocations: 24.84 kB / 277.6 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.525e-05/0.005808, allocations: 7.984 kB / 277.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002319/0.00604, allocations: 103.3 kB / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.006041, allocations: 0 / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001895/0.006231, allocations: 113.5 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.77e-05/0.006278, allocations: 55.41 kB / 277.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.598e-05/0.006364, allocations: 150 kB / 278 MB, free: 12.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.006379, allocations: 29.7 kB / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.328e-05/0.006423, allocations: 100.6 kB / 278.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.503e-05/0.006458, allocations: 43.61 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.079e-05/0.006509, allocations: 53.67 kB / 278.3 MB, free: 12.15 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.01e-05/0.006599, allocations: 330.7 kB / 278.6 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.357e-05/0.006622, allocations: 15.98 kB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.029e-05/0.006682, allocations: 92.38 kB / 278.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001062/0.006789, allocations: 128.4 kB / 278.8 MB, free: 11.53 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.006792, allocations: 0 / 278.8 MB, free: 11.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001413/0.006933, allocations: 125.4 kB / 278.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.006948, allocations: 8 kB / 279 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.006955, allocations: 4 kB / 279 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.006968, allocations: 288 / 279 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.007096, allocations: 59.91 kB / 279 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.007103, allocations: 7.938 kB / 279 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.127e-05/0.007144, allocations: 11.89 kB / 279 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.007157, allocations: 15.98 kB / 279 MB, free: 11.29 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 7.323e-05/0.00723, allocations: 127.8 kB / 279.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.572e-05/0.007246, allocations: 15.92 kB / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.007369, allocations: 93.52 kB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.007372, allocations: 4 kB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.007374, allocations: 0 / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.007378, allocations: 0 / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002143/0.007592, allocations: 278.5 kB / 279.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.007593, allocations: 4 kB / 279.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.951e-05/0.007643, allocations: 11.98 kB / 279.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.007645, allocations: 4 kB / 279.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.007659, allocations: 7.984 kB / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.00766, allocations: 0 / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.007661, allocations: 0 / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001838/0.007845, allocations: 227.4 kB / 279.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.052e-05/0.007855, allocations: 15.89 kB / 279.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.007876, allocations: 11.94 kB / 279.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.22e-05/0.007938, allocations: 20.02 kB / 279.9 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.177e-05/0.00797, allocations: 19.91 kB / 279.9 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.116e-06/0.007978, allocations: 8 kB / 279.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.382e-05/0.008002, allocations: 28.77 kB / 279.9 MB, free: 10.38 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008002, allocations: 0 / 279.9 MB, free: 10.38 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001433/0.008145, allocations: 31.98 kB / 279.9 MB, free: 10.35 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.802e-05/0.008223, allocations: 92.41 kB / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001126/0.008336, allocations: 93.17 kB / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.008339, allocations: 0 / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.889e-05/0.008388, allocations: 51.72 kB / 280.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001164/0.008504, allocations: 15.98 kB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005282/0.009032, allocations: 285.5 kB / 280.5 MB, free: 9.785 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.634e-05/0.009069, allocations: 67.78 kB / 280.5 MB, free: 9.699 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.175e-05/0.0091, allocations: 13.14 kB / 280.5 MB, free: 9.688 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.286e-05/0.009153, allocations: 63.38 kB / 280.6 MB, free: 9.625 MB / 266.7 MB Notification: Performance of SimCode: time 7.41e-07/0.009154, allocations: 0 / 280.6 MB, free: 9.625 MB / 266.7 MB Notification: Performance of Templates: time 0.002769/0.01192, allocations: 1.294 MB / 281.9 MB, free: 8.352 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 -s gbode -gbm=radauIIA3 -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.7038965113461018]