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.00169/0.00169, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001996/0.001996, allocations: 160.5 kB / 24.55 MB, free: 16 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.038/1.038, allocations: 177 MB / 204.8 MB, free: 5.578 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 2.806e-06/2.806e-06, allocations: 3.984 kB / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.975e-05/3.255e-05, allocations: 9.203 kB / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.0032/0.003233, allocations: 1.742 MB / 274.6 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.004586, allocations: 0.6582 MB / 275.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.004704, allocations: 3.938 kB / 275.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.004859, allocations: 11.86 kB / 275.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.99e-05/0.004929, allocations: 19.8 kB / 275.3 MB, free: 15 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004548/0.005384, allocations: 95.69 kB / 275.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002475/0.005631, allocations: 151.5 kB / 275.6 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.005763, allocations: 21.56 kB / 275.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002667/0.00603, allocations: 95.72 kB / 275.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001106/0.006141, allocations: 55.84 kB / 275.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.286e-05/0.006174, allocations: 12 kB / 275.8 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.832e-05/0.006252, allocations: 16 kB / 275.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.902e-05/0.006291, allocations: 39.89 kB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.328e-05/0.006354, allocations: 43.89 kB / 275.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002284/0.006583, allocations: 119.5 kB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.006586, allocations: 4 kB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.006587, allocations: 0 / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.006593, allocations: 0 / 276 MB, free: 14.36 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.0007065/0.0073, allocations: 0.4995 MB / 276.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.007348, allocations: 11.98 kB / 276.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000234/0.007582, allocations: 44.81 kB / 276.5 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000254/0.007836, allocations: 160.9 kB / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.283e-05/0.007868, allocations: 8.375 kB / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.997e-05/0.007908, allocations: 16.36 kB / 276.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002998/0.008208, allocations: 130 kB / 276.8 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.00822, allocations: 3.938 kB / 276.8 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.008239, allocations: 4 kB / 276.8 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.008251, allocations: 4 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.104e-05/0.008342, allocations: 27.95 kB / 276.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006508/0.008993, allocations: 387.4 kB / 277.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002364/0.009229, allocations: 91.03 kB / 277.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.627e-05/0.009306, allocations: 35.66 kB / 277.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.009321, allocations: 0 / 277.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001691/0.00949, allocations: 120.9 kB / 277.5 MB, free: 12.69 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.009491, allocations: 0 / 277.5 MB, free: 12.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003481/0.009839, allocations: 196.4 kB / 277.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.009898, allocations: 55.41 kB / 277.7 MB, free: 12.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000154/0.01005, allocations: 205.2 kB / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.99e-05/0.01008, allocations: 33.7 kB / 278 MB, free: 12.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.882e-05/0.01017, allocations: 155.2 kB / 278.1 MB, free: 12.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.418e-05/0.01022, allocations: 43.69 kB / 278.2 MB, free: 11.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.041e-05/0.01031, allocations: 55.34 kB / 278.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.01048, allocations: 0.4961 MB / 278.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.253e-05/0.01055, allocations: 27.92 kB / 278.7 MB, free: 11.38 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001353/0.01069, allocations: 124.7 kB / 278.9 MB, free: 11.21 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002178/0.01091, allocations: 160.7 kB / 279 MB, free: 11.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.01091, allocations: 0 / 279 MB, free: 11.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002226/0.01113, allocations: 177.2 kB / 279.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.01115, allocations: 4 kB / 279.2 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.01115, allocations: 4.281 kB / 279.2 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.01117, allocations: 8 kB / 279.2 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.01136, allocations: 39.92 kB / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.01137, allocations: 7.984 kB / 279.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.973e-05/0.01146, allocations: 23.83 kB / 279.3 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.01148, allocations: 11.94 kB / 279.3 MB, free: 10.74 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.0001493/0.01163, allocations: 174.5 kB / 279.5 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.462e-05/0.01168, allocations: 23.89 kB / 279.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003641/0.01204, allocations: 162.3 kB / 279.7 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.014e-06/0.01205, allocations: 11.94 kB / 279.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.01205, allocations: 4 kB / 279.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.01206, allocations: 3.984 kB / 279.7 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005811/0.01264, allocations: 457.2 kB / 280.1 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.01264, allocations: 0 / 280.1 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.01275, allocations: 15.98 kB / 280.1 MB, free: 9.848 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.01275, allocations: 0 / 280.1 MB, free: 9.848 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/0.01277, allocations: 7.984 kB / 280.1 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.01278, allocations: 0 / 280.1 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.01278, allocations: 7.875 kB / 280.1 MB, free: 9.832 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004915/0.01327, allocations: 359 kB / 280.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.852e-05/0.01329, allocations: 11.94 kB / 280.5 MB, free: 9.453 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.01333, allocations: 15.98 kB / 280.5 MB, free: 9.438 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.01344, allocations: 15.98 kB / 280.5 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.678e-05/0.0135, allocations: 19.91 kB / 280.6 MB, free: 9.402 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.01352, allocations: 7.984 kB / 280.6 MB, free: 9.395 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.006e-05/0.01361, allocations: 147.2 kB / 280.7 MB, free: 9.25 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01361, allocations: 0 / 280.7 MB, free: 9.25 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003361/0.01395, allocations: 35.92 kB / 280.7 MB, free: 9.215 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.0001367/0.01408, allocations: 103.2 kB / 280.8 MB, free: 9.105 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001935/0.01428, allocations: 103.5 kB / 280.9 MB, free: 9 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.01428, allocations: 0 / 280.9 MB, free: 9 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.934e-05/0.01435, allocations: 51.66 kB / 281 MB, free: 8.945 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.01457, allocations: 16 kB / 281 MB, free: 8.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009957/0.01557, allocations: 295.2 kB / 281.3 MB, free: 8.613 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.551e-05/0.01562, allocations: 68.09 kB / 281.4 MB, free: 8.527 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.266e-05/0.01568, allocations: 17.12 kB / 281.4 MB, free: 8.512 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.669e-05/0.01574, allocations: 20.5 kB / 281.4 MB, free: 8.492 MB / 266.7 MB Notification: Performance of SimCode: time 1.543e-06/0.01574, allocations: 3.938 kB / 281.4 MB, free: 8.488 MB / 266.7 MB Notification: Performance of Templates: time 0.003786/0.01953, allocations: 1.292 MB / 282.7 MB, free: 7.211 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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 3.834471510257572]