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.001799/0.001799, allocations: 85.94 kB / 20.68 MB, free: 1.035 MB / 14.72 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.002161/0.002161, allocations: 158.2 kB / 23.95 MB, free: 4.168 MB / 14.72 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 1.484/1.484, allocations: 177 MB / 204.1 MB, free: 9.195 MB / 190.1 MB " [Timeout remaining time 178] 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 1.903e-06/1.903e-06, allocations: 0 / 325 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.733e-05/2.923e-05, allocations: 2.281 kB / 325 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003031/0.003061, allocations: 1.693 MB / 326.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001206/0.004267, allocations: 0.6362 MB / 327.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.726e-05/0.004344, allocations: 1.031 kB / 327.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.774e-05/0.004442, allocations: 16.08 kB / 327.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.86e-05/0.00449, allocations: 21.52 kB / 327.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002969/0.004787, allocations: 91.06 kB / 327.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002017/0.004989, allocations: 151.4 kB / 327.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.005099, allocations: 21 kB / 327.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001895/0.005289, allocations: 100.2 kB / 327.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.296e-05/0.005382, allocations: 48.62 kB / 327.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.85e-05/0.00541, allocations: 12.59 kB / 327.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.93e-05/0.00547, allocations: 22.8 kB / 327.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.266e-05/0.005512, allocations: 32.86 kB / 327.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.361e-05/0.005576, allocations: 45.62 kB / 327.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002341/0.00581, allocations: 155.3 kB / 328 MB, free: 14.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.005812, allocations: 0 / 328 MB, free: 14.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.005813, allocations: 0.6094 kB / 328 MB, free: 14.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.297e-06/0.005823, allocations: 1.031 kB / 328 MB, free: 14.56 MB / 302.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.0006611/0.006484, allocations: 416 kB / 328.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.006518, allocations: 13.81 kB / 328.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002202/0.006738, allocations: 34.08 kB / 328.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002338/0.006972, allocations: 161 kB / 328.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/0.006995, allocations: 10.3 kB / 328.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.655e-05/0.007032, allocations: 13.41 kB / 328.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005016/0.007533, allocations: 162.6 kB / 328.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.007543, allocations: 3.938 kB / 328.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.00756, allocations: 2.406 kB / 328.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.007564, allocations: 2.312 kB / 328.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003616/0.007926, allocations: 104.6 kB / 328.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000611/0.008537, allocations: 336.8 kB / 329.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006316/0.009169, allocations: 181.9 kB / 329.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003009/0.00947, allocations: 86.38 kB / 329.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.54e-05/0.009485, allocations: 6.688 kB / 329.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004592/0.009944, allocations: 172.3 kB / 329.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.009946, allocations: 0 / 329.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.001078/0.01102, allocations: 354 kB / 330 MB, free: 13.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.01107, allocations: 54.94 kB / 330.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.01121, allocations: 154.8 kB / 330.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.938e-05/0.01124, allocations: 32.86 kB / 330.3 MB, free: 13.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.853e-05/0.0113, allocations: 109.4 kB / 330.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.892e-05/0.01135, allocations: 41.12 kB / 330.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.974e-05/0.01142, allocations: 50.23 kB / 330.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.01157, allocations: 326.3 kB / 330.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.01169, allocations: 46.31 kB / 330.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.01189, allocations: 116.8 kB / 331 MB, free: 12.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003363/0.01223, allocations: 172.6 kB / 331.1 MB, free: 12.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.01223, allocations: 1.156 kB / 331.1 MB, free: 12.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004099/0.01264, allocations: 206.1 kB / 331.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.01266, allocations: 8.781 kB / 331.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.01267, allocations: 3.219 kB / 331.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.01268, allocations: 3.094 kB / 331.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.01286, allocations: 42.53 kB / 331.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.01288, allocations: 7.344 kB / 331.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.01298, allocations: 19.36 kB / 331.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/0.01301, allocations: 18.48 kB / 331.4 MB, free: 12.25 MB / 302.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.000145/0.01315, allocations: 138.9 kB / 331.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.551e-05/0.01319, allocations: 17.61 kB / 331.6 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008036/0.01399, allocations: 275.2 kB / 331.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.01399, allocations: 6.219 kB / 331.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.014, allocations: 0 / 331.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.014, allocations: 1.094 kB / 331.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009804/0.01498, allocations: 0.5061 MB / 332.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.01499, allocations: 0 / 332.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.01509, allocations: 19.23 kB / 332.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.01509, allocations: 1.344 kB / 332.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.203e-05/0.01511, allocations: 6.406 kB / 332.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.01512, allocations: 0 / 332.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.01512, allocations: 4.938 kB / 332.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.01624, allocations: 473.1 kB / 332.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.941e-05/0.01626, allocations: 12.41 kB / 332.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.115e-05/0.0163, allocations: 8.188 kB / 332.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/0.01651, allocations: 40.77 kB / 332.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.288e-05/0.01656, allocations: 16.33 kB / 332.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.01658, allocations: 8.016 kB / 332.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.799e-05/0.01666, allocations: 106.5 kB / 333 MB, free: 11.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01666, allocations: 0 / 333 MB, free: 11.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002979/0.01696, allocations: 36.28 kB / 333.1 MB, free: 11.14 MB / 302.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.0001406/0.0171, allocations: 107.8 kB / 333.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004839/0.01759, allocations: 160.5 kB / 333.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01759, allocations: 1.312 kB / 333.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002758/0.01786, allocations: 86.69 kB / 333.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002466/0.01811, allocations: 10.89 kB / 333.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007383/0.01885, allocations: 318.6 kB / 333.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.503e-05/0.01894, allocations: 95.83 kB / 333.8 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.511e-05/0.01899, allocations: 20.08 kB / 333.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.834e-05/0.01904, allocations: 20.41 kB / 333.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.01904, allocations: 0 / 333.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of Templates: time 0.004281/0.02332, allocations: 1.241 MB / 335.1 MB, free: 9.945 MB / 302.1 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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 5.6591478399932384]