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.001543/0.001543, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 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.001556/0.001556, allocations: 209 kB / 24.48 MB, free: 3.938 MB / 14.72 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 1.468/1.468, allocations: 230.6 MB / 258.2 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00163/0.00163, allocations: 55.86 kB / 379 MB, free: 2.531 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2419, allocations: 53.36 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003406/0.2453, allocations: 1.677 MB / 434 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.2467, allocations: 0.635 MB / 434.6 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.2469, allocations: 7.938 kB / 434.6 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.247, allocations: 11.86 kB / 434.7 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.83e-05/0.247, allocations: 19.73 kB / 434.7 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003808/0.2474, allocations: 91.77 kB / 434.8 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002326/0.2476, allocations: 151.5 kB / 434.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001391/0.2478, allocations: 25.62 kB / 434.9 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002025/0.248, allocations: 67.81 kB / 435 MB, free: 4 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/0.2481, allocations: 55.75 kB / 435.1 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.096e-05/0.2481, allocations: 15.94 kB / 435.1 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.755e-05/0.2482, allocations: 20 kB / 435.1 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.268e-05/0.2482, allocations: 35.89 kB / 435.1 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.221e-05/0.2483, allocations: 59.7 kB / 435.2 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002247/0.2485, allocations: 137.2 kB / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2485, allocations: 0 / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2485, allocations: 0 / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.2486, allocations: 0 / 435.3 MB, free: 3.691 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.0007927/0.2494, allocations: 421.2 kB / 435.7 MB, free: 3.238 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.2494, allocations: 8.031 kB / 435.7 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002478/0.2496, allocations: 36.77 kB / 435.8 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.2499, allocations: 158.8 kB / 435.9 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.744e-05/0.25, allocations: 16.36 kB / 435.9 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.526e-05/0.25, allocations: 16.12 kB / 436 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004529/0.2505, allocations: 157.5 kB / 436.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.2505, allocations: 0 / 436.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.943e-05/0.2505, allocations: 4 kB / 436.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.2505, allocations: 4 kB / 436.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003403/0.2509, allocations: 99.91 kB / 436.2 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006744/0.2515, allocations: 340.1 kB / 436.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005876/0.2521, allocations: 186.4 kB / 436.7 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002784/0.2524, allocations: 84.03 kB / 436.8 MB, free: 2.082 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.2524, allocations: 4 kB / 436.8 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004351/0.2528, allocations: 179.1 kB / 437 MB, free: 1.891 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 3.807e-06/0.2529, allocations: 3.984 kB / 437 MB, free: 1.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001052/0.2539, allocations: 352 kB / 437.3 MB, free: 1.539 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.254, allocations: 59.39 kB / 437.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.2541, allocations: 152.5 kB / 437.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.2541, allocations: 29.7 kB / 437.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.414e-05/0.2542, allocations: 112.5 kB / 437.7 MB, free: 1.164 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.373e-05/0.2542, allocations: 35.69 kB / 437.7 MB, free: 1.129 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.13e-05/0.2543, allocations: 49.7 kB / 437.8 MB, free: 1.074 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.2545, allocations: 326.8 kB / 438.1 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.2546, allocations: 47.91 kB / 438.1 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.2548, allocations: 120.5 kB / 438.3 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003093/0.2551, allocations: 172.4 kB / 438.4 MB, free: 360 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.2551, allocations: 3.984 kB / 438.4 MB, free: 356 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003933/0.2555, allocations: 205.5 kB / 438.6 MB, free: 144 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.2555, allocations: 8 kB / 438.6 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.2555, allocations: 0 / 438.6 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.945e-05/0.2555, allocations: 4 kB / 438.6 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.2557, allocations: 39.97 kB / 438.7 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.466e-05/0.2557, allocations: 11.88 kB / 438.7 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.2558, allocations: 19.88 kB / 438.7 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.2558, allocations: 8 kB / 438.7 MB, free: 52 kB / 334.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.0001419/0.256, allocations: 131.5 kB / 438.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.067e-05/0.256, allocations: 15.94 kB / 438.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007397/0.2567, allocations: 274.2 kB / 439.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.2568, allocations: 4 kB / 439.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.2568, allocations: 3.938 kB / 439.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.2568, allocations: 7.984 kB / 439.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009752/0.2577, allocations: 0.5048 MB / 439.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2577, allocations: 0 / 439.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001042/0.2578, allocations: 15.98 kB / 439.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.2579, allocations: 4 kB / 439.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.788e-05/0.2579, allocations: 19.86 kB / 439.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.2579, allocations: 0 / 439.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2579, allocations: 0 / 439.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.259, allocations: 481.9 kB / 440.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.228e-05/0.259, allocations: 11.94 kB / 440.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.227e-05/0.259, allocations: 11.94 kB / 440.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/0.2592, allocations: 27.95 kB / 440.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.994e-05/0.2593, allocations: 7.984 kB / 440.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.957e-05/0.2593, allocations: 16.05 kB / 440.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.051e-05/0.2594, allocations: 107.2 kB / 440.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2594, allocations: 0 / 440.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003054/0.2597, allocations: 31.98 kB / 440.4 MB, free: 14.34 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.0001311/0.2598, allocations: 105.1 kB / 440.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004802/0.2603, allocations: 167.8 kB / 440.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2603, allocations: 0 / 440.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002693/0.2606, allocations: 87.86 kB / 440.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002583/0.2608, allocations: 11.98 kB / 440.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008623/0.2617, allocations: 358.8 kB / 441.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.01e-05/0.2618, allocations: 89.88 kB / 441.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.322e-05/0.2619, allocations: 27.36 kB / 441.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2619, allocations: 0 / 441.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of Templates: time 0.003741/0.2656, allocations: 1.684 MB / 442.9 MB, free: 11.76 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.989496557042003]