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.001088/0.001088, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001052/0.001052, allocations: 163.9 kB / 24.99 MB, free: 8.336 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.987/0.987, allocations: 177.1 MB / 205.3 MB, free: 5.613 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.923e-06/1.923e-06, allocations: 0 / 273 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.031e-05/3.223e-05, allocations: 6.25 kB / 273 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002327/0.002359, allocations: 1.742 MB / 274.8 MB, free: 88 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00104/0.003399, allocations: 0.6504 MB / 275.4 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.031e-05/0.003489, allocations: 8 kB / 275.4 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001349/0.003624, allocations: 15.75 kB / 275.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.932e-05/0.003663, allocations: 19.78 kB / 275.5 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000343/0.004006, allocations: 87.7 kB / 275.6 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001717/0.004178, allocations: 151.5 kB / 275.7 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.004302, allocations: 25.55 kB / 275.7 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001715/0.004474, allocations: 87.86 kB / 275.8 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.38e-05/0.004557, allocations: 51.84 kB / 275.9 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.799e-05/0.004585, allocations: 20 kB / 275.9 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.163e-05/0.004647, allocations: 20 kB / 275.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.892e-05/0.004686, allocations: 39.81 kB / 276 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.941e-05/0.004745, allocations: 43.89 kB / 276 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002183/0.004964, allocations: 111.6 kB / 276.1 MB, free: 14.76 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.004966, allocations: 0 / 276.1 MB, free: 14.76 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.004967, allocations: 0 / 276.1 MB, free: 14.76 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.004974, allocations: 0 / 276.1 MB, free: 14.76 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.0006799/0.005653, allocations: 0.5111 MB / 276.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.005706, allocations: 12.03 kB / 276.6 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002008/0.005907, allocations: 36.83 kB / 276.7 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001904/0.006097, allocations: 161 kB / 276.8 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.006121, allocations: 12.31 kB / 276.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.737e-05/0.006148, allocations: 12.38 kB / 276.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002088/0.006357, allocations: 133.5 kB / 277 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.006366, allocations: 7.875 kB / 277 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.006382, allocations: 4 kB / 277 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.006389, allocations: 0 / 277 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.597e-05/0.006455, allocations: 27.98 kB / 277 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004992/0.006954, allocations: 391.4 kB / 277.4 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001825/0.007137, allocations: 94.94 kB / 277.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.218e-05/0.007199, allocations: 31.67 kB / 277.5 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.007216, allocations: 4 kB / 277.5 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001733/0.007389, allocations: 115.4 kB / 277.6 MB, free: 13.08 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.934e-06/0.007391, allocations: 4 kB / 277.6 MB, free: 13.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003866/0.007778, allocations: 193.4 kB / 277.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.627e-05/0.007834, allocations: 55.41 kB / 277.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.007971, allocations: 205.1 kB / 278.1 MB, free: 12.6 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.238e-05/0.007994, allocations: 33.7 kB / 278.1 MB, free: 12.56 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.479e-05/0.008079, allocations: 155.2 kB / 278.3 MB, free: 12.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.367e-05/0.008122, allocations: 43.69 kB / 278.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.162e-05/0.008184, allocations: 51.36 kB / 278.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.008345, allocations: 0.4961 MB / 278.9 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.067e-05/0.008396, allocations: 31.97 kB / 278.9 MB, free: 11.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.008498, allocations: 121.4 kB / 279 MB, free: 11.61 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.008654, allocations: 156.7 kB / 279.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.008656, allocations: 0 / 279.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002116/0.008868, allocations: 173.3 kB / 279.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.008883, allocations: 4 kB / 279.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.00889, allocations: 7.938 kB / 279.3 MB, free: 11.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.008907, allocations: 4 kB / 279.3 MB, free: 11.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.009039, allocations: 43.97 kB / 279.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/0.009051, allocations: 7.938 kB / 279.4 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.426e-05/0.009095, allocations: 15.89 kB / 279.4 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.009109, allocations: 20.22 kB / 279.4 MB, free: 11.13 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 0.0001033/0.009213, allocations: 178.5 kB / 279.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.399e-05/0.009237, allocations: 19.91 kB / 279.6 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002477/0.009484, allocations: 173.4 kB / 279.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.009487, allocations: 0 / 279.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.009492, allocations: 0 / 279.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.009497, allocations: 0 / 279.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005615/0.01006, allocations: 469.1 kB / 280.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.01006, allocations: 0 / 280.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.528e-05/0.01012, allocations: 11.98 kB / 280.3 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.01012, allocations: 8 kB / 280.3 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.01013, allocations: 0 / 280.3 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.01013, allocations: 0 / 280.3 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.01014, allocations: 11.88 kB / 280.3 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003034/0.01044, allocations: 355.7 kB / 280.6 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.094e-05/0.01045, allocations: 11.91 kB / 280.6 MB, free: 9.844 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.624e-05/0.01048, allocations: 8 kB / 280.6 MB, free: 9.836 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.924e-05/0.01055, allocations: 19.98 kB / 280.7 MB, free: 9.816 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.614e-05/0.01059, allocations: 15.91 kB / 280.7 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.0106, allocations: 4 kB / 280.7 MB, free: 9.797 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.08e-05/0.01066, allocations: 151.2 kB / 280.8 MB, free: 9.648 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01066, allocations: 0 / 280.8 MB, free: 9.648 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001823/0.01085, allocations: 31.94 kB / 280.9 MB, free: 9.617 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 9.698e-05/0.01094, allocations: 112 kB / 281 MB, free: 9.504 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001721/0.01112, allocations: 99.52 kB / 281.1 MB, free: 9.402 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.01112, allocations: 0 / 281.1 MB, free: 9.402 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.799e-05/0.01119, allocations: 55.53 kB / 281.1 MB, free: 9.348 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001737/0.01136, allocations: 20.23 kB / 281.1 MB, free: 9.328 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006605/0.01202, allocations: 302.7 kB / 281.4 MB, free: 9.004 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.725e-05/0.01207, allocations: 71.78 kB / 281.5 MB, free: 8.914 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.962e-05/0.0121, allocations: 9.141 kB / 281.5 MB, free: 8.906 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.624e-05/0.01213, allocations: 20.5 kB / 281.5 MB, free: 8.887 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01213, allocations: 0 / 281.5 MB, free: 8.887 MB / 266.7 MB Notification: Performance of Templates: time 0.00294/0.01507, allocations: 1.257 MB / 282.8 MB, free: 7.645 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 -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: 4.088326695142314]