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.001348/0.001348, allocations: 103.6 kB / 21.19 MB, free: 0.5234 MB / 14.72 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.001537/0.001537, allocations: 214.8 kB / 24.48 MB, free: 3.836 MB / 14.72 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 1.618/1.618, allocations: 230.5 MB / 258.1 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001982/0.001982, allocations: 63.89 kB / 379 MB, free: 2.398 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3055, allocations: 53.41 MB / 432.4 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003267/0.3088, allocations: 1.681 MB / 434.1 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.3101, allocations: 0.631 MB / 434.7 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.894e-05/0.3102, allocations: 7.938 kB / 434.7 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001402/0.3103, allocations: 23.8 kB / 434.7 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.228e-05/0.3104, allocations: 23.78 kB / 434.8 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003201/0.3107, allocations: 79.78 kB / 434.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002214/0.3109, allocations: 151.6 kB / 435 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.3111, allocations: 21.62 kB / 435 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001689/0.3112, allocations: 67.77 kB / 435.1 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/0.3113, allocations: 59.73 kB / 435.1 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.888e-05/0.3114, allocations: 12 kB / 435.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.659e-05/0.3114, allocations: 24 kB / 435.2 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.03e-05/0.3115, allocations: 35.89 kB / 435.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.114e-05/0.3116, allocations: 55.72 kB / 435.2 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002215/0.3118, allocations: 133.2 kB / 435.4 MB, free: 3.516 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3118, allocations: 0 / 435.4 MB, free: 3.516 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3118, allocations: 3.938 kB / 435.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.3118, allocations: 0 / 435.4 MB, free: 3.512 MB / 334.1 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.0007936/0.3126, allocations: 421.2 kB / 435.8 MB, free: 3.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.3126, allocations: 11.98 kB / 435.8 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002797/0.3129, allocations: 40.81 kB / 435.8 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003368/0.3132, allocations: 162.8 kB / 436 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.6e-05/0.3133, allocations: 8.375 kB / 436 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.05e-05/0.3133, allocations: 12.12 kB / 436 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004691/0.3138, allocations: 164.2 kB / 436.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.3138, allocations: 0 / 436.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.157e-05/0.3138, allocations: 3.984 kB / 436.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.3138, allocations: 8 kB / 436.2 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003421/0.3142, allocations: 95.91 kB / 436.3 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000701/0.3149, allocations: 336.1 kB / 436.6 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005541/0.3154, allocations: 190.4 kB / 436.8 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002848/0.3157, allocations: 92.78 kB / 436.9 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.3157, allocations: 3.938 kB / 436.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004187/0.3162, allocations: 163.3 kB / 437.1 MB, free: 1.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 2.064e-06/0.3162, allocations: 0 / 437.1 MB, free: 1.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009942/0.3172, allocations: 356.5 kB / 437.4 MB, free: 1.359 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.3172, allocations: 59.34 kB / 437.5 MB, free: 1.289 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.3173, allocations: 153.7 kB / 437.6 MB, free: 1.129 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.533e-05/0.3174, allocations: 37.64 kB / 437.7 MB, free: 1.086 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.461e-05/0.3175, allocations: 104.5 kB / 437.8 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.759e-05/0.3175, allocations: 39.69 kB / 437.8 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.284e-05/0.3176, allocations: 49.69 kB / 437.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.3177, allocations: 322.8 kB / 438.2 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.3178, allocations: 47.97 kB / 438.2 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/0.318, allocations: 113.2 kB / 438.3 MB, free: 384 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002867/0.3183, allocations: 176.4 kB / 438.5 MB, free: 176 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3183, allocations: 0 / 438.5 MB, free: 176 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003838/0.3187, allocations: 213.2 kB / 438.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.3187, allocations: 8 kB / 438.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.3187, allocations: 0 / 438.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.3187, allocations: 4 kB / 438.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.3189, allocations: 35.92 kB / 438.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.3189, allocations: 11.92 kB / 438.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.257e-05/0.319, allocations: 20.17 kB / 438.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.319, allocations: 12 kB / 438.8 MB, free: 15.87 MB / 350.1 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.0001359/0.3192, allocations: 135.5 kB / 438.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.3192, allocations: 15.89 kB / 438.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007384/0.3199, allocations: 278.2 kB / 439.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.3199, allocations: 7.938 kB / 439.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.3199, allocations: 3.938 kB / 439.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3199, allocations: 0 / 439.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009477/0.3209, allocations: 0.5018 MB / 439.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.3209, allocations: 0 / 439.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.873e-05/0.321, allocations: 15.98 kB / 439.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.321, allocations: 0 / 439.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.753e-05/0.321, allocations: 15.92 kB / 439.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.321, allocations: 4 kB / 439.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.321, allocations: 0 / 439.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.3221, allocations: 478.2 kB / 440.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.299e-05/0.3221, allocations: 15.92 kB / 440.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.154e-05/0.3221, allocations: 11.94 kB / 440.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001924/0.3223, allocations: 32.03 kB / 440.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.847e-05/0.3224, allocations: 11.97 kB / 440.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.3224, allocations: 8 kB / 440.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.479e-05/0.3225, allocations: 110.8 kB / 440.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3225, allocations: 0 / 440.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002716/0.3227, allocations: 28 kB / 440.4 MB, free: 14.16 MB / 350.1 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.0001413/0.3229, allocations: 107.2 kB / 440.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004379/0.3233, allocations: 163.7 kB / 440.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3233, allocations: 0 / 440.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002702/0.3236, allocations: 87.86 kB / 440.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002424/0.3238, allocations: 8.562 kB / 440.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008186/0.3246, allocations: 370.3 kB / 441.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/0.3248, allocations: 97.86 kB / 441.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.049e-05/0.3248, allocations: 15.44 kB / 441.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3248, allocations: 0 / 441.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of Templates: time 0.00359/0.3284, allocations: 1.688 MB / 443 MB, free: 11.57 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/DemonstrateSignalExtrema/DemonstrateSignalExtrema.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 8.572722563985735]