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.001355/0.001355, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001534/0.001534, allocations: 209.3 kB / 23.73 MB, free: 4.523 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.675/1.675, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001632/0.001632, allocations: 51.92 kB / 378.2 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3317, allocations: 53.35 MB / 431.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.00362/0.3353, allocations: 1.692 MB / 433.3 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001423/0.3368, allocations: 0.6311 MB / 433.9 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.52e-05/0.3369, allocations: 7.938 kB / 433.9 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.337, allocations: 15.81 kB / 433.9 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.879e-05/0.3371, allocations: 19.78 kB / 433.9 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004107/0.3375, allocations: 83.78 kB / 434 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002893/0.3378, allocations: 147.6 kB / 434.1 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.3379, allocations: 25.62 kB / 434.2 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002425/0.3382, allocations: 71.77 kB / 434.2 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.3383, allocations: 67.73 kB / 434.3 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.251e-05/0.3383, allocations: 12 kB / 434.3 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.01e-05/0.3384, allocations: 16 kB / 434.3 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.363e-05/0.3385, allocations: 39.89 kB / 434.4 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.916e-05/0.3386, allocations: 59.7 kB / 434.4 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000276/0.3388, allocations: 129.8 kB / 434.6 MB, free: 3.703 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3388, allocations: 0 / 434.6 MB, free: 3.703 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3389, allocations: 0 / 434.6 MB, free: 3.703 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.186e-06/0.3389, allocations: 7.938 kB / 434.6 MB, free: 3.695 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.0009862/0.3398, allocations: 425.1 kB / 435 MB, free: 3.238 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/0.3399, allocations: 8.031 kB / 435 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002766/0.3402, allocations: 36.81 kB / 435 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.3405, allocations: 150.9 kB / 435.2 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.154e-05/0.3405, allocations: 12.38 kB / 435.2 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.65e-05/0.3406, allocations: 20.11 kB / 435.2 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004617/0.341, allocations: 161.5 kB / 435.4 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.341, allocations: 3.938 kB / 435.4 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.207e-05/0.341, allocations: 4 kB / 435.4 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.3411, allocations: 4 kB / 435.4 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003292/0.3414, allocations: 99.91 kB / 435.5 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007393/0.3421, allocations: 336.1 kB / 435.8 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005778/0.3427, allocations: 190.4 kB / 436 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002878/0.343, allocations: 80.78 kB / 436.1 MB, free: 2.082 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.343, allocations: 4 kB / 436.1 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004804/0.3435, allocations: 167.3 kB / 436.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.903e-06/0.3435, allocations: 0 / 436.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001046/0.3445, allocations: 363.8 kB / 436.6 MB, free: 1.543 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/0.3446, allocations: 55.41 kB / 436.6 MB, free: 1.477 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001563/0.3448, allocations: 156.7 kB / 436.8 MB, free: 1.316 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/0.3448, allocations: 29.7 kB / 436.8 MB, free: 1.281 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.015e-05/0.3449, allocations: 108.5 kB / 436.9 MB, free: 1.172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.006e-05/0.3449, allocations: 39.69 kB / 437 MB, free: 1.133 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.357e-05/0.345, allocations: 45.7 kB / 437 MB, free: 1.082 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.3452, allocations: 326.8 kB / 437.3 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.3453, allocations: 43.97 kB / 437.4 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.3455, allocations: 124.5 kB / 437.5 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003182/0.3458, allocations: 180.2 kB / 437.7 MB, free: 360 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3458, allocations: 0 / 437.7 MB, free: 360 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003866/0.3462, allocations: 197.3 kB / 437.9 MB, free: 156 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.3462, allocations: 8 kB / 437.9 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.3462, allocations: 288 / 437.9 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.3463, allocations: 12 kB / 437.9 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001848/0.3464, allocations: 43.91 kB / 437.9 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.3464, allocations: 7.938 kB / 437.9 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.045e-05/0.3465, allocations: 11.89 kB / 438 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.947e-05/0.3466, allocations: 12 kB / 438 MB, free: 60 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.0001472/0.3467, allocations: 139.5 kB / 438.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.879e-05/0.3467, allocations: 11.91 kB / 438.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007238/0.3475, allocations: 282.2 kB / 438.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3475, allocations: 4 kB / 438.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.757e-05/0.3475, allocations: 3.938 kB / 438.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3475, allocations: 3.938 kB / 438.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009535/0.3484, allocations: 0.5088 MB / 438.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3485, allocations: 0 / 438.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.3486, allocations: 19.92 kB / 438.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.3486, allocations: 0 / 438.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.204e-05/0.3486, allocations: 7.938 kB / 438.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.3486, allocations: 4 kB / 438.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.3486, allocations: 3.984 kB / 438.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/0.3497, allocations: 479.2 kB / 439.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.227e-05/0.3497, allocations: 11.91 kB / 439.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.048e-05/0.3497, allocations: 11.94 kB / 439.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/0.3499, allocations: 27.95 kB / 439.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.657e-05/0.35, allocations: 7.984 kB / 439.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.368e-05/0.35, allocations: 11.98 kB / 439.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.188e-05/0.3501, allocations: 103.3 kB / 439.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3501, allocations: 0 / 439.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002973/0.3504, allocations: 36 kB / 439.6 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.0001499/0.3506, allocations: 108.5 kB / 439.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000474/0.351, allocations: 163.7 kB / 439.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.351, allocations: 0.5625 kB / 439.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002591/0.3513, allocations: 87.88 kB / 440 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.0002518/0.3516, allocations: 10.81 kB / 440 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008448/0.3524, allocations: 344.7 kB / 440.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001113/0.3525, allocations: 93.88 kB / 440.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.453e-05/0.3526, allocations: 13.08 kB / 440.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.527e-05/0.3526, allocations: 11.44 kB / 440.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3526, allocations: 8 kB / 440.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of Templates: time 0.005933/0.3585, allocations: 1.358 MB / 441.8 MB, free: 12.13 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.134550181217492]