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.001838/0.001838, allocations: 96.25 kB / 20.96 MB, free: 3.465 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.002253/0.002253, allocations: 156.9 kB / 24.27 MB, free: 168 kB / 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.557/1.557, allocations: 177 MB / 204.4 MB, free: 5.621 MB / 186.7 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 2.965e-06/2.965e-06, allocations: 0 / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.365e-05/3.662e-05, allocations: 2.312 kB / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003938/0.003974, allocations: 1.699 MB / 273.9 MB, free: 108 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.005685, allocations: 0.6309 MB / 274.5 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.414e-05/0.005779, allocations: 4 kB / 274.5 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.005916, allocations: 15.81 kB / 274.5 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.397e-05/0.005969, allocations: 19.8 kB / 274.6 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003636/0.006333, allocations: 87.62 kB / 274.6 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002784/0.006611, allocations: 155.5 kB / 274.8 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.006752, allocations: 21.62 kB / 274.8 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002501/0.007002, allocations: 95.77 kB / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.007114, allocations: 47.88 kB / 275 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.478e-05/0.007149, allocations: 12 kB / 275 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.17e-05/0.007221, allocations: 27.92 kB / 275 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.123e-05/0.007282, allocations: 35.89 kB / 275 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.213e-05/0.007374, allocations: 47.83 kB / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000267/0.007641, allocations: 143.5 kB / 275.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.007646, allocations: 0 / 275.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.007647, allocations: 4 kB / 275.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.007651, allocations: 0 / 275.2 MB, free: 14.76 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.0008176/0.008469, allocations: 417.2 kB / 275.6 MB, free: 14.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.008515, allocations: 11.98 kB / 275.6 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002852/0.0088, allocations: 48.81 kB / 275.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003262/0.009126, allocations: 154.1 kB / 275.8 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.009158, allocations: 8.375 kB / 275.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.294e-05/0.009201, allocations: 8.375 kB / 275.8 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005239/0.009725, allocations: 166 kB / 276 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.009736, allocations: 3.938 kB / 276 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.363e-05/0.00976, allocations: 11.92 kB / 276 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.009766, allocations: 4 kB / 276 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003572/0.01012, allocations: 95.91 kB / 276.1 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008114/0.01093, allocations: 336.2 kB / 276.5 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006372/0.01157, allocations: 186.4 kB / 276.6 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003123/0.01188, allocations: 92.78 kB / 276.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.01191, allocations: 4 kB / 276.7 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004948/0.01241, allocations: 171.2 kB / 276.9 MB, free: 12.95 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.01241, allocations: 0 / 276.9 MB, free: 12.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.001188/0.0136, allocations: 361.2 kB / 277.2 MB, free: 12.59 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.876e-05/0.01369, allocations: 55.41 kB / 277.3 MB, free: 12.53 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001943/0.01388, allocations: 145.2 kB / 277.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.51e-05/0.01391, allocations: 37.7 kB / 277.5 MB, free: 12.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.905e-05/0.014, allocations: 100.6 kB / 277.6 MB, free: 12.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.313e-05/0.01407, allocations: 43.64 kB / 277.6 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.01418, allocations: 49.69 kB / 277.7 MB, free: 12.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002303/0.01441, allocations: 334.8 kB / 278 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.01454, allocations: 39.97 kB / 278 MB, free: 11.76 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001987/0.01474, allocations: 124.4 kB / 278.2 MB, free: 11.61 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003281/0.01507, allocations: 168.4 kB / 278.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.022e-06/0.01507, allocations: 4 kB / 278.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004536/0.01553, allocations: 221.2 kB / 278.5 MB, free: 11.19 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.01555, allocations: 8 kB / 278.6 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.01555, allocations: 0 / 278.6 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.01557, allocations: 4 kB / 278.6 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001923/0.01577, allocations: 35.92 kB / 278.6 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.489e-05/0.01578, allocations: 7.984 kB / 278.6 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.01589, allocations: 20.17 kB / 278.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.01591, allocations: 15.94 kB / 278.6 MB, free: 11.1 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.0001651/0.01607, allocations: 135.8 kB / 278.8 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.685e-05/0.01612, allocations: 15.91 kB / 278.8 MB, free: 10.94 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008061/0.01693, allocations: 281.2 kB / 279.1 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.01693, allocations: 4 kB / 279.1 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.01694, allocations: 3.984 kB / 279.1 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.01694, allocations: 0 / 279.1 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/0.01802, allocations: 0.5135 MB / 279.6 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.01802, allocations: 0 / 279.6 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.01814, allocations: 12 kB / 279.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.01814, allocations: 3.984 kB / 279.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/0.01816, allocations: 4 kB / 279.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.01816, allocations: 0 / 279.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.01816, allocations: 3.938 kB / 279.6 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.01932, allocations: 487.1 kB / 280.1 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.112e-05/0.01934, allocations: 11.94 kB / 280.1 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.409e-05/0.01939, allocations: 8 kB / 280.1 MB, free: 9.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.01957, allocations: 35.95 kB / 280.1 MB, free: 9.535 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.743e-05/0.01964, allocations: 15.92 kB / 280.1 MB, free: 9.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.849e-05/0.01967, allocations: 7.984 kB / 280.2 MB, free: 9.512 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001073/0.01978, allocations: 103.3 kB / 280.3 MB, free: 9.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01978, allocations: 0 / 280.3 MB, free: 9.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003158/0.02009, allocations: 28 kB / 280.3 MB, free: 9.383 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.0001645/0.02026, allocations: 103.2 kB / 280.4 MB, free: 9.273 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004767/0.02073, allocations: 167.7 kB / 280.5 MB, free: 9.109 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.02074, allocations: 0 / 280.5 MB, free: 9.109 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002913/0.02103, allocations: 90.81 kB / 280.6 MB, free: 9.023 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002612/0.02129, allocations: 23.36 kB / 280.7 MB, free: 9.004 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009218/0.02221, allocations: 333 kB / 281 MB, free: 8.652 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001236/0.02233, allocations: 93.81 kB / 281.1 MB, free: 8.543 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.267e-05/0.02239, allocations: 13.14 kB / 281.1 MB, free: 8.527 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.7e-05/0.02244, allocations: 20.48 kB / 281.1 MB, free: 8.508 MB / 266.7 MB Notification: Performance of SimCode: time 9.52e-07/0.02244, allocations: 0 / 281.1 MB, free: 8.508 MB / 266.7 MB Notification: Performance of Templates: time 0.005712/0.02816, allocations: 1.242 MB / 282.3 MB, free: 7.277 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=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.710000568069518]