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.001331/0.001331, allocations: 118.8 kB / 17.79 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001364/0.001364, allocations: 202 kB / 18.74 MB, free: 4.289 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 / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001845/0.001845, allocations: 67.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.285, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003778/0.2888, allocations: 2.033 MB / 410.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001656/0.2905, allocations: 0.7363 MB / 411.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.2906, allocations: 11.88 kB / 411.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.478e-05/0.2907, allocations: 23.67 kB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001514/0.2909, allocations: 39.58 kB / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005099/0.2914, allocations: 147.7 kB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004413/0.2919, allocations: 363.1 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.292, allocations: 52.8 kB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003672/0.2924, allocations: 159.5 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002168/0.2926, allocations: 159.4 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.806e-05/0.2927, allocations: 32 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.504e-05/0.2928, allocations: 36 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.145e-05/0.2929, allocations: 79.72 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.293, allocations: 139.3 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004173/0.2935, allocations: 297.9 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2935, allocations: 4 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2935, allocations: 0 / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.2935, allocations: 0 / 413 MB, free: 13.23 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.001573/0.2951, allocations: 0.7467 MB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.2951, allocations: 8.031 kB / 413.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.208e-05/0.2952, allocations: 62.66 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003489/0.2955, allocations: 56.72 kB / 413.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004751/0.296, allocations: 264.8 kB / 414.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.461e-05/0.2961, allocations: 20.38 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.212e-05/0.2962, allocations: 32.36 kB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008661/0.297, allocations: 354.9 kB / 414.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.2971, allocations: 0 / 414.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.554e-05/0.2971, allocations: 12 kB / 414.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.2971, allocations: 4 kB / 414.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007951/0.2979, allocations: 247.7 kB / 414.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.2991, allocations: 0.7071 MB / 415.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009089/0.3, allocations: 360.9 kB / 415.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005189/0.3005, allocations: 201.6 kB / 416.1 MB, free: 9.973 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.736e-05/0.3006, allocations: 4 kB / 416.1 MB, free: 9.969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009052/0.3015, allocations: 406.7 kB / 416.5 MB, free: 9.559 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 3.096e-06/0.3016, allocations: 0 / 416.5 MB, free: 9.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.001908/0.3035, allocations: 0.7465 MB / 417.2 MB, free: 8.805 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.399e-05/0.3035, allocations: 67.39 kB / 417.3 MB, free: 8.727 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001956/0.3037, allocations: 199.8 kB / 417.5 MB, free: 8.523 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.338e-05/0.3038, allocations: 45.7 kB / 417.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.834e-05/0.3039, allocations: 133 kB / 417.7 MB, free: 8.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.304, allocations: 119.1 kB / 417.8 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001548/0.3042, allocations: 90.23 kB / 417.9 MB, free: 8.129 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.3044, allocations: 346.8 kB / 418.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004067/0.3048, allocations: 153 kB / 418.4 MB, free: 7.629 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004988/0.3053, allocations: 241.2 kB / 418.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008494/0.3062, allocations: 447.6 kB / 419 MB, free: 6.887 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3062, allocations: 0 / 419 MB, free: 6.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001158/0.3073, allocations: 0.5647 MB / 419.6 MB, free: 6.297 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.868e-05/0.3074, allocations: 93.11 kB / 419.7 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.3074, allocations: 4 kB / 419.7 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.3075, allocations: 7.984 kB / 419.7 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003852/0.3079, allocations: 71.89 kB / 419.8 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.3079, allocations: 7.938 kB / 419.8 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003309/0.3082, allocations: 63.73 kB / 419.8 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.43e-05/0.3083, allocations: 23.98 kB / 419.9 MB, free: 6.012 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.0001918/0.3085, allocations: 173.6 kB / 420 MB, free: 5.832 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.364e-05/0.3085, allocations: 27.84 kB / 420.1 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001182/0.3087, allocations: 34.98 kB / 420.1 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.3087, allocations: 4 kB / 420.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3087, allocations: 11.88 kB / 420.1 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.3087, allocations: 0 / 420.1 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003664/0.3091, allocations: 353.2 kB / 420.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3091, allocations: 0 / 420.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002825/0.3094, allocations: 47.95 kB / 420.5 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3094, allocations: 0 / 420.5 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.894e-05/0.3094, allocations: 19.97 kB / 420.5 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3094, allocations: 0 / 420.5 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3094, allocations: 0 / 420.5 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00201/0.3115, allocations: 0.8604 MB / 421.4 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.414e-05/0.3115, allocations: 100.9 kB / 421.5 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.804e-05/0.3116, allocations: 20.03 kB / 421.5 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003531/0.312, allocations: 55.92 kB / 421.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/0.3122, allocations: 47.94 kB / 421.6 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.688e-05/0.3122, allocations: 27.98 kB / 421.6 MB, free: 4.148 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000114/0.3123, allocations: 141.5 kB / 421.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.783e-06/0.3123, allocations: 0 / 421.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003165/0.3127, allocations: 87.88 kB / 421.9 MB, free: 3.926 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.002296/0.315, allocations: 1.418 MB / 423.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.3162, allocations: 0.5999 MB / 423.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3162, allocations: 4 kB / 423.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006187/0.3168, allocations: 263.5 kB / 424.1 MB, free: 1.582 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003112/0.3172, allocations: 36.41 kB / 424.2 MB, free: 1.547 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00514/0.3223, allocations: 3.266 MB / 427.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000406/0.3227, allocations: 0.7566 MB / 428.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001342/0.3229, allocations: 34.89 kB / 428.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/0.3231, allocations: 91.41 kB / 428.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3231, allocations: 0 / 428.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03167/0.3547, allocations: 6.81 MB / 435.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.496/8.85, allocations: 6.984 kB / 435.1 MB, free: 6.504 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1)