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.005752/0.005752, allocations: 105.4 kB / 21.98 MB, free: 5.223 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.001561/0.001561, allocations: 214.3 kB / 25.29 MB, free: 3.203 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.529/1.529, allocations: 230.6 MB / 259 MB, free: 8.027 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.002037/0.002037, allocations: 63.91 kB / 379.8 MB, free: 2.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2854, allocations: 53.36 MB / 433.2 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003111/0.2885, allocations: 1.751 MB / 434.9 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.2897, allocations: 0.67 MB / 435.6 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.38e-05/0.2898, allocations: 7.938 kB / 435.6 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001193/0.2899, allocations: 11.86 kB / 435.6 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.099e-05/0.29, allocations: 23.78 kB / 435.6 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003653/0.2904, allocations: 83.78 kB / 435.7 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.2906, allocations: 151.5 kB / 435.9 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.2907, allocations: 21.62 kB / 435.9 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002183/0.2909, allocations: 75.77 kB / 436 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.291, allocations: 63.73 kB / 436 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.646e-05/0.2911, allocations: 12 kB / 436 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.064e-05/0.2911, allocations: 16 kB / 436 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.995e-05/0.2912, allocations: 43.89 kB / 436.1 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.2913, allocations: 63.72 kB / 436.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002236/0.2915, allocations: 140.6 kB / 436.3 MB, free: 3.824 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2915, allocations: 3.938 kB / 436.3 MB, free: 3.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2915, allocations: 0 / 436.3 MB, free: 3.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.2915, allocations: 0 / 436.3 MB, free: 3.82 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.0007025/0.2922, allocations: 417.2 kB / 436.7 MB, free: 3.371 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.2922, allocations: 12.03 kB / 436.7 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002361/0.2925, allocations: 36.81 kB / 436.7 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/0.2928, allocations: 157 kB / 436.9 MB, free: 3.148 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.881e-05/0.2928, allocations: 12.31 kB / 436.9 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.29e-05/0.2928, allocations: 24.06 kB / 436.9 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004372/0.2933, allocations: 153.5 kB / 437.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.2933, allocations: 0 / 437.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.279e-05/0.2933, allocations: 15.97 kB / 437.1 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.2933, allocations: 0 / 437.1 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003292/0.2936, allocations: 103.9 kB / 437.2 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007209/0.2944, allocations: 391.5 kB / 437.6 MB, free: 2.414 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000552/0.2949, allocations: 182.4 kB / 437.8 MB, free: 2.227 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002611/0.2952, allocations: 88.78 kB / 437.8 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.351e-05/0.2952, allocations: 3.984 kB / 437.8 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004304/0.2956, allocations: 175.2 kB / 438 MB, free: 1.949 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 2.044e-06/0.2956, allocations: 0 / 438 MB, free: 1.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000984/0.2966, allocations: 352.4 kB / 438.4 MB, free: 1.602 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.075e-05/0.2967, allocations: 55.41 kB / 438.4 MB, free: 1.535 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001422/0.2968, allocations: 149.7 kB / 438.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.2968, allocations: 33.7 kB / 438.6 MB, free: 1.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.695e-05/0.2969, allocations: 100.5 kB / 438.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.919e-05/0.297, allocations: 43.69 kB / 438.7 MB, free: 1.195 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.028e-05/0.297, allocations: 53.69 kB / 438.8 MB, free: 1.137 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.2972, allocations: 322.8 kB / 439.1 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.2973, allocations: 43.97 kB / 439.1 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/0.2975, allocations: 120.4 kB / 439.3 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000329/0.2978, allocations: 172.4 kB / 439.4 MB, free: 432 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2978, allocations: 0 / 439.4 MB, free: 432 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004417/0.2983, allocations: 213.5 kB / 439.6 MB, free: 212 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.2983, allocations: 4 kB / 439.6 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.2983, allocations: 4 kB / 439.7 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.844e-05/0.2983, allocations: 7.938 kB / 439.7 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001986/0.2985, allocations: 31.92 kB / 439.7 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.624e-05/0.2985, allocations: 11.92 kB / 439.7 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.2986, allocations: 19.89 kB / 439.7 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.2987, allocations: 15.94 kB / 439.7 MB, free: 116 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.0001738/0.2988, allocations: 131.6 kB / 439.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.674e-05/0.2989, allocations: 19.89 kB / 439.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007454/0.2996, allocations: 270.2 kB / 440.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.2996, allocations: 11.94 kB / 440.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.2996, allocations: 4 kB / 440.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2996, allocations: 0 / 440.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.3007, allocations: 0.5403 MB / 440.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.3007, allocations: 3.938 kB / 440.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.3008, allocations: 15.98 kB / 440.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.3008, allocations: 0 / 440.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.3008, allocations: 11.98 kB / 440.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.3008, allocations: 0 / 440.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.3008, allocations: 3.984 kB / 440.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.3019, allocations: 478 kB / 441.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.56e-05/0.3019, allocations: 15.88 kB / 441.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.875e-05/0.302, allocations: 16.05 kB / 441.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.3022, allocations: 23.97 kB / 441.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.347e-05/0.3022, allocations: 11.97 kB / 441.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.101e-05/0.3022, allocations: 12 kB / 441.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.423e-05/0.3023, allocations: 110.1 kB / 441.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3023, allocations: 0 / 441.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002973/0.3026, allocations: 28 kB / 441.4 MB, free: 14.36 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.0001584/0.3028, allocations: 107.2 kB / 441.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005029/0.3033, allocations: 159.7 kB / 441.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3033, allocations: 0 / 441.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002578/0.3036, allocations: 92.41 kB / 441.8 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.3038, allocations: 11.94 kB / 441.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008889/0.3047, allocations: 358.5 kB / 442.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/0.3051, allocations: 0.7084 MB / 442.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.086e-05/0.3051, allocations: 15.44 kB / 442.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3051, allocations: 0 / 442.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of Templates: time 0.003759/0.3089, allocations: 1.654 MB / 444.5 MB, free: 11.2 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/DemonstrateSignalExtrema/DemonstrateSignalExtrema.csv","/var/lib/jenkins1/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: 8.941650713095441]