Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.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.0007764/0.0007764, allocations: 88.73 kB / 21.5 MB, free: 2.988 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.001082/0.001082, allocations: 165.1 kB / 24.91 MB, free: 8.715 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 0.9524/0.9524, allocations: 177 MB / 205.2 MB, free: 5.066 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.DemonstrateContinuousSignalExtrema,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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|signalExtrema3.y_min|signalExtrema3.y_max|signalExtrema3.t_min|signalExtrema3.t_max",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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|signalExtrema3.y_min|signalExtrema3.y_max|signalExtrema3.t_min|signalExtrema3.t_max",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.845e-06/2.845e-06, allocations: 0 / 273.4 MB, free: 1.094 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.676e-05/2.961e-05, allocations: 5.125 kB / 273.4 MB, free: 1.09 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003697/0.003727, allocations: 2.005 MB / 275.4 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.005376, allocations: 0.7399 MB / 276.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001258/0.005502, allocations: 7.938 kB / 276.1 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 6.173e-05/0.005563, allocations: 27.66 kB / 276.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001739/0.005737, allocations: 51.47 kB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004868/0.006224, allocations: 159.6 kB / 276.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004097/0.006634, allocations: 351 kB / 276.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.006782, allocations: 46.94 kB / 276.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004391/0.007221, allocations: 211.5 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002065/0.007428, allocations: 131.7 kB / 277.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.033e-05/0.007488, allocations: 28 kB / 277.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.17e-05/0.00757, allocations: 36 kB / 277.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.464e-05/0.007644, allocations: 71.78 kB / 277.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.007769, allocations: 99.72 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003416/0.008111, allocations: 259.1 kB / 277.6 MB, free: 12.87 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.008113, allocations: 0 / 277.6 MB, free: 12.87 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.008114, allocations: 0 / 277.6 MB, free: 12.87 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.008119, allocations: 0 / 277.6 MB, free: 12.87 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001022/0.009141, allocations: 0.6192 MB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.009182, allocations: 11.98 kB / 278.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002906/0.009473, allocations: 60.88 kB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002987/0.009772, allocations: 190.2 kB / 278.4 MB, free: 11.92 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.825e-05/0.00981, allocations: 24.36 kB / 278.5 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.398e-05/0.009884, allocations: 24.38 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004895/0.01037, allocations: 284.2 kB / 278.8 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.01039, allocations: 192 / 278.8 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.18e-05/0.01042, allocations: 16.11 kB / 278.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.01043, allocations: 4 kB / 278.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001482/0.01058, allocations: 55.91 kB / 278.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000907/0.01148, allocations: 444.3 kB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.01176, allocations: 181 kB / 279.5 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.442e-05/0.01185, allocations: 61.69 kB / 279.5 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.441e-05/0.01187, allocations: 8 kB / 279.5 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003086/0.01218, allocations: 255.1 kB / 279.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 2.615e-06/0.01218, allocations: 0 / 279.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=41): time 0.0003907/0.01257, allocations: 248.8 kB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.764e-05/0.01263, allocations: 71.39 kB / 280.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.01277, allocations: 192.5 kB / 280.3 MB, free: 9.992 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.01281, allocations: 45.7 kB / 280.3 MB, free: 9.941 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/0.01288, allocations: 120.9 kB / 280.4 MB, free: 9.82 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.957e-05/0.01295, allocations: 111.1 kB / 280.5 MB, free: 9.711 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.01305, allocations: 102.1 kB / 280.6 MB, free: 9.605 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.01317, allocations: 350.7 kB / 281 MB, free: 9.254 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.0133, allocations: 134.2 kB / 281.1 MB, free: 9.105 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.01343, allocations: 210.6 kB / 281.3 MB, free: 8.848 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/0.01365, allocations: 290 kB / 281.6 MB, free: 8.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.01366, allocations: 4 kB / 281.6 MB, free: 8.516 MB / 266.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.000349/0.01401, allocations: 400.1 kB / 282 MB, free: 8.082 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.457e-05/0.01408, allocations: 97.09 kB / 282.1 MB, free: 7.969 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.056e-06/0.01409, allocations: 0 / 282.1 MB, free: 7.969 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.324e-05/0.01411, allocations: 7.938 kB / 282.1 MB, free: 7.961 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.01439, allocations: 95.83 kB / 282.2 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.0144, allocations: 8.203 kB / 282.2 MB, free: 7.859 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.01457, allocations: 59.75 kB / 282.3 MB, free: 7.801 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.397e-05/0.01459, allocations: 20 kB / 282.3 MB, free: 7.781 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 46 (signalExtrema3.t_min,$PRE.signalExtrema3.t_min,signalExtrema3.t_max,$PRE.signalExtrema3.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,$whenCondition5,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,sawTooth.count,$PRE.sawTooth.count,sawTooth.T_start,$PRE.sawTooth.T_start,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,signalExtrema3.y_max,$PRE.signalExtrema3.y_max,signalExtrema3.y_min,$PRE.signalExtrema3.y_min,sawTooth1.count,$PRE.sawTooth1.count,sawTooth1.T_start,$PRE.sawTooth1.T_start,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 3 * 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.0001562/0.01475, allocations: 153.7 kB / 282.4 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.875e-05/0.0148, allocations: 27.97 kB / 282.5 MB, free: 7.594 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.681e-05/0.01489, allocations: 38.98 kB / 282.5 MB, free: 7.555 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.0149, allocations: 7.938 kB / 282.5 MB, free: 7.547 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.0149, allocations: 0 / 282.5 MB, free: 7.547 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.01491, allocations: 7.984 kB / 282.5 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002858/0.0152, allocations: 166.1 kB / 282.7 MB, free: 7.359 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.0152, allocations: 0 / 282.7 MB, free: 7.359 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001934/0.01539, allocations: 39.91 kB / 282.7 MB, free: 7.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.0154, allocations: 0 / 282.7 MB, free: 7.32 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.619e-05/0.01544, allocations: 15.98 kB / 282.7 MB, free: 7.305 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.01544, allocations: 3.938 kB / 282.7 MB, free: 7.301 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.01544, allocations: 0 / 282.7 MB, free: 7.301 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000576/0.01602, allocations: 302 kB / 283 MB, free: 6.988 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.79e-05/0.01607, allocations: 27.75 kB / 283.1 MB, free: 6.961 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.668e-05/0.01613, allocations: 27.98 kB / 283.1 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/0.01636, allocations: 43.95 kB / 283.1 MB, free: 6.891 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/0.0165, allocations: 59.62 kB / 283.2 MB, free: 6.832 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.13e-05/0.01655, allocations: 23.97 kB / 283.2 MB, free: 6.809 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.028e-05/0.01662, allocations: 54.05 kB / 283.3 MB, free: 6.754 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01662, allocations: 0 / 283.3 MB, free: 6.754 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003514/0.01697, allocations: 83.94 kB / 283.3 MB, free: 6.672 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (signalExtrema3.x,signalExtrema1.x,signalExtrema2.x) * Number of discrete variables: 28 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,sawTooth1.T_start,sawTooth1.count,signalExtrema3.y_min,signalExtrema3.y_max,signalExtrema3.t_min,signalExtrema3.t_max,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,sawTooth.T_start,sawTooth.count,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: 18 (sawTooth.count,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.y_min,signalExtrema1.t_min,signalExtrema1.u,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.y_min,signalExtrema2.t_min,signalExtrema2.u,pulse.count,sawTooth1.count,signalExtrema3.y_max,signalExtrema3.t_max,signalExtrema3.y_min,signalExtrema3.t_min,signalExtrema3.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 18 * 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.0001748/0.01715, allocations: 122.9 kB / 283.5 MB, free: 6.547 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004352/0.01758, allocations: 453.3 kB / 283.9 MB, free: 6.043 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/0.01759, allocations: 4 kB / 283.9 MB, free: 6.039 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.01774, allocations: 112.7 kB / 284 MB, free: 5.926 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002086/0.01795, allocations: 55.88 kB / 284.1 MB, free: 5.871 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008611/0.01881, allocations: 486.3 kB / 284.6 MB, free: 5.363 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.563e-05/0.01886, allocations: 88.81 kB / 284.6 MB, free: 5.258 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.596e-05/0.01896, allocations: 38.95 kB / 284.7 MB, free: 5.223 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001387/0.0191, allocations: 99.36 kB / 284.8 MB, free: 5.125 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.0191, allocations: 0 / 284.8 MB, free: 5.125 MB / 266.7 MB Notification: Performance of Templates: time 0.006462/0.02556, allocations: 4.517 MB / 289.3 MB, free: 0.6562 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/DemonstrateContinuousSignalExtrema/DemonstrateContinuousSignalExtrema.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.1252847029827535]