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.001158/0.001158, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 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.004093/0.004093, allocations: 161 kB / 24.7 MB, free: 9.441 MB / 18.57 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 0.8601/0.8601, allocations: 177 MB / 204.9 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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 2.215e-06/2.215e-06, allocations: 0 / 325.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.23e-05/3.452e-05, allocations: 2.281 kB / 325.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003668/0.003703, allocations: 1.696 MB / 327.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.005456, allocations: 0.6349 MB / 328.1 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000136/0.005592, allocations: 4 kB / 328.1 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.005762, allocations: 15.75 kB / 328.1 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.817e-05/0.00581, allocations: 15.84 kB / 328.1 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003984/0.006208, allocations: 91.64 kB / 328.2 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001912/0.0064, allocations: 159.5 kB / 328.4 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/0.006559, allocations: 21.61 kB / 328.4 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002321/0.006791, allocations: 91.78 kB / 328.5 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.286e-05/0.006884, allocations: 51.86 kB / 328.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.581e-05/0.00691, allocations: 12 kB / 328.5 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.175e-05/0.006972, allocations: 19.98 kB / 328.6 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.307e-05/0.007005, allocations: 43.78 kB / 328.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.223e-05/0.007057, allocations: 43.88 kB / 328.7 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.007291, allocations: 143.6 kB / 328.8 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.007297, allocations: 0 / 328.8 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.007301, allocations: 4 kB / 328.8 MB, free: 12.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.007308, allocations: 4 kB / 328.8 MB, free: 12.17 MB / 298.7 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.0006935/0.008001, allocations: 417.2 kB / 329.2 MB, free: 11.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.008054, allocations: 11.98 kB / 329.2 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.008226, allocations: 32.83 kB / 329.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003164/0.008542, allocations: 154.1 kB / 329.4 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.988e-05/0.008572, allocations: 12.38 kB / 329.4 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.138e-05/0.008603, allocations: 12.31 kB / 329.4 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002988/0.008902, allocations: 170 kB / 329.6 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.008915, allocations: 3.938 kB / 329.6 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.008929, allocations: 0 / 329.6 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.00894, allocations: 7.984 kB / 329.6 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001886/0.009128, allocations: 103.9 kB / 329.7 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005422/0.009671, allocations: 336.2 kB / 330 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003737/0.01004, allocations: 190.4 kB / 330.2 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/0.01019, allocations: 84.78 kB / 330.3 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.01021, allocations: 4 kB / 330.3 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002858/0.0105, allocations: 174.2 kB / 330.5 MB, free: 10.37 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 2.033e-06/0.0105, allocations: 3.938 kB / 330.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006267/0.01113, allocations: 349.3 kB / 330.8 MB, free: 10.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.01117, allocations: 59.39 kB / 330.9 MB, free: 9.945 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.854e-05/0.01126, allocations: 148.8 kB / 331 MB, free: 9.793 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.01128, allocations: 33.69 kB / 331.1 MB, free: 9.754 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.209e-05/0.01133, allocations: 100.5 kB / 331.2 MB, free: 9.652 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.572e-05/0.01137, allocations: 47.67 kB / 331.2 MB, free: 9.605 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.137e-05/0.01142, allocations: 45.7 kB / 331.2 MB, free: 9.555 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.487e-05/0.01151, allocations: 330.8 kB / 331.6 MB, free: 9.223 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.433e-05/0.01158, allocations: 47.97 kB / 331.6 MB, free: 9.176 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.954e-05/0.01167, allocations: 112.5 kB / 331.7 MB, free: 9.035 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000169/0.01184, allocations: 176.4 kB / 331.9 MB, free: 8.832 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.01184, allocations: 0 / 331.9 MB, free: 8.832 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002215/0.01206, allocations: 201.3 kB / 332.1 MB, free: 8.629 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.01208, allocations: 15.55 kB / 332.1 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.01208, allocations: 4 kB / 332.1 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.0121, allocations: 7.938 kB / 332.1 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.0122, allocations: 31.98 kB / 332.2 MB, free: 8.574 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/0.01221, allocations: 7.938 kB / 332.2 MB, free: 8.566 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.867e-05/0.01226, allocations: 19.88 kB / 332.2 MB, free: 8.547 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/0.01227, allocations: 11.94 kB / 332.2 MB, free: 8.535 MB / 298.7 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.0001035/0.01238, allocations: 135.8 kB / 332.3 MB, free: 8.395 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.561e-05/0.01239, allocations: 11.91 kB / 332.3 MB, free: 8.383 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004362/0.01283, allocations: 278.2 kB / 332.6 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/0.01283, allocations: 7.984 kB / 332.6 MB, free: 8.102 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.01284, allocations: 0 / 332.6 MB, free: 8.102 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.01284, allocations: 0 / 332.6 MB, free: 8.102 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005185/0.01336, allocations: 0.5087 MB / 333.1 MB, free: 7.559 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.01336, allocations: 0 / 333.1 MB, free: 7.559 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.158e-05/0.01342, allocations: 15.98 kB / 333.1 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.01342, allocations: 0 / 333.1 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.01344, allocations: 11.98 kB / 333.2 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.01344, allocations: 4 kB / 333.2 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.01344, allocations: 3.938 kB / 333.2 MB, free: 7.523 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005569/0.014, allocations: 479.1 kB / 333.6 MB, free: 7.039 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.386e-05/0.01401, allocations: 15.89 kB / 333.6 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.718e-05/0.01404, allocations: 15.98 kB / 333.7 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.956e-05/0.01413, allocations: 23.97 kB / 333.7 MB, free: 6.984 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.255e-05/0.01417, allocations: 15.92 kB / 333.7 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.01418, allocations: 7.984 kB / 333.7 MB, free: 6.961 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.117e-05/0.01424, allocations: 107.2 kB / 333.8 MB, free: 6.855 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01424, allocations: 8 kB / 333.8 MB, free: 6.848 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001768/0.01441, allocations: 31.94 kB / 333.9 MB, free: 6.816 MB / 298.7 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 9.007e-05/0.0145, allocations: 100.4 kB / 333.9 MB, free: 6.707 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002546/0.01476, allocations: 160.1 kB / 334.1 MB, free: 6.551 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.01476, allocations: 4.188 kB / 334.1 MB, free: 6.547 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001324/0.01489, allocations: 91.86 kB / 334.2 MB, free: 6.457 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001698/0.01506, allocations: 8 kB / 334.2 MB, free: 6.449 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005255/0.01559, allocations: 338.5 kB / 334.5 MB, free: 6.086 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.011e-05/0.01565, allocations: 93.67 kB / 334.6 MB, free: 5.969 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.947e-05/0.01569, allocations: 24.48 kB / 334.7 MB, free: 5.945 MB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01569, allocations: 0 / 334.7 MB, free: 5.945 MB / 298.7 MB Notification: Performance of Templates: time 0.002192/0.01788, allocations: 1.703 MB / 336.4 MB, free: 4.242 MB / 298.7 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/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_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.029967186972499]