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.001199/0.001199, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002278/0.003477, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.00104/0.00104, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001447/0.002487, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 1.057/1.057, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.131/1.188, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.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 3.086e-06/3.086e-06, allocations: 0 / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.008e-05/4.316e-05, allocations: 2.312 kB / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.004079/0.004123, allocations: 1.802 MB / 246.5 MB, free: 12.4 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.005682, allocations: 0.6627 MB / 247.2 MB, free: 11.73 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.005807, allocations: 0 / 247.2 MB, free: 11.73 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.005948, allocations: 15.8 kB / 247.2 MB, free: 11.72 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.788e-05/0.006016, allocations: 19.8 kB / 247.2 MB, free: 11.7 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004031/0.006419, allocations: 99.55 kB / 247.3 MB, free: 11.6 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002816/0.006701, allocations: 143.6 kB / 247.4 MB, free: 11.46 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.006873, allocations: 26.28 kB / 247.5 MB, free: 11.43 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004154/0.007288, allocations: 111.7 kB / 247.6 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.007442, allocations: 51.8 kB / 247.6 MB, free: 11.27 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.007482, allocations: 16 kB / 247.7 MB, free: 11.26 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001249/0.007607, allocations: 19.98 kB / 247.7 MB, free: 11.24 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.293e-05/0.00766, allocations: 23.94 kB / 247.7 MB, free: 11.21 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002496/0.00791, allocations: 31.94 kB / 247.7 MB, free: 11.18 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003067/0.008216, allocations: 99.59 kB / 247.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.327e-05/0.00824, allocations: 4 kB / 247.8 MB, free: 11.08 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.008242, allocations: 0 / 247.8 MB, free: 11.08 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.65e-05/0.008258, allocations: 4 kB / 247.8 MB, free: 11.08 MB / 250.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.0009831/0.009241, allocations: 411.4 kB / 248.2 MB, free: 10.64 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.178e-05/0.009303, allocations: 8.031 kB / 248.2 MB, free: 10.63 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003466/0.00965, allocations: 118 kB / 248.4 MB, free: 10.5 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002845/0.009934, allocations: 138.2 kB / 248.5 MB, free: 10.34 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.731e-05/0.009971, allocations: 12.36 kB / 248.5 MB, free: 10.33 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.655e-05/0.01001, allocations: 8.375 kB / 248.5 MB, free: 10.32 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/0.01029, allocations: 126.8 kB / 248.6 MB, free: 10.19 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.0103, allocations: 7.938 kB / 248.6 MB, free: 10.18 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.01032, allocations: 4 kB / 248.6 MB, free: 10.18 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.01033, allocations: 4 kB / 248.6 MB, free: 10.17 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.116e-05/0.01039, allocations: 15.98 kB / 248.7 MB, free: 10.16 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005665/0.01096, allocations: 251.9 kB / 248.9 MB, free: 9.895 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/0.01117, allocations: 66.48 kB / 249 MB, free: 9.82 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.075e-05/0.01125, allocations: 40.58 kB / 249 MB, free: 9.781 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.01127, allocations: 0 / 249 MB, free: 9.781 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/0.01149, allocations: 103.3 kB / 249.1 MB, free: 9.668 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 2.044e-06/0.01149, allocations: 3.938 kB / 249.1 MB, free: 9.664 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.000295/0.01179, allocations: 105.6 kB / 249.2 MB, free: 9.555 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.01185, allocations: 59.41 kB / 249.3 MB, free: 9.484 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.01197, allocations: 145.6 kB / 249.4 MB, free: 9.332 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.012, allocations: 33.7 kB / 249.5 MB, free: 9.293 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.03e-05/0.01207, allocations: 100.6 kB / 249.6 MB, free: 9.191 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.552e-05/0.01212, allocations: 47.66 kB / 249.6 MB, free: 9.145 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.257e-05/0.0122, allocations: 45.69 kB / 249.6 MB, free: 9.094 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.01232, allocations: 330.7 kB / 250 MB, free: 8.762 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.324e-05/0.01236, allocations: 23.86 kB / 250 MB, free: 8.738 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.35e-05/0.01246, allocations: 85.22 kB / 250.1 MB, free: 8.625 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001732/0.01263, allocations: 120.4 kB / 250.2 MB, free: 8.477 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.01263, allocations: 0 / 250.2 MB, free: 8.477 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002364/0.01287, allocations: 133.4 kB / 250.3 MB, free: 8.34 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.01289, allocations: 8 kB / 250.3 MB, free: 8.332 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.0129, allocations: 0 / 250.3 MB, free: 8.332 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.291e-05/0.01292, allocations: 4 kB / 250.3 MB, free: 8.328 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002143/0.01314, allocations: 56.19 kB / 250.4 MB, free: 8.273 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.01315, allocations: 4 kB / 250.4 MB, free: 8.27 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.796e-05/0.01322, allocations: 23.88 kB / 250.4 MB, free: 8.246 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.01324, allocations: 4 kB / 250.4 MB, free: 8.242 MB / 250.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 0.0001257/0.01336, allocations: 139.6 kB / 250.6 MB, free: 8.098 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.279e-05/0.0134, allocations: 11.98 kB / 250.6 MB, free: 8.086 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002598/0.01366, allocations: 97.94 kB / 250.7 MB, free: 7.988 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.01366, allocations: 0 / 250.7 MB, free: 7.988 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.01367, allocations: 7.938 kB / 250.7 MB, free: 7.98 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.01367, allocations: 0 / 250.7 MB, free: 7.98 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004564/0.01413, allocations: 278.5 kB / 250.9 MB, free: 7.684 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.01413, allocations: 0 / 250.9 MB, free: 7.684 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/0.01423, allocations: 15.98 kB / 251 MB, free: 7.668 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.294e-05/0.01426, allocations: 19.83 kB / 251 MB, free: 7.648 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.01426, allocations: 0 / 251 MB, free: 7.648 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.01428, allocations: 7.984 kB / 251 MB, free: 7.641 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.01428, allocations: 0 / 251 MB, free: 7.641 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.01429, allocations: 0 / 251 MB, free: 7.641 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003378/0.01462, allocations: 223.3 kB / 251.2 MB, free: 7.406 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.236e-05/0.01467, allocations: 12 kB / 251.2 MB, free: 7.395 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.01478, allocations: 20.02 kB / 251.2 MB, free: 7.375 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.975e-05/0.01483, allocations: 11.97 kB / 251.2 MB, free: 7.363 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.01484, allocations: 4 kB / 251.3 MB, free: 7.359 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.042e-05/0.01489, allocations: 40.75 kB / 251.3 MB, free: 7.316 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01489, allocations: 0 / 251.3 MB, free: 7.316 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000289/0.01518, allocations: 31.94 kB / 251.3 MB, free: 7.285 MB / 250.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.0001785/0.01536, allocations: 97.59 kB / 251.4 MB, free: 7.188 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000231/0.01559, allocations: 93.25 kB / 251.5 MB, free: 7.094 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-05/0.0156, allocations: 0 / 251.5 MB, free: 7.094 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.195e-05/0.0157, allocations: 52.09 kB / 251.6 MB, free: 7.043 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002278/0.01592, allocations: 31.97 kB / 251.6 MB, free: 7.012 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.01756, allocations: 269.1 kB / 251.9 MB, free: 6.715 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.935e-05/0.01762, allocations: 63.84 kB / 251.9 MB, free: 6.633 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.725e-05/0.01768, allocations: 17.42 kB / 251.9 MB, free: 6.617 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.068e-05/0.01776, allocations: 67.38 kB / 252 MB, free: 6.551 MB / 250.7 MB Notification: Performance of SimCode: time 2.104e-06/0.01776, allocations: 0 / 252 MB, free: 6.551 MB / 250.7 MB Notification: Performance of Templates: time 0.004609/0.02237, allocations: 1.272 MB / 253.3 MB, free: 5.297 MB / 250.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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3968056896701455]