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.001666/0.001666, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001911/0.001911, allocations: 209.8 kB / 24.49 MB, free: 4.133 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.461/1.461, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.001753/0.001753, allocations: 55.92 kB / 379 MB, free: 2.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3286, allocations: 53.36 MB / 432.4 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003905/0.3325, allocations: 1.741 MB / 434.1 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.3339, allocations: 0.6817 MB / 434.8 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.334, allocations: 7.938 kB / 434.8 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.3341, allocations: 11.86 kB / 434.8 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.718e-05/0.3341, allocations: 15.75 kB / 434.8 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003508/0.3345, allocations: 95.75 kB / 434.9 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002244/0.3347, allocations: 159.5 kB / 435.1 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.3349, allocations: 17.64 kB / 435.1 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.335, allocations: 67.81 kB / 435.2 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001254/0.3352, allocations: 63.69 kB / 435.2 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.769e-05/0.3352, allocations: 12 kB / 435.2 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.419e-05/0.3353, allocations: 31.92 kB / 435.3 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.994e-05/0.3353, allocations: 31.91 kB / 435.3 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.926e-05/0.3354, allocations: 59.72 kB / 435.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002319/0.3356, allocations: 144.7 kB / 435.5 MB, free: 3.812 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3356, allocations: 4 kB / 435.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.3356, allocations: 0 / 435.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.3356, allocations: 0 / 435.5 MB, free: 3.809 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.0007718/0.3364, allocations: 417.2 kB / 435.9 MB, free: 3.359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.3364, allocations: 8.031 kB / 435.9 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002418/0.3367, allocations: 32.83 kB / 436 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003002/0.337, allocations: 156.9 kB / 436.1 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.745e-05/0.337, allocations: 16.36 kB / 436.1 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.033e-05/0.3371, allocations: 16.12 kB / 436.1 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000435/0.3375, allocations: 161.5 kB / 436.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.3375, allocations: 0 / 436.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.784e-05/0.3375, allocations: 0 / 436.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.3375, allocations: 0 / 436.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003253/0.3379, allocations: 103.9 kB / 436.4 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007488/0.3386, allocations: 399.4 kB / 436.8 MB, free: 2.414 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00054/0.3391, allocations: 178.4 kB / 437 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002699/0.3394, allocations: 96.72 kB / 437.1 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.498e-05/0.3394, allocations: 0 / 437.1 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004132/0.3398, allocations: 171.2 kB / 437.2 MB, free: 1.953 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.312e-06/0.3398, allocations: 4 kB / 437.2 MB, free: 1.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009876/0.3408, allocations: 351.9 kB / 437.6 MB, free: 1.602 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/0.3409, allocations: 67.38 kB / 437.6 MB, free: 1.523 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001506/0.341, allocations: 143 kB / 437.8 MB, free: 1.375 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.3411, allocations: 33.7 kB / 437.8 MB, free: 1.336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.894e-05/0.3411, allocations: 108.5 kB / 437.9 MB, free: 1.227 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.463e-05/0.3412, allocations: 43.69 kB / 438 MB, free: 1.184 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.749e-05/0.3413, allocations: 41.7 kB / 438 MB, free: 1.137 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.3414, allocations: 330.8 kB / 438.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.3415, allocations: 47.91 kB / 438.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.3417, allocations: 116.5 kB / 438.5 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002965/0.342, allocations: 172.4 kB / 438.7 MB, free: 424 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/0.342, allocations: 7.984 kB / 438.7 MB, free: 416 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003605/0.3424, allocations: 201.2 kB / 438.9 MB, free: 208 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.3424, allocations: 11.03 kB / 438.9 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.3424, allocations: 8 kB / 438.9 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.262e-05/0.3424, allocations: 7.938 kB / 438.9 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.3426, allocations: 35.97 kB / 438.9 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.3426, allocations: 7.938 kB / 438.9 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.341e-05/0.3427, allocations: 23.88 kB / 439 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.3427, allocations: 8 kB / 439 MB, free: 108 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.0001499/0.3429, allocations: 135.5 kB / 439.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.892e-05/0.3429, allocations: 15.91 kB / 439.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006965/0.3436, allocations: 270.2 kB / 439.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3436, allocations: 7.938 kB / 439.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.3436, allocations: 0 / 439.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.3436, allocations: 7.984 kB / 439.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009684/0.3446, allocations: 0.5403 MB / 439.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.3446, allocations: 3.938 kB / 439.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.3447, allocations: 19.98 kB / 440 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3447, allocations: 0 / 440 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.3447, allocations: 7.984 kB / 440 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3447, allocations: 0 / 440 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3447, allocations: 0 / 440 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009879/0.3457, allocations: 470.1 kB / 440.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.333e-05/0.3457, allocations: 15.88 kB / 440.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.198e-05/0.3458, allocations: 8 kB / 440.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/0.346, allocations: 36.02 kB / 440.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/0.346, allocations: 11.98 kB / 440.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.674e-05/0.346, allocations: 7.984 kB / 440.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.582e-05/0.3461, allocations: 105.5 kB / 440.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3461, allocations: 0 / 440.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002846/0.3464, allocations: 39.92 kB / 440.6 MB, free: 14.35 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.0001344/0.3465, allocations: 103.2 kB / 440.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004403/0.347, allocations: 163.7 kB / 440.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.347, allocations: 4 kB / 440.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002403/0.3472, allocations: 84.44 kB / 441 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002477/0.3475, allocations: 15.92 kB / 441 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008436/0.3483, allocations: 366.4 kB / 441.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003466/0.3486, allocations: 0.7045 MB / 442.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.22e-05/0.3487, allocations: 19.42 kB / 442.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3487, allocations: 3.938 kB / 442.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of Templates: time 0.003785/0.3525, allocations: 1.647 MB / 443.7 MB, free: 11.19 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.84961472894065]