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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00129/0.00129, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001325/0.001326, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 59.91 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.29, allocations: 50.55 MB / 408.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003335/0.2934, allocations: 2.044 MB / 410.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.2948, allocations: 0.7363 MB / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00012/0.295, allocations: 7.938 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.703e-05/0.2951, allocations: 23.67 kB / 411.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001509/0.2952, allocations: 43.53 kB / 411.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00045/0.2957, allocations: 147.7 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004361/0.2961, allocations: 355.2 kB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001669/0.2963, allocations: 64.72 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002986/0.2966, allocations: 155.5 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.2968, allocations: 163.4 kB / 412.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.669e-05/0.2969, allocations: 32 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.255e-05/0.297, allocations: 35.98 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.622e-05/0.2971, allocations: 75.73 kB / 412.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001601/0.2973, allocations: 139.3 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004142/0.2977, allocations: 297.9 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2977, allocations: 0 / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2977, allocations: 0 / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.2977, allocations: 0 / 413.1 MB, free: 13.16 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.001599/0.2993, allocations: 0.7467 MB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.2994, allocations: 8.031 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.368e-05/0.2995, allocations: 58.67 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003349/0.2998, allocations: 60.7 kB / 414 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004121/0.3002, allocations: 264.9 kB / 414.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.344e-05/0.3003, allocations: 16.36 kB / 414.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.013e-05/0.3003, allocations: 28.38 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008513/0.3012, allocations: 366.8 kB / 414.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.3012, allocations: 0 / 414.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.297e-05/0.3013, allocations: 8 kB / 414.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.3013, allocations: 4 kB / 414.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008408/0.3021, allocations: 247.8 kB / 414.9 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.3034, allocations: 0.7149 MB / 415.6 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009517/0.3043, allocations: 360.9 kB / 416 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005827/0.3049, allocations: 197.6 kB / 416.1 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.076e-05/0.305, allocations: 8 kB / 416.2 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009233/0.3059, allocations: 390.8 kB / 416.5 MB, free: 9.496 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.174e-06/0.3059, allocations: 0 / 416.5 MB, free: 9.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.002077/0.308, allocations: 0.7582 MB / 417.3 MB, free: 8.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.311e-05/0.3081, allocations: 67.38 kB / 417.4 MB, free: 8.652 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.3083, allocations: 199.8 kB / 417.6 MB, free: 8.449 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.564e-05/0.3084, allocations: 45.7 kB / 417.6 MB, free: 8.398 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.3085, allocations: 129 kB / 417.7 MB, free: 8.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.3086, allocations: 115.2 kB / 417.8 MB, free: 8.156 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/0.3088, allocations: 94.17 kB / 417.9 MB, free: 8.059 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002038/0.309, allocations: 342.8 kB / 418.3 MB, free: 7.715 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004462/0.3095, allocations: 157 kB / 418.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005326/0.31, allocations: 241.2 kB / 418.7 MB, free: 7.297 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009234/0.3109, allocations: 439.6 kB / 419.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-06/0.3109, allocations: 0 / 419.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001236/0.3122, allocations: 0.5684 MB / 419.7 MB, free: 6.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.99e-05/0.3123, allocations: 93.09 kB / 419.7 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.3123, allocations: 8 kB / 419.8 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.3123, allocations: 4 kB / 419.8 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/0.3127, allocations: 84.03 kB / 419.8 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.3127, allocations: 4 kB / 419.8 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003564/0.3131, allocations: 63.73 kB / 419.9 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.209e-05/0.3131, allocations: 23.98 kB / 419.9 MB, free: 5.938 MB / 334.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.000256/0.3134, allocations: 173.6 kB / 420.1 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.906e-05/0.3135, allocations: 27.84 kB / 420.1 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.3136, allocations: 35 kB / 420.2 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.3136, allocations: 4 kB / 420.2 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.3136, allocations: 3.938 kB / 420.2 MB, free: 5.688 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.3137, allocations: 7.984 kB / 420.2 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004214/0.3141, allocations: 353.2 kB / 420.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.3141, allocations: 0 / 420.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/0.3144, allocations: 47.89 kB / 420.6 MB, free: 5.238 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.3144, allocations: 0 / 420.6 MB, free: 5.238 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.464e-05/0.3144, allocations: 15.98 kB / 420.6 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.3145, allocations: 4 kB / 420.6 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3145, allocations: 0 / 420.6 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002097/0.3166, allocations: 0.8565 MB / 421.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.027e-05/0.3167, allocations: 100.9 kB / 421.5 MB, free: 4.227 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.101e-05/0.3167, allocations: 16 kB / 421.6 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003526/0.3171, allocations: 59.97 kB / 421.6 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/0.3173, allocations: 47.94 kB / 421.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.571e-05/0.3173, allocations: 31.97 kB / 421.7 MB, free: 4.074 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001257/0.3175, allocations: 141.5 kB / 421.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3175, allocations: 0 / 421.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003733/0.3178, allocations: 79.95 kB / 421.9 MB, free: 3.859 MB / 334.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.002501/0.3203, allocations: 1.418 MB / 423.3 MB, free: 2.414 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001396/0.3218, allocations: 0.607 MB / 423.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.3218, allocations: 4 kB / 423.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006765/0.3225, allocations: 264 kB / 424.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00035/0.3228, allocations: 40.14 kB / 424.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005504/0.3283, allocations: 3.262 MB / 427.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.3288, allocations: 0.7527 MB / 428.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001685/0.329, allocations: 42.83 kB / 428.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/0.3291, allocations: 87.41 kB / 428.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3292, allocations: 0 / 428.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08448/0.4136, allocations: 6.811 MB / 435.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.728/9.141, allocations: 8.062 kB / 435.2 MB, free: 6.434 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1)