Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009587/0.0009587, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 169.1 kB / 24.91 MB, free: 8.258 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9184/0.9184, allocations: 177.1 MB / 205.3 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Blocks.Examples.DemonstrateSignalExtrema") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.576e-05/2.76e-05, allocations: 2.312 kB / 273.5 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.00327/0.003297, allocations: 1.794 MB / 275.3 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.004452, allocations: 0.6658 MB / 275.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.019e-05/0.004543, allocations: 4 kB / 275.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001223/0.004665, allocations: 19.8 kB / 276 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.731e-05/0.004712, allocations: 15.8 kB / 276 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002847/0.004997, allocations: 87.7 kB / 276.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001881/0.005185, allocations: 159.5 kB / 276.2 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.005296, allocations: 26.22 kB / 276.2 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002094/0.005505, allocations: 99.77 kB / 276.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.836e-05/0.005593, allocations: 43.86 kB / 276.4 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/0.005621, allocations: 16 kB / 276.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.901e-05/0.0057, allocations: 23.98 kB / 276.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.231e-05/0.005733, allocations: 35.89 kB / 276.5 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.054e-05/0.005783, allocations: 35.91 kB / 276.5 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001903/0.005974, allocations: 119.5 kB / 276.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.005977, allocations: 4 kB / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.005978, allocations: 0 / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.005984, allocations: 4 kB / 276.6 MB, free: 14.1 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.0005357/0.006519, allocations: 379.8 kB / 277 MB, free: 13.69 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.006557, allocations: 8.031 kB / 277 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001826/0.00674, allocations: 36.89 kB / 277 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.006954, allocations: 149.1 kB / 277.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.006982, allocations: 12.36 kB / 277.2 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.97e-05/0.007012, allocations: 12.38 kB / 277.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002184/0.00723, allocations: 125.3 kB / 277.3 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.007241, allocations: 3.938 kB / 277.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.007254, allocations: 4 kB / 277.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.007261, allocations: 0 / 277.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.503e-05/0.007316, allocations: 19.98 kB / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004433/0.007759, allocations: 247.9 kB / 277.6 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001715/0.007931, allocations: 78.47 kB / 277.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.759e-05/0.007978, allocations: 24.84 kB / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.007996, allocations: 4 kB / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001739/0.00817, allocations: 107.2 kB / 277.8 MB, free: 12.81 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.008171, allocations: 0 / 277.8 MB, free: 12.81 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.000226/0.008397, allocations: 108.7 kB / 277.9 MB, free: 12.7 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.00844, allocations: 59.41 kB / 278 MB, free: 12.63 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.00854, allocations: 142.6 kB / 278.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.00856, allocations: 37.64 kB / 278.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.693e-05/0.008607, allocations: 104.5 kB / 278.2 MB, free: 12.33 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.331e-05/0.008651, allocations: 47.61 kB / 278.3 MB, free: 12.28 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.784e-05/0.008709, allocations: 41.69 kB / 278.3 MB, free: 12.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.008815, allocations: 334.7 kB / 278.7 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.742e-05/0.008852, allocations: 19.98 kB / 278.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.708e-05/0.008929, allocations: 81.22 kB / 278.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/0.009066, allocations: 128.4 kB / 278.9 MB, free: 11.61 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.009069, allocations: 0 / 278.9 MB, free: 11.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001807/0.009249, allocations: 133.3 kB / 279 MB, free: 11.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.009266, allocations: 4 kB / 279 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.009274, allocations: 4.281 kB / 279 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.009291, allocations: 8 kB / 279 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.009451, allocations: 47.91 kB / 279.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.009457, allocations: 4 kB / 279.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.326e-05/0.00952, allocations: 15.89 kB / 279.1 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.009534, allocations: 19.92 kB / 279.1 MB, free: 11.38 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 9.871e-05/0.009633, allocations: 127.7 kB / 279.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.631e-05/0.009659, allocations: 15.98 kB / 279.2 MB, free: 11.22 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001894/0.009848, allocations: 90.42 kB / 279.3 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.009852, allocations: 0 / 279.3 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.009853, allocations: 4 kB / 279.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.009858, allocations: 3.938 kB / 279.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003319/0.01019, allocations: 282.6 kB / 279.6 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.01019, allocations: 0 / 279.6 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.983e-05/0.01027, allocations: 15.98 kB / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.01028, allocations: 0 / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.01029, allocations: 7.984 kB / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.01029, allocations: 0 / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.0103, allocations: 4 kB / 279.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002406/0.01054, allocations: 219.3 kB / 279.9 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.682e-05/0.01055, allocations: 11.94 kB / 279.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.189e-05/0.01059, allocations: 15.98 kB / 279.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.01069, allocations: 15.98 kB / 279.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.631e-05/0.01074, allocations: 11.92 kB / 279.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.01075, allocations: 11.98 kB / 279.9 MB, free: 10.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.276e-05/0.01079, allocations: 31.78 kB / 280 MB, free: 10.46 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01079, allocations: 0 / 280 MB, free: 10.46 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002395/0.01102, allocations: 31.98 kB / 280 MB, free: 10.43 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 0.0001209/0.01115, allocations: 90.31 kB / 280.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001581/0.0113, allocations: 96.3 kB / 280.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.01131, allocations: 4 kB / 280.2 MB, free: 10.24 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.517e-05/0.01137, allocations: 36.83 kB / 280.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00018/0.01155, allocations: 23.98 kB / 280.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007153/0.01227, allocations: 289.7 kB / 280.5 MB, free: 9.871 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.228e-05/0.01232, allocations: 71.78 kB / 280.6 MB, free: 9.781 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.15e-05/0.01236, allocations: 13.14 kB / 280.6 MB, free: 9.77 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.542e-05/0.01243, allocations: 59.38 kB / 280.7 MB, free: 9.711 MB / 266.7 MB Notification: Performance of SimCode: time 8.11e-07/0.01243, allocations: 0 / 280.7 MB, free: 9.711 MB / 266.7 MB Notification: Performance of Templates: time 0.003877/0.01631, allocations: 1.299 MB / 282 MB, free: 8.441 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.4652079110965133]