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.001643/0.001643, allocations: 119.4 kB / 17.79 MB, free: 5.285 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.001793/0.001793, allocations: 200.3 kB / 20.74 MB, free: 2.344 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.552/1.552, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001577/0.001577, allocations: 51.86 kB / 373.5 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1175, allocations: 53.33 MB / 426.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003784/0.1213, allocations: 1.739 MB / 428.5 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.1228, allocations: 0.6739 MB / 429.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001509/0.1229, allocations: 3.938 kB / 429.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000156/0.1231, allocations: 11.88 kB / 429.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.496e-05/0.1232, allocations: 19.8 kB / 429.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004563/0.1236, allocations: 83.77 kB / 429.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002845/0.1239, allocations: 163.5 kB / 429.5 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.124, allocations: 21.44 kB / 429.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002429/0.1243, allocations: 63.83 kB / 429.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001379/0.1244, allocations: 67.73 kB / 429.6 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.19e-05/0.1245, allocations: 12 kB / 429.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.233e-05/0.1245, allocations: 24 kB / 429.7 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.597e-05/0.1246, allocations: 39.83 kB / 429.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.497e-05/0.1247, allocations: 59.72 kB / 429.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002579/0.1249, allocations: 139.4 kB / 429.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1249, allocations: 0 / 429.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1249, allocations: 8 kB / 429.9 MB, free: 1.168 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.1249, allocations: 0 / 429.9 MB, free: 1.168 MB / 350.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.0008739/0.1258, allocations: 494.3 kB / 430.4 MB, free: 0.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.1259, allocations: 8.031 kB / 430.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000303/0.1262, allocations: 32.83 kB / 430.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003251/0.1265, allocations: 216.7 kB / 430.6 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/0.1265, allocations: 12.38 kB / 430.7 MB, free: 332 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.008e-05/0.1266, allocations: 16.06 kB / 430.7 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005071/0.1271, allocations: 167.9 kB / 430.8 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.1271, allocations: 0 / 430.8 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.078e-05/0.1271, allocations: 0 / 430.8 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.1271, allocations: 4 kB / 430.8 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003871/0.1275, allocations: 103.8 kB / 430.9 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.273/0.4005, allocations: 411.2 kB / 431.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006332/0.4011, allocations: 186.5 kB / 431.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003/0.4014, allocations: 88.25 kB / 431.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.4014, allocations: 6.875 kB / 431.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004789/0.4019, allocations: 179 kB / 431.8 MB, free: 11.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.475e-06/0.4019, allocations: 1.875 kB / 431.8 MB, free: 11.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001104/0.403, allocations: 335.3 kB / 432.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/0.4031, allocations: 62.09 kB / 432.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.4032, allocations: 150.6 kB / 432.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.4032, allocations: 31.89 kB / 432.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.029e-05/0.4033, allocations: 102.6 kB / 432.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.909e-05/0.4033, allocations: 44.91 kB / 432.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.509e-05/0.4034, allocations: 46.69 kB / 432.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.507e-05/0.4034, allocations: 333.6 kB / 432.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001199/0.4036, allocations: 47.47 kB / 432.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.4037, allocations: 114.9 kB / 433 MB, free: 10.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002863/0.404, allocations: 172.3 kB / 433.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.404, allocations: 0 / 433.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003557/0.4043, allocations: 204.3 kB / 433.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.4044, allocations: 9.469 kB / 433.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.4044, allocations: 6.188 kB / 433.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.4044, allocations: 4.594 kB / 433.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.4046, allocations: 33.42 kB / 433.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.4046, allocations: 9.953 kB / 433.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.694e-05/0.4047, allocations: 18.75 kB / 433.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.4047, allocations: 7.844 kB / 433.5 MB, free: 10.28 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.0001078/0.4048, allocations: 142.6 kB / 433.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.083e-05/0.4048, allocations: 9.484 kB / 433.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008006/0.4056, allocations: 276.4 kB / 433.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.4057, allocations: 2.156 kB / 433.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.4057, allocations: 5.031 kB / 433.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.4057, allocations: 2.344 kB / 433.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.4067, allocations: 0.5725 MB / 434.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.4067, allocations: 1.594 kB / 434.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000107/0.4068, allocations: 15.42 kB / 434.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.4068, allocations: 1.969 kB / 434.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/0.4069, allocations: 9.625 kB / 434.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.4069, allocations: 4.5 kB / 434.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.4069, allocations: 5.5 kB / 434.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.4079, allocations: 474.3 kB / 435 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.927e-05/0.408, allocations: 90.5 kB / 435.1 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.342e-05/0.408, allocations: 7.125 kB / 435.1 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.4082, allocations: 34.59 kB / 435.1 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.94e-05/0.4083, allocations: 15.61 kB / 435.1 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.4083, allocations: 10.94 kB / 435.1 MB, free: 9.559 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.376e-05/0.4084, allocations: 109.8 kB / 435.3 MB, free: 9.484 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4084, allocations: 0 / 435.3 MB, free: 9.484 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003104/0.4087, allocations: 28.8 kB / 435.3 MB, free: 9.484 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.0001254/0.4088, allocations: 109.1 kB / 435.4 MB, free: 9.398 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000536/0.4093, allocations: 163.8 kB / 435.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4094, allocations: 0 / 435.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002824/0.4096, allocations: 84.19 kB / 435.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002806/0.4099, allocations: 11.16 kB / 435.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007996/0.4107, allocations: 333.6 kB / 436 MB, free: 9.199 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001524/0.4109, allocations: 0.7128 MB / 436.7 MB, free: 8.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.89e-05/0.4109, allocations: 15.5 kB / 436.7 MB, free: 8.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.314e-05/0.411, allocations: 18.98 kB / 436.7 MB, free: 8.492 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.411, allocations: 0 / 436.7 MB, free: 8.492 MB / 350.1 MB Notification: Performance of Templates: time 0.004756/0.4157, allocations: 1.254 MB / 438 MB, free: 8.414 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/DemonstrateSignalExtrema/DemonstrateSignalExtrema.csv","/var/lib/jenkins/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: 6.2350364699959755]