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.0007637/0.0007637, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001193/0.001956, allocations: 449.7 kB / 10.37 MB, free: 328 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.0006798/0.0006798, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008445/0.001524, allocations: 455.6 kB / 11.71 MB, free: 2.461 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 0.9304/0.9304, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09785/1.028, allocations: 53.66 MB / 243.3 MB, free: 15.59 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 1.874e-06/1.874e-06, allocations: 0 / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.758e-05/1.946e-05, allocations: 6.25 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003034/0.003054, allocations: 1.798 MB / 246.3 MB, free: 12.51 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.004474, allocations: 0.6588 MB / 247 MB, free: 11.84 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.66e-05/0.004571, allocations: 3.938 kB / 247 MB, free: 11.84 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.665e-05/0.004658, allocations: 15.86 kB / 247 MB, free: 11.82 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.937e-05/0.004717, allocations: 19.75 kB / 247 MB, free: 11.8 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000299/0.005016, allocations: 95.67 kB / 247.1 MB, free: 11.71 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000203/0.005219, allocations: 143.6 kB / 247.3 MB, free: 11.57 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.005338, allocations: 22.22 kB / 247.3 MB, free: 11.55 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002305/0.005568, allocations: 111.7 kB / 247.4 MB, free: 11.44 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.005689, allocations: 55.84 kB / 247.4 MB, free: 11.38 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.923e-05/0.005718, allocations: 12 kB / 247.5 MB, free: 11.37 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.387e-05/0.005812, allocations: 24 kB / 247.5 MB, free: 11.35 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.579e-05/0.005848, allocations: 23.94 kB / 247.5 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.257e-05/0.005901, allocations: 31.94 kB / 247.5 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001909/0.006091, allocations: 99.59 kB / 247.6 MB, free: 11.2 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.698e-05/0.006108, allocations: 0 / 247.6 MB, free: 11.2 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.006109, allocations: 0 / 247.6 MB, free: 11.2 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.645e-05/0.006126, allocations: 0 / 247.6 MB, free: 11.2 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.0006833/0.006809, allocations: 415.4 kB / 248 MB, free: 10.75 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.006847, allocations: 8.031 kB / 248 MB, free: 10.75 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002305/0.007077, allocations: 118 kB / 248.2 MB, free: 10.61 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001964/0.007274, allocations: 142.1 kB / 248.3 MB, free: 10.45 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.969e-05/0.007303, allocations: 12.38 kB / 248.3 MB, free: 10.44 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.19e-05/0.007335, allocations: 16.36 kB / 248.3 MB, free: 10.42 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000224/0.007559, allocations: 126.4 kB / 248.4 MB, free: 10.29 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.007569, allocations: 3.938 kB / 248.5 MB, free: 10.29 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.007582, allocations: 0 / 248.5 MB, free: 10.29 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.007589, allocations: 4 kB / 248.5 MB, free: 10.29 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.246e-05/0.007651, allocations: 15.98 kB / 248.5 MB, free: 10.27 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004563/0.008108, allocations: 247.9 kB / 248.7 MB, free: 10.01 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001615/0.008269, allocations: 78.47 kB / 248.8 MB, free: 9.926 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.226e-05/0.008322, allocations: 24.84 kB / 248.8 MB, free: 9.898 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.008336, allocations: 0 / 248.8 MB, free: 9.898 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001768/0.008513, allocations: 111.2 kB / 248.9 MB, free: 9.777 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.923e-06/0.008515, allocations: 0 / 248.9 MB, free: 9.777 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002334/0.008748, allocations: 109.6 kB / 249 MB, free: 9.664 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.901e-05/0.008797, allocations: 63.34 kB / 249.1 MB, free: 9.59 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.711e-05/0.008894, allocations: 145.6 kB / 249.2 MB, free: 9.438 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.008916, allocations: 37.7 kB / 249.3 MB, free: 9.395 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.794e-05/0.008964, allocations: 96.56 kB / 249.4 MB, free: 9.297 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.419e-05/0.009008, allocations: 39.69 kB / 249.4 MB, free: 9.258 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.748e-05/0.009076, allocations: 49.67 kB / 249.5 MB, free: 9.203 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.009177, allocations: 330.7 kB / 249.8 MB, free: 8.871 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.498e-05/0.009212, allocations: 15.98 kB / 249.8 MB, free: 8.855 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.711e-05/0.009289, allocations: 85.2 kB / 249.9 MB, free: 8.742 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.009432, allocations: 124.4 kB / 250 MB, free: 8.59 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.009435, allocations: 0 / 250 MB, free: 8.59 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001884/0.009623, allocations: 137.3 kB / 250.1 MB, free: 8.449 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.009642, allocations: 8 kB / 250.1 MB, free: 8.441 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.009648, allocations: 0 / 250.1 MB, free: 8.441 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.00966, allocations: 4 kB / 250.1 MB, free: 8.438 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.009837, allocations: 51.91 kB / 250.2 MB, free: 8.387 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.009844, allocations: 4 kB / 250.2 MB, free: 8.383 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.957e-05/0.009914, allocations: 19.89 kB / 250.2 MB, free: 8.363 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.009928, allocations: 11.98 kB / 250.2 MB, free: 8.352 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 9.678e-05/0.01003, allocations: 139.9 kB / 250.4 MB, free: 8.203 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.606e-05/0.01005, allocations: 15.98 kB / 250.4 MB, free: 8.188 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001748/0.01023, allocations: 98.02 kB / 250.5 MB, free: 8.09 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.01023, allocations: 0 / 250.5 MB, free: 8.09 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.01023, allocations: 0 / 250.5 MB, free: 8.09 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.01023, allocations: 4 kB / 250.5 MB, free: 8.086 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003245/0.01056, allocations: 274.6 kB / 250.7 MB, free: 7.793 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.01056, allocations: 0 / 250.7 MB, free: 7.793 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.403e-05/0.01064, allocations: 19.92 kB / 250.8 MB, free: 7.773 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.715e-05/0.01066, allocations: 15.84 kB / 250.8 MB, free: 7.758 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.01066, allocations: 0 / 250.8 MB, free: 7.758 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.01068, allocations: 15.98 kB / 250.8 MB, free: 7.742 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.01068, allocations: 0 / 250.8 MB, free: 7.742 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.01068, allocations: 0 / 250.8 MB, free: 7.742 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002524/0.01094, allocations: 219.4 kB / 251 MB, free: 7.512 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.272e-05/0.01097, allocations: 8 kB / 251 MB, free: 7.504 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.01108, allocations: 15.98 kB / 251 MB, free: 7.488 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.062e-05/0.01113, allocations: 11.97 kB / 251 MB, free: 7.477 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.01114, allocations: 12 kB / 251.1 MB, free: 7.465 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.261e-05/0.01117, allocations: 32.75 kB / 251.1 MB, free: 7.43 MB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01117, allocations: 7.969 kB / 251.1 MB, free: 7.422 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002552/0.01143, allocations: 31.94 kB / 251.1 MB, free: 7.391 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 9.488e-05/0.01152, allocations: 86.33 kB / 251.2 MB, free: 7.301 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001566/0.01168, allocations: 88.69 kB / 251.3 MB, free: 7.211 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.01169, allocations: 0 / 251.3 MB, free: 7.211 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.296e-05/0.01176, allocations: 44.77 kB / 251.3 MB, free: 7.164 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000182/0.01194, allocations: 36.33 kB / 251.4 MB, free: 7.133 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.01343, allocations: 269.1 kB / 251.6 MB, free: 6.84 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.554e-05/0.01348, allocations: 63.84 kB / 251.7 MB, free: 6.758 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.698e-05/0.01353, allocations: 17.12 kB / 251.7 MB, free: 6.742 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.131e-05/0.0136, allocations: 63.38 kB / 251.8 MB, free: 6.68 MB / 250.7 MB Notification: Performance of SimCode: time 8.01e-07/0.0136, allocations: 0 / 251.8 MB, free: 6.68 MB / 250.7 MB Notification: Performance of Templates: time 0.003397/0.017, allocations: 1.305 MB / 253.1 MB, free: 5.395 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1952090142294765]