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.001778/0.001778, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.002117/0.002117, allocations: 217.7 kB / 24.5 MB, free: 4.133 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.467/1.467, allocations: 230.5 MB / 258.1 MB, free: 8.004 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.001879/0.001879, allocations: 63.89 kB / 379 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2404, allocations: 53.41 MB / 432.4 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003081/0.2435, allocations: 1.739 MB / 434.2 MB, free: 5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001186/0.2447, allocations: 0.6817 MB / 434.9 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.158e-05/0.2447, allocations: 3.938 kB / 434.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.2449, allocations: 11.81 kB / 434.9 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.936e-05/0.2449, allocations: 27.72 kB / 434.9 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003074/0.2452, allocations: 87.78 kB / 435 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002179/0.2454, allocations: 147.6 kB / 435.1 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.2455, allocations: 25.62 kB / 435.2 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.2457, allocations: 67.77 kB / 435.2 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.2458, allocations: 67.67 kB / 435.3 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.609e-05/0.2459, allocations: 16 kB / 435.3 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.043e-05/0.2459, allocations: 20 kB / 435.3 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.811e-05/0.246, allocations: 31.89 kB / 435.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.13e-05/0.246, allocations: 63.72 kB / 435.4 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002108/0.2462, allocations: 139 kB / 435.6 MB, free: 3.617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2462, allocations: 4 kB / 435.6 MB, free: 3.613 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2462, allocations: 0 / 435.6 MB, free: 3.613 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.2463, allocations: 0 / 435.6 MB, free: 3.613 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.0007003/0.247, allocations: 422.9 kB / 436 MB, free: 3.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.247, allocations: 8.031 kB / 436 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002337/0.2472, allocations: 36.81 kB / 436 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002427/0.2475, allocations: 158.8 kB / 436.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.2475, allocations: 12.38 kB / 436.2 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.986e-05/0.2475, allocations: 16.12 kB / 436.2 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004242/0.248, allocations: 161.5 kB / 436.4 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.248, allocations: 0 / 436.4 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/0.248, allocations: 4 kB / 436.4 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.248, allocations: 4 kB / 436.4 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003349/0.2483, allocations: 103.8 kB / 436.5 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006842/0.249, allocations: 387.5 kB / 436.8 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005347/0.2496, allocations: 186.4 kB / 437 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002665/0.2498, allocations: 92.72 kB / 437.1 MB, free: 1.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.2498, allocations: 11.98 kB / 437.1 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004168/0.2503, allocations: 167.2 kB / 437.3 MB, free: 1.742 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.653e-06/0.2503, allocations: 4 kB / 437.3 MB, free: 1.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009659/0.2512, allocations: 348.2 kB / 437.6 MB, free: 1.395 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.19e-05/0.2513, allocations: 59.34 kB / 437.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.2514, allocations: 153.7 kB / 437.8 MB, free: 1.164 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.674e-05/0.2514, allocations: 29.7 kB / 437.9 MB, free: 1.129 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.321e-05/0.2515, allocations: 108.5 kB / 438 MB, free: 1.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.243e-05/0.2516, allocations: 39.69 kB / 438 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.768e-05/0.2516, allocations: 45.7 kB / 438.1 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2518, allocations: 326.8 kB / 438.4 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.2519, allocations: 47.97 kB / 438.4 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.2521, allocations: 109.2 kB / 438.5 MB, free: 428 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000287/0.2523, allocations: 176.4 kB / 438.7 MB, free: 220 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2523, allocations: 0 / 438.7 MB, free: 220 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003758/0.2527, allocations: 213.2 kB / 438.9 MB, free: 0 / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.224e-05/0.2528, allocations: 10.67 kB / 438.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.2528, allocations: 4 kB / 438.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.2528, allocations: 7.938 kB / 438.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.2529, allocations: 35.88 kB / 439 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.253, allocations: 7.984 kB / 439 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.377e-05/0.2531, allocations: 15.89 kB / 439 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.2531, allocations: 12 kB / 439 MB, free: 15.91 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.0001207/0.2532, allocations: 139.9 kB / 439.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.764e-05/0.2532, allocations: 11.91 kB / 439.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006821/0.2539, allocations: 278.2 kB / 439.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.2539, allocations: 3.938 kB / 439.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.2539, allocations: 0 / 439.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.2539, allocations: 4 kB / 439.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009518/0.2549, allocations: 0.5364 MB / 440 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.2549, allocations: 3.938 kB / 440 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/0.255, allocations: 19.98 kB / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.255, allocations: 0 / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.215e-05/0.255, allocations: 11.98 kB / 440 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.255, allocations: 0 / 440 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.255, allocations: 0 / 440 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009835/0.256, allocations: 474.8 kB / 440.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.582e-05/0.256, allocations: 19.86 kB / 440.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.875e-05/0.2561, allocations: 8 kB / 440.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001826/0.2562, allocations: 28.03 kB / 440.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.759e-05/0.2563, allocations: 15.97 kB / 440.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.2563, allocations: 7.938 kB / 440.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.841e-05/0.2564, allocations: 110.2 kB / 440.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2564, allocations: 0 / 440.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002783/0.2567, allocations: 28 kB / 440.7 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.000133/0.2568, allocations: 115 kB / 440.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004461/0.2572, allocations: 163.7 kB / 441 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2572, allocations: 0 / 441 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002529/0.2575, allocations: 84.48 kB / 441 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.0002395/0.2577, allocations: 15.94 kB / 441 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008302/0.2586, allocations: 366.4 kB / 441.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.2589, allocations: 0.7084 MB / 442.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.602e-05/0.259, allocations: 15.44 kB / 442.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.259, allocations: 0 / 442.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of Templates: time 0.00355/0.2625, allocations: 1.644 MB / 443.8 MB, free: 11 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.606723117874935]