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.001409/0.001409, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.001198/0.001198, allocations: 156.9 kB / 24.99 MB, free: 8.805 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 1.063/1.063, allocations: 177 MB / 205.2 MB, free: 5.613 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 1.532e-06/1.532e-06, allocations: 0 / 273 MB, free: 1.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.469e-05/3.623e-05, allocations: 2.312 kB / 273 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002733/0.002769, allocations: 1.749 MB / 274.7 MB, free: 24 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.003945, allocations: 0.6465 MB / 275.4 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.538e-05/0.00404, allocations: 7.938 kB / 275.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.004178, allocations: 11.86 kB / 275.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.49e-05/0.004223, allocations: 23.73 kB / 275.4 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004136/0.004637, allocations: 87.75 kB / 275.5 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001886/0.004825, allocations: 151.5 kB / 275.6 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.00496, allocations: 21.62 kB / 275.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002149/0.005175, allocations: 103.6 kB / 275.8 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.485e-05/0.00527, allocations: 47.88 kB / 275.8 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.748e-05/0.005297, allocations: 12 kB / 275.8 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.859e-05/0.005366, allocations: 23.97 kB / 275.9 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.049e-05/0.005396, allocations: 31.91 kB / 275.9 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.019e-05/0.005457, allocations: 47.89 kB / 275.9 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002156/0.005672, allocations: 115.5 kB / 276 MB, free: 14.7 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.005676, allocations: 8 kB / 276.1 MB, free: 14.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.005677, allocations: 0 / 276.1 MB, free: 14.69 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.005683, allocations: 0 / 276.1 MB, free: 14.69 MB / 266.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.0006345/0.006317, allocations: 0.4995 MB / 276.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.006361, allocations: 11.98 kB / 276.6 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002705/0.006632, allocations: 44.81 kB / 276.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002068/0.006838, allocations: 160.9 kB / 276.8 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/0.006865, allocations: 12.38 kB / 276.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.02e-05/0.006896, allocations: 12.38 kB / 276.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002285/0.007124, allocations: 134 kB / 276.9 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.007132, allocations: 3.938 kB / 276.9 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.007147, allocations: 4 kB / 276.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.007155, allocations: 0 / 276.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.234e-05/0.007227, allocations: 27.97 kB / 277 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005038/0.007731, allocations: 387.4 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.007921, allocations: 99 kB / 277.4 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.304e-05/0.007984, allocations: 31.67 kB / 277.5 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/0.008, allocations: 0 / 277.5 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001807/0.008181, allocations: 124.9 kB / 277.6 MB, free: 13.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.008182, allocations: 0 / 277.6 MB, free: 13.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.000363/0.008545, allocations: 189.5 kB / 277.8 MB, free: 12.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.008593, allocations: 63.33 kB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.008708, allocations: 197.3 kB / 278 MB, free: 12.54 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.008726, allocations: 33.69 kB / 278.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.277e-05/0.008789, allocations: 155.3 kB / 278.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.167e-05/0.00883, allocations: 43.69 kB / 278.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.65e-05/0.008887, allocations: 47.36 kB / 278.3 MB, free: 12.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.009015, allocations: 0.5039 MB / 278.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.099e-05/0.009066, allocations: 23.98 kB / 278.8 MB, free: 11.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.009169, allocations: 124.7 kB / 278.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.009338, allocations: 156.7 kB / 279.1 MB, free: 11.35 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.009342, allocations: 0 / 279.1 MB, free: 11.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002218/0.009563, allocations: 173.2 kB / 279.3 MB, free: 11.17 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.009584, allocations: 8 kB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.525e-06/0.009591, allocations: 288 / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.291e-05/0.009614, allocations: 8 kB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.009764, allocations: 47.91 kB / 279.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.009775, allocations: 4 kB / 279.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.08e-05/0.009825, allocations: 15.89 kB / 279.3 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.438e-05/0.00984, allocations: 15.92 kB / 279.4 MB, free: 11.07 MB / 266.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.0001322/0.009972, allocations: 178.5 kB / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.687e-05/0.009999, allocations: 19.91 kB / 279.6 MB, free: 10.87 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003302/0.01033, allocations: 177.5 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.01033, allocations: 0 / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.01034, allocations: 4 kB / 279.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.01034, allocations: 4 kB / 279.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000392/0.01074, allocations: 457.2 kB / 280.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.01074, allocations: 0 / 280.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.807e-05/0.01081, allocations: 23.92 kB / 280.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.01081, allocations: 4 kB / 280.2 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.749e-05/0.01083, allocations: 7.984 kB / 280.2 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.01083, allocations: 0 / 280.2 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.01083, allocations: 3.938 kB / 280.2 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003412/0.01117, allocations: 355.8 kB / 280.6 MB, free: 9.793 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.342e-05/0.01119, allocations: 15.94 kB / 280.6 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.908e-05/0.01122, allocations: 8 kB / 280.6 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.831e-05/0.0113, allocations: 19.97 kB / 280.6 MB, free: 9.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.987e-05/0.01135, allocations: 15.92 kB / 280.6 MB, free: 9.734 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.01137, allocations: 7.984 kB / 280.6 MB, free: 9.727 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.84e-05/0.01143, allocations: 143.2 kB / 280.8 MB, free: 9.586 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01143, allocations: 0 / 280.8 MB, free: 9.586 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001985/0.01162, allocations: 32 kB / 280.8 MB, free: 9.555 MB / 266.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 0.0001158/0.01174, allocations: 115.1 kB / 280.9 MB, free: 9.434 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001859/0.01193, allocations: 99.52 kB / 281 MB, free: 9.332 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.01193, allocations: 0 / 281 MB, free: 9.332 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.574e-05/0.012, allocations: 54.27 kB / 281.1 MB, free: 9.277 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001816/0.01218, allocations: 19.98 kB / 281.1 MB, free: 9.258 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007162/0.0129, allocations: 295.3 kB / 281.4 MB, free: 8.941 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.752e-05/0.01295, allocations: 72.08 kB / 281.4 MB, free: 8.852 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.511e-05/0.01298, allocations: 9.156 kB / 281.5 MB, free: 8.844 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.075e-05/0.01302, allocations: 16.48 kB / 281.5 MB, free: 8.828 MB / 266.7 MB Notification: Performance of SimCode: time 1.042e-06/0.01303, allocations: 0 / 281.5 MB, free: 8.828 MB / 266.7 MB Notification: Performance of Templates: time 0.003339/0.01636, allocations: 1.261 MB / 282.7 MB, free: 7.582 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.234291749075055]