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.001065/0.001065, allocations: 83.59 kB / 21.18 MB, free: 3.383 MB / 18.57 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.0014/0.0014, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 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.005/1.005, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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 1.634e-06/1.634e-06, allocations: 0 / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.589e-05/1.752e-05, allocations: 2.312 kB / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.001999/0.002017, allocations: 1.741 MB / 274.7 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008836/0.002901, allocations: 0.6504 MB / 275.4 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.12e-05/0.002972, allocations: 3.938 kB / 275.4 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.003114, allocations: 15.8 kB / 275.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.058e-05/0.003155, allocations: 19.8 kB / 275.4 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003195/0.003474, allocations: 95.67 kB / 275.5 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001532/0.003628, allocations: 155.5 kB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.003732, allocations: 21.62 kB / 275.7 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.003894, allocations: 95.78 kB / 275.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.484e-05/0.003969, allocations: 47.86 kB / 275.8 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.113e-05/0.00399, allocations: 12 kB / 275.8 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.536e-05/0.004046, allocations: 23.98 kB / 275.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.914e-05/0.004075, allocations: 35.89 kB / 275.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.32e-05/0.004118, allocations: 39.91 kB / 275.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001539/0.004272, allocations: 119.5 kB / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.004274, allocations: 0 / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.004275, allocations: 0 / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.00428, allocations: 0 / 276 MB, free: 14.46 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.0005327/0.004813, allocations: 0.5112 MB / 276.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.004847, allocations: 8.031 kB / 276.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001508/0.004998, allocations: 36.77 kB / 276.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.005168, allocations: 157 kB / 276.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.266e-05/0.00519, allocations: 12.38 kB / 276.8 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.788e-05/0.005218, allocations: 16.36 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002062/0.005424, allocations: 133.6 kB / 276.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.005433, allocations: 3.938 kB / 276.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.005447, allocations: 7.984 kB / 276.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.005455, allocations: 4 kB / 276.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.362e-05/0.005519, allocations: 27.92 kB / 276.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004605/0.005979, allocations: 391.4 kB / 277.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001585/0.006138, allocations: 90.97 kB / 277.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.745e-05/0.006195, allocations: 35.66 kB / 277.5 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.313e-05/0.006208, allocations: 0 / 277.5 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001538/0.006362, allocations: 117 kB / 277.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.733e-06/0.006364, allocations: 0 / 277.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003318/0.006696, allocations: 197.4 kB / 277.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.006733, allocations: 59.41 kB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.532e-05/0.006829, allocations: 201.3 kB / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.006843, allocations: 33.64 kB / 278 MB, free: 12.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.04e-05/0.006894, allocations: 155.2 kB / 278.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.136e-05/0.006925, allocations: 39.69 kB / 278.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.821e-05/0.006973, allocations: 51.36 kB / 278.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.007165, allocations: 0.4961 MB / 278.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.206e-05/0.007207, allocations: 31.98 kB / 278.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.518e-05/0.007292, allocations: 123.2 kB / 278.9 MB, free: 11.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001326/0.007425, allocations: 152.7 kB / 279.1 MB, free: 11.12 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.007427, allocations: 8 kB / 279.1 MB, free: 11.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001785/0.007606, allocations: 165.4 kB / 279.3 MB, free: 10.95 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.00762, allocations: 11.94 kB / 279.3 MB, free: 10.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.007627, allocations: 7.984 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.007639, allocations: 0 / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.007762, allocations: 47.91 kB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.00777, allocations: 12.22 kB / 279.3 MB, free: 10.87 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.661e-05/0.007816, allocations: 19.89 kB / 279.4 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.306e-05/0.007829, allocations: 15.94 kB / 279.4 MB, free: 10.84 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 8.848e-05/0.007918, allocations: 166.5 kB / 279.5 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.357e-05/0.007941, allocations: 27.89 kB / 279.6 MB, free: 10.63 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000234/0.008175, allocations: 162.3 kB / 279.7 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.008177, allocations: 0 / 279.7 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.008182, allocations: 7.984 kB / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.008186, allocations: 0 / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003619/0.008548, allocations: 464.7 kB / 280.2 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.00855, allocations: 4 kB / 280.2 MB, free: 9.965 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.745e-05/0.008607, allocations: 15.98 kB / 280.2 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.008611, allocations: 3.984 kB / 280.2 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.008627, allocations: 11.98 kB / 280.2 MB, free: 9.934 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.008629, allocations: 0 / 280.2 MB, free: 9.934 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.008631, allocations: 3.938 kB / 280.2 MB, free: 9.93 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003817/0.009012, allocations: 347.7 kB / 280.6 MB, free: 9.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.364e-05/0.009026, allocations: 11.91 kB / 280.6 MB, free: 9.559 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.593e-05/0.009052, allocations: 11.98 kB / 280.6 MB, free: 9.547 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.311e-05/0.009125, allocations: 24.02 kB / 280.6 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.599e-05/0.009171, allocations: 11.92 kB / 280.6 MB, free: 9.512 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.009186, allocations: 11.98 kB / 280.6 MB, free: 9.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.571e-05/0.009241, allocations: 147.2 kB / 280.8 MB, free: 9.355 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009241, allocations: 0 / 280.8 MB, free: 9.355 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00019/0.009431, allocations: 28 kB / 280.8 MB, free: 9.328 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 7.771e-05/0.009509, allocations: 106.2 kB / 280.9 MB, free: 9.219 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001748/0.009684, allocations: 107.9 kB / 281 MB, free: 9.109 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.009685, allocations: 4.188 kB / 281 MB, free: 9.105 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.967e-05/0.009755, allocations: 51.59 kB / 281.1 MB, free: 9.051 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001726/0.009928, allocations: 19.92 kB / 281.1 MB, free: 9.031 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006193/0.01055, allocations: 302.1 kB / 281.4 MB, free: 8.711 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.763e-05/0.01059, allocations: 75.84 kB / 281.4 MB, free: 8.621 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.446e-05/0.01063, allocations: 17.12 kB / 281.5 MB, free: 8.605 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.901e-05/0.01067, allocations: 16.5 kB / 281.5 MB, free: 8.59 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.01067, allocations: 3.938 kB / 281.5 MB, free: 8.586 MB / 266.7 MB Notification: Performance of Templates: time 0.003125/0.01379, allocations: 1.294 MB / 282.8 MB, free: 7.305 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.710830364841968]