Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001343/0.001343, allocations: 109.3 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 207.2 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.478/1.478, allocations: 230.5 MB / 251.1 MB, free: 8.492 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 71.84 kB / 369 MB, free: 6.074 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2889, allocations: 53.31 MB / 422.3 MB, free: 7.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003524/0.2924, allocations: 2.038 MB / 424.3 MB, free: 5.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.2938, allocations: 0.7518 MB / 425.1 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.2939, allocations: 3.938 kB / 425.1 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.324e-05/0.294, allocations: 19.73 kB / 425.1 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001568/0.2941, allocations: 55.52 kB / 425.1 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004446/0.2946, allocations: 147.7 kB / 425.3 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004491/0.295, allocations: 347.2 kB / 425.6 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.2952, allocations: 52.72 kB / 425.7 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002956/0.2955, allocations: 151.5 kB / 425.8 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002294/0.2957, allocations: 167.4 kB / 426 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.281e-05/0.2958, allocations: 32 kB / 426 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.002e-05/0.2959, allocations: 32 kB / 426 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.564e-05/0.2959, allocations: 79.78 kB / 426.1 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001455/0.2961, allocations: 131.4 kB / 426.2 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003836/0.2965, allocations: 302.2 kB / 426.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2965, allocations: 0 / 426.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.2965, allocations: 4 kB / 426.5 MB, free: 3.555 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.2965, allocations: 0 / 426.5 MB, free: 3.555 MB / 334.1 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.001561/0.298, allocations: 0.7428 MB / 427.3 MB, free: 2.742 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.2981, allocations: 12.03 kB / 427.3 MB, free: 2.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003501/0.2984, allocations: 56.72 kB / 427.4 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003964/0.2988, allocations: 264.9 kB / 427.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.328e-05/0.2989, allocations: 24.36 kB / 427.6 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.916e-05/0.299, allocations: 28.38 kB / 427.7 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008417/0.2998, allocations: 359.1 kB / 428 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.2998, allocations: 3.938 kB / 428 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.926e-05/0.2998, allocations: 11.98 kB / 428 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.2999, allocations: 4 kB / 428 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007644/0.3006, allocations: 243.8 kB / 428.3 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.3018, allocations: 0.7032 MB / 429 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008936/0.3027, allocations: 336.8 kB / 429.3 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005426/0.3032, allocations: 189.6 kB / 429.5 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.495e-05/0.3032, allocations: 3.984 kB / 429.5 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008596/0.3041, allocations: 399 kB / 429.9 MB, free: 0 / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 1.573e-06/0.3041, allocations: 0 / 429.9 MB, free: 0 / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.001912/0.306, allocations: 0.7504 MB / 430.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.892e-05/0.3061, allocations: 71.34 kB / 430.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001942/0.3063, allocations: 195.8 kB / 430.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.181e-05/0.3063, allocations: 45.69 kB / 430.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.964e-05/0.3064, allocations: 133 kB / 431.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.3065, allocations: 119.1 kB / 431.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001503/0.3067, allocations: 86.25 kB / 431.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.3069, allocations: 346.8 kB / 431.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004328/0.3073, allocations: 157 kB / 431.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000484/0.3078, allocations: 241.2 kB / 432 MB, free: 13.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008645/0.3086, allocations: 436.4 kB / 432.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.3086, allocations: 8 kB / 432.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001179/0.3098, allocations: 0.5681 MB / 433 MB, free: 12.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.972e-05/0.3099, allocations: 89.09 kB / 433.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.3099, allocations: 4 kB / 433.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.3099, allocations: 4 kB / 433.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003614/0.3103, allocations: 79.81 kB / 433.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/0.3103, allocations: 4 kB / 433.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003596/0.3107, allocations: 71.69 kB / 433.2 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.569e-05/0.3107, allocations: 20 kB / 433.3 MB, free: 12.45 MB / 350.1 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.0002127/0.3109, allocations: 173.6 kB / 433.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.468e-05/0.311, allocations: 23.86 kB / 433.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.149e-05/0.3111, allocations: 38.98 kB / 433.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.832e-06/0.3111, allocations: 4 kB / 433.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3111, allocations: 0 / 433.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.3111, allocations: 3.984 kB / 433.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003778/0.3115, allocations: 349.2 kB / 433.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.3115, allocations: 3.984 kB / 433.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002782/0.3117, allocations: 43.91 kB / 433.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.3117, allocations: 0 / 433.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.521e-05/0.3118, allocations: 27.91 kB / 433.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3118, allocations: 0 / 433.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3118, allocations: 0 / 433.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001946/0.3137, allocations: 0.8566 MB / 434.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.713e-05/0.3138, allocations: 104.9 kB / 434.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.938e-05/0.3139, allocations: 16 kB / 434.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003524/0.3142, allocations: 55.92 kB / 435 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.3144, allocations: 51.94 kB / 435 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.818e-05/0.3144, allocations: 35.91 kB / 435 MB, free: 10.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000142/0.3146, allocations: 137.5 kB / 435.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3146, allocations: 0 / 435.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003468/0.3149, allocations: 76 kB / 435.2 MB, free: 10.38 MB / 350.1 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.0002117/0.3151, allocations: 129.5 kB / 435.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.3164, allocations: 0.5885 MB / 436 MB, free: 9.617 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3164, allocations: 0 / 436 MB, free: 9.617 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005933/0.317, allocations: 235.9 kB / 436.2 MB, free: 9.387 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003132/0.3173, allocations: 39.83 kB / 436.2 MB, free: 9.348 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.3186, allocations: 0.5582 MB / 436.8 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003717/0.3189, allocations: 0.7566 MB / 437.5 MB, free: 7.969 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001316/0.3191, allocations: 30.95 kB / 437.6 MB, free: 7.941 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.39e-05/0.3192, allocations: 31.42 kB / 437.6 MB, free: 7.91 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3192, allocations: 0 / 437.6 MB, free: 7.91 MB / 350.1 MB Notification: Performance of Templates: time 0.009119/0.3283, allocations: 4.416 MB / 442 MB, free: 3.508 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1) [Timeout 480]