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.0009856/0.0009856, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.0009994/0.0009994, allocations: 171.2 kB / 24.82 MB, free: 9.27 MB / 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.019/1.019, allocations: 177.1 MB / 205.3 MB, free: 5.508 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.412e-06/1.412e-06, allocations: 0 / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.612e-05/1.753e-05, allocations: 2.312 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002032/0.00205, allocations: 1.733 MB / 275.1 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007902/0.00284, allocations: 0.6504 MB / 275.8 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.266e-05/0.002912, allocations: 7.875 kB / 275.8 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001082/0.003021, allocations: 15.86 kB / 275.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.699e-05/0.003058, allocations: 23.73 kB / 275.8 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00024/0.003298, allocations: 83.75 kB / 275.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001483/0.003446, allocations: 151.5 kB / 276 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.003546, allocations: 21.62 kB / 276.1 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.003721, allocations: 107.7 kB / 276.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.699e-05/0.003808, allocations: 47.84 kB / 276.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.392e-05/0.003832, allocations: 12 kB / 276.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.444e-05/0.003886, allocations: 24 kB / 276.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.314e-05/0.003919, allocations: 31.89 kB / 276.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.854e-05/0.003958, allocations: 43.89 kB / 276.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000234/0.004192, allocations: 111.6 kB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.913e-06/0.004194, allocations: 0 / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.004194, allocations: 0 / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.004198, allocations: 3.938 kB / 276.4 MB, free: 14.24 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.0004235/0.004622, allocations: 0.5151 MB / 277 MB, free: 13.68 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.004658, allocations: 8.031 kB / 277 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.004812, allocations: 40.81 kB / 277 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.004949, allocations: 156.9 kB / 277.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.004967, allocations: 8.375 kB / 277.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.004991, allocations: 12.38 kB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001631/0.005154, allocations: 118.8 kB / 277.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.005161, allocations: 3.938 kB / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.005171, allocations: 8 kB / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.005178, allocations: 7.984 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.477e-05/0.005222, allocations: 22 kB / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003716/0.005594, allocations: 372 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001347/0.005729, allocations: 94.92 kB / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.85e-05/0.005767, allocations: 23.67 kB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/0.005785, allocations: 12 kB / 277.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001253/0.00591, allocations: 112.9 kB / 277.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/0.005912, allocations: 0 / 277.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.00025/0.006162, allocations: 180.5 kB / 278.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.081e-05/0.006193, allocations: 59.34 kB / 278.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.981e-05/0.006282, allocations: 204.8 kB / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.006298, allocations: 29.7 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.719e-05/0.006355, allocations: 155.2 kB / 278.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.101e-05/0.006386, allocations: 43.67 kB / 278.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.376e-05/0.00643, allocations: 47.34 kB / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.006541, allocations: 0.5039 MB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.379e-05/0.006565, allocations: 15.98 kB / 279.2 MB, free: 11.32 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.774e-05/0.006633, allocations: 117.5 kB / 279.3 MB, free: 11.17 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001123/0.006745, allocations: 160.6 kB / 279.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.006747, allocations: 0 / 279.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00015/0.006897, allocations: 153.3 kB / 279.6 MB, free: 10.81 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.006911, allocations: 8 kB / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.006922, allocations: 4 kB / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.006944, allocations: 0 / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.007066, allocations: 52.19 kB / 279.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.007072, allocations: 8 kB / 279.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.214e-05/0.007114, allocations: 15.89 kB / 279.7 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.007123, allocations: 8 kB / 279.7 MB, free: 10.72 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.195e-05/0.007205, allocations: 178.5 kB / 279.8 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.007378, allocations: 19.89 kB / 279.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001861/0.007564, allocations: 162.3 kB / 280 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.007567, allocations: 0 / 280 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.007569, allocations: 3.938 kB / 280 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.007574, allocations: 3.984 kB / 280 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003283/0.007902, allocations: 429.8 kB / 280.5 MB, free: 9.887 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-06/0.007905, allocations: 4 kB / 280.5 MB, free: 9.883 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.398e-05/0.007959, allocations: 15.94 kB / 280.5 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.007964, allocations: 3.984 kB / 280.5 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.007976, allocations: 4 kB / 280.5 MB, free: 9.859 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.007977, allocations: 4 kB / 280.5 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.007979, allocations: 0 / 280.5 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002713/0.00825, allocations: 335.5 kB / 280.8 MB, free: 9.512 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.395e-05/0.008264, allocations: 19.88 kB / 280.8 MB, free: 9.492 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.373e-05/0.008288, allocations: 8 kB / 280.8 MB, free: 9.484 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.22e-05/0.00836, allocations: 24.02 kB / 280.9 MB, free: 9.461 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.798e-05/0.008398, allocations: 11.97 kB / 280.9 MB, free: 9.449 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.008409, allocations: 12 kB / 280.9 MB, free: 9.438 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.267e-05/0.008461, allocations: 149.9 kB / 281 MB, free: 9.293 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008461, allocations: 0 / 281 MB, free: 9.293 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001721/0.008633, allocations: 28 kB / 281.1 MB, free: 9.266 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 8.834e-05/0.008722, allocations: 113.1 kB / 281.2 MB, free: 9.148 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00014/0.008862, allocations: 92 kB / 281.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.008863, allocations: 4.062 kB / 281.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.572e-05/0.008919, allocations: 47.59 kB / 281.3 MB, free: 9 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000169/0.009088, allocations: 15.98 kB / 281.3 MB, free: 8.984 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005954/0.009683, allocations: 290.7 kB / 281.6 MB, free: 8.672 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.413e-05/0.009727, allocations: 72.09 kB / 281.7 MB, free: 8.582 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.465e-05/0.009762, allocations: 17.12 kB / 281.7 MB, free: 8.566 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.811e-05/0.00983, allocations: 78.2 kB / 281.8 MB, free: 8.488 MB / 266.7 MB Notification: Performance of SimCode: time 7.82e-07/0.009831, allocations: 0 / 281.8 MB, free: 8.488 MB / 266.7 MB Notification: Performance of Templates: time 0.002699/0.01253, allocations: 1.355 MB / 283.1 MB, free: 7.16 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.910025393590331]