Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001439/0.001439, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 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.001137/0.001137, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.963/0.963, allocations: 177 MB / 204.8 MB, free: 5.254 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.395e-06/2.395e-06, allocations: 0 / 272.9 MB, free: 1.344 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.166e-05/4.405e-05, allocations: 5.266 kB / 272.9 MB, free: 1.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002991/0.003035, allocations: 1.746 MB / 274.6 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.004202, allocations: 0.6543 MB / 275.3 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.004308, allocations: 3.938 kB / 275.3 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001551/0.004463, allocations: 11.86 kB / 275.3 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.289e-05/0.004516, allocations: 27.72 kB / 275.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004329/0.004949, allocations: 95.64 kB / 275.4 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002101/0.005159, allocations: 155.5 kB / 275.6 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.005293, allocations: 17.62 kB / 275.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002382/0.005531, allocations: 95.78 kB / 275.7 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001068/0.005638, allocations: 47.86 kB / 275.7 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.065e-05/0.005668, allocations: 12 kB / 275.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.125e-05/0.00574, allocations: 20 kB / 275.8 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.688e-05/0.005776, allocations: 39.88 kB / 275.8 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.807e-05/0.005835, allocations: 47.83 kB / 275.9 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.00608, allocations: 115.6 kB / 276 MB, free: 14.24 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.006085, allocations: 0 / 276 MB, free: 14.24 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.006087, allocations: 0 / 276 MB, free: 14.24 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.408e-06/0.006096, allocations: 0 / 276 MB, free: 14.24 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.0006077/0.006704, allocations: 0.5073 MB / 276.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.006758, allocations: 11.98 kB / 276.5 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.006925, allocations: 36.83 kB / 276.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.007141, allocations: 160.9 kB / 276.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.007167, allocations: 12.36 kB / 276.7 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.734e-05/0.007204, allocations: 16.38 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000224/0.007428, allocations: 122.8 kB / 276.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.007437, allocations: 3.938 kB / 276.8 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.007455, allocations: 7.984 kB / 276.8 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.007466, allocations: 4 kB / 276.8 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.108e-05/0.007537, allocations: 31.86 kB / 276.9 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005423/0.008079, allocations: 391.5 kB / 277.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001916/0.008271, allocations: 90.95 kB / 277.4 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.122e-05/0.008332, allocations: 27.67 kB / 277.4 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.008358, allocations: 8 kB / 277.4 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001826/0.008541, allocations: 113 kB / 277.5 MB, free: 12.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.673e-06/0.008542, allocations: 0 / 277.5 MB, free: 12.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.000418/0.00896, allocations: 200.6 kB / 277.7 MB, free: 12.37 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.009008, allocations: 55.41 kB / 277.7 MB, free: 12.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.009135, allocations: 205.3 kB / 277.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001176/0.009252, allocations: 37.7 kB / 278 MB, free: 12.04 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.565e-05/0.009328, allocations: 151.2 kB / 278.1 MB, free: 11.89 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.555e-05/0.009373, allocations: 39.69 kB / 278.2 MB, free: 11.85 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.686e-05/0.00943, allocations: 55.36 kB / 278.2 MB, free: 11.79 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.00959, allocations: 0.4922 MB / 278.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.435e-05/0.009635, allocations: 23.98 kB / 278.7 MB, free: 11.26 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.009745, allocations: 124.8 kB / 278.9 MB, free: 11.1 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.009913, allocations: 168.6 kB / 279 MB, free: 10.89 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.009917, allocations: 0 / 279 MB, free: 10.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002204/0.01014, allocations: 169.3 kB / 279.2 MB, free: 10.72 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.01016, allocations: 8.281 kB / 279.2 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.01017, allocations: 4 kB / 279.2 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.583e-05/0.01019, allocations: 4 kB / 279.2 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.01034, allocations: 47.91 kB / 279.3 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.01035, allocations: 0 / 279.3 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.301e-05/0.01041, allocations: 23.89 kB / 279.3 MB, free: 10.63 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.01042, allocations: 15.94 kB / 279.3 MB, free: 10.62 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.0001121/0.01054, allocations: 178.5 kB / 279.5 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.684e-05/0.01056, allocations: 19.91 kB / 279.5 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002738/0.01084, allocations: 170.3 kB / 279.7 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.01084, allocations: 8 kB / 279.7 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.01085, allocations: 0 / 279.7 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.01086, allocations: 0 / 279.7 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004275/0.01128, allocations: 461.2 kB / 280.1 MB, free: 9.742 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.01129, allocations: 3.984 kB / 280.1 MB, free: 9.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.253e-05/0.01135, allocations: 11.94 kB / 280.1 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.01135, allocations: 0 / 280.1 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.01137, allocations: 7.984 kB / 280.1 MB, free: 9.719 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.01137, allocations: 0 / 280.1 MB, free: 9.719 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.01137, allocations: 3.938 kB / 280.1 MB, free: 9.715 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003445/0.01172, allocations: 363.8 kB / 280.5 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.492e-05/0.01173, allocations: 11.91 kB / 280.5 MB, free: 9.328 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.943e-05/0.01176, allocations: 11.98 kB / 280.5 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.587e-05/0.01184, allocations: 15.98 kB / 280.5 MB, free: 9.301 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.019e-05/0.01189, allocations: 11.92 kB / 280.5 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.0119, allocations: 19.86 kB / 280.6 MB, free: 9.27 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.744e-05/0.01196, allocations: 147.2 kB / 280.7 MB, free: 9.125 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01196, allocations: 0 / 280.7 MB, free: 9.125 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001997/0.01216, allocations: 28 kB / 280.7 MB, free: 9.098 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.0001137/0.01227, allocations: 108.3 kB / 280.8 MB, free: 8.984 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001872/0.01246, allocations: 106.4 kB / 280.9 MB, free: 8.879 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.01246, allocations: 4 kB / 280.9 MB, free: 8.875 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.137e-05/0.01253, allocations: 51.59 kB / 281 MB, free: 8.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002009/0.01273, allocations: 19.11 kB / 281 MB, free: 8.805 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008096/0.01354, allocations: 291.3 kB / 281.3 MB, free: 8.492 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.956e-05/0.01359, allocations: 71.84 kB / 281.4 MB, free: 8.402 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.168e-05/0.01362, allocations: 13.14 kB / 281.4 MB, free: 8.391 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.561e-05/0.01367, allocations: 20.5 kB / 281.4 MB, free: 8.371 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01367, allocations: 0 / 281.4 MB, free: 8.371 MB / 266.7 MB Notification: Performance of Templates: time 0.003119/0.01679, allocations: 1.264 MB / 282.7 MB, free: 7.117 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 3.948685538955033]