Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001363/0.001363, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.00164/0.00164, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.592/1.592, allocations: 230.6 MB / 258.2 MB, free: 8.055 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 64.77 kB / 379 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3826/0.3846, allocations: 53.38 MB / 432.4 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003091/0.3877, allocations: 1.739 MB / 434.1 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001228/0.3889, allocations: 0.6778 MB / 434.8 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.44e-05/0.389, allocations: 7.938 kB / 434.8 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.3891, allocations: 11.86 kB / 434.8 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.217e-05/0.3891, allocations: 23.73 kB / 434.9 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003249/0.3895, allocations: 91.75 kB / 435 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002098/0.3897, allocations: 147.5 kB / 435.1 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.3898, allocations: 29.41 kB / 435.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001651/0.39, allocations: 67.78 kB / 435.2 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.3901, allocations: 63.73 kB / 435.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.928e-05/0.3901, allocations: 20 kB / 435.3 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.862e-05/0.3902, allocations: 23.92 kB / 435.3 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.704e-05/0.3903, allocations: 27.92 kB / 435.3 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.616e-05/0.3903, allocations: 67.7 kB / 435.4 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002152/0.3905, allocations: 134.3 kB / 435.5 MB, free: 3.852 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3905, allocations: 0 / 435.5 MB, free: 3.852 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3906, allocations: 0 / 435.5 MB, free: 3.852 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.3906, allocations: 0 / 435.5 MB, free: 3.852 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.0007405/0.3913, allocations: 421.2 kB / 435.9 MB, free: 3.398 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.3913, allocations: 12.03 kB / 435.9 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000243/0.3916, allocations: 32.83 kB / 436 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002648/0.3918, allocations: 158.8 kB / 436.1 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.098e-05/0.3919, allocations: 12.38 kB / 436.1 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.239e-05/0.3919, allocations: 16.12 kB / 436.2 MB, free: 3.148 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004161/0.3923, allocations: 164 kB / 436.3 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.3923, allocations: 0 / 436.3 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.3924, allocations: 0 / 436.3 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.3924, allocations: 4 kB / 436.3 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003061/0.3927, allocations: 99.91 kB / 436.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000677/0.3934, allocations: 403.4 kB / 436.8 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005319/0.3939, allocations: 186.4 kB / 437 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002478/0.3941, allocations: 84.78 kB / 437.1 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.3942, allocations: 4 kB / 437.1 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003932/0.3946, allocations: 175.2 kB / 437.3 MB, free: 1.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.3946, allocations: 0 / 437.3 MB, free: 1.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009075/0.3955, allocations: 342.4 kB / 437.6 MB, free: 1.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.398e-05/0.3955, allocations: 59.39 kB / 437.6 MB, free: 1.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.3957, allocations: 151.8 kB / 437.8 MB, free: 1.414 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.3957, allocations: 29.7 kB / 437.8 MB, free: 1.379 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.431e-05/0.3958, allocations: 116.4 kB / 437.9 MB, free: 1.262 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.677e-05/0.3958, allocations: 43.67 kB / 438 MB, free: 1.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.692e-05/0.3959, allocations: 45.7 kB / 438 MB, free: 1.168 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.3961, allocations: 326.8 kB / 438.3 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001178/0.3962, allocations: 47.91 kB / 438.4 MB, free: 0.793 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001579/0.3963, allocations: 112.6 kB / 438.5 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003316/0.3967, allocations: 172.4 kB / 438.7 MB, free: 464 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3967, allocations: 0 / 438.7 MB, free: 464 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003547/0.397, allocations: 205.3 kB / 438.9 MB, free: 252 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.397, allocations: 15.92 kB / 438.9 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.397, allocations: 0 / 438.9 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.3971, allocations: 7.938 kB / 438.9 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001665/0.3972, allocations: 35.98 kB / 438.9 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.3972, allocations: 7.938 kB / 438.9 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.022e-05/0.3973, allocations: 20.16 kB / 439 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.3974, allocations: 16 kB / 439 MB, free: 148 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.0001637/0.3975, allocations: 135.5 kB / 439.1 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.393e-05/0.3976, allocations: 11.95 kB / 439.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006694/0.3982, allocations: 281 kB / 439.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.3982, allocations: 3.938 kB / 439.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.3982, allocations: 3.984 kB / 439.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.3982, allocations: 0 / 439.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009761/0.3992, allocations: 0.5403 MB / 439.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.3992, allocations: 3.938 kB / 439.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.3993, allocations: 15.98 kB / 440 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.3993, allocations: 0 / 440 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.3994, allocations: 11.98 kB / 440 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.3994, allocations: 0 / 440 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3994, allocations: 0 / 440 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009459/0.4003, allocations: 475.2 kB / 440.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.162e-05/0.4003, allocations: 15.84 kB / 440.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.829e-05/0.4004, allocations: 11.98 kB / 440.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.4005, allocations: 23.97 kB / 440.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.372e-05/0.4006, allocations: 11.98 kB / 440.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.77e-05/0.4006, allocations: 7.984 kB / 440.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.102e-05/0.4007, allocations: 114 kB / 440.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4007, allocations: 4.062 kB / 440.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002757/0.401, allocations: 28 kB / 440.6 MB, free: 14.39 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.0001162/0.4011, allocations: 99.25 kB / 440.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004484/0.4015, allocations: 164.1 kB / 440.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.4015, allocations: 4.188 kB / 440.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002316/0.4018, allocations: 90.48 kB / 441 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002378/0.402, allocations: 11.92 kB / 441 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007655/0.4028, allocations: 336.8 kB / 441.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.4031, allocations: 0.7045 MB / 442 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.851e-05/0.4032, allocations: 17.08 kB / 442.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.195e-05/0.4032, allocations: 19.38 kB / 442.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4032, allocations: 0 / 442.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of Templates: time 0.004192/0.4074, allocations: 1.33 MB / 443.4 MB, free: 11.58 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_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.996694759465754]