Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSysPro.Examples.DegradedModeForLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.DegradedModeForLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 178.8 kB / 15.8 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 223.2 MB / 239.7 MB, free: 72 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008938/0.000894, allocations: 97.23 kB / 290.9 MB, free: 4.555 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.065/0.065, allocations: 8.091 MB / 350.1 MB, free: 4.828 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003114/0.0003116, allocations: 8 kB / 413.2 MB, free: 5.684 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2832, allocations: 52.51 MB / 465.7 MB, free: 69.6 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09325/0.3765, allocations: 79.8 MB / 0.5327 GB, free: 5.691 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002038/0.3767, allocations: 71.95 kB / 0.5328 GB, free: 5.621 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01681/0.3936, allocations: 6.4 MB / 0.539 GB, free: 15.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.737e-06/0.3936, allocations: 0 / 0.539 GB, free: 15.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.3936, allocations: 3.938 kB / 0.539 GB, free: 15.15 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001279/0.3949, allocations: 0.5765 MB / 0.5396 GB, free: 14.53 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.395, allocations: 16.03 kB / 0.5396 GB, free: 14.51 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.751e-05/0.395, allocations: 46.55 kB / 0.5397 GB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.646e-05/0.3951, allocations: 23.77 kB / 0.5397 GB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003202/0.3954, allocations: 238.7 kB / 0.5399 GB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.772e-05/0.3955, allocations: 63.41 kB / 0.54 GB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.106e-05/0.3956, allocations: 16 kB / 0.54 GB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004079/0.396, allocations: 221.3 kB / 0.5402 GB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.396, allocations: 3.953 kB / 0.5402 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.821e-05/0.396, allocations: 8 kB / 0.5402 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.3961, allocations: 8 kB / 0.5402 GB, free: 13.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003449/0.3964, allocations: 203.8 kB / 0.5404 GB, free: 13.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001685/0.3981, allocations: 0.9791 MB / 0.5414 GB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005987/0.3987, allocations: 235 kB / 0.5416 GB, free: 12.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.783e-05/0.3988, allocations: 8.188 kB / 0.5416 GB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003785/0.3992, allocations: 181.8 kB / 0.5418 GB, free: 12.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 1.713e-06/0.3992, allocations: 0 / 0.5418 GB, free: 12.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.001921/0.4011, allocations: 0.6338 MB / 0.5424 GB, free: 11.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.4012, allocations: 55.41 kB / 0.5424 GB, free: 11.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002233/0.4014, allocations: 170.4 kB / 0.5426 GB, free: 11.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.632e-05/0.4014, allocations: 29.7 kB / 0.5426 GB, free: 11.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.362e-05/0.4015, allocations: 128.2 kB / 0.5427 GB, free: 11.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.95e-05/0.4016, allocations: 71 kB / 0.5428 GB, free: 11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.544e-05/0.4017, allocations: 4 kB / 0.5428 GB, free: 10.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.4018, allocations: 322.8 kB / 0.5431 GB, free: 10.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001882/0.402, allocations: 112 kB / 0.5432 GB, free: 10.56 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002046/0.4022, allocations: 141.2 kB / 0.5434 GB, free: 10.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002063/0.4024, allocations: 120.8 kB / 0.5435 GB, free: 10.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4024, allocations: 0 / 0.5435 GB, free: 10.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009424/0.4034, allocations: 434.9 kB / 0.5439 GB, free: 9.855 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.4034, allocations: 7.953 kB / 0.5439 GB, free: 9.848 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.4034, allocations: 0 / 0.5439 GB, free: 9.848 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009155/0.4043, allocations: 204.7 kB / 0.5441 GB, free: 9.645 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.4045, allocations: 39.92 kB / 0.5441 GB, free: 9.605 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000659/0.4052, allocations: 0.7202 MB / 0.5448 GB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002266/0.4054, allocations: 23.75 kB / 0.5449 GB, free: 8.836 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.327e-05/0.4055, allocations: 11.94 kB / 0.5449 GB, free: 8.824 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.load.degradedMode,load.degradedMode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001362/0.4056, allocations: 141.8 kB / 0.545 GB, free: 8.676 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.776e-05/0.4057, allocations: 15.81 kB / 0.545 GB, free: 8.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006988/0.4064, allocations: 373.8 kB / 0.5454 GB, free: 8.285 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.4064, allocations: 8 kB / 0.5454 GB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.4064, allocations: 0 / 0.5454 GB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.4064, allocations: 0 / 0.5454 GB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003316/0.4067, allocations: 361.2 kB / 0.5457 GB, free: 7.875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.4067, allocations: 0 / 0.5457 GB, free: 7.875 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.4069, allocations: 27.92 kB / 0.5458 GB, free: 7.848 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007633/0.4076, allocations: 196.7 kB / 0.546 GB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.114e-05/0.4077, allocations: 8 kB / 0.546 GB, free: 7.645 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006174/0.4083, allocations: 0.7319 MB / 0.5467 GB, free: 6.887 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.4083, allocations: 0 / 0.5467 GB, free: 6.887 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000582/0.4089, allocations: 360.2 kB / 0.547 GB, free: 6.516 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.213e-05/0.409, allocations: 104.8 kB / 0.5471 GB, free: 6.395 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.649e-05/0.409, allocations: 7.938 kB / 0.5471 GB, free: 6.387 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.4092, allocations: 16 kB / 0.5471 GB, free: 6.371 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.39e-05/0.4093, allocations: 15.97 kB / 0.5472 GB, free: 6.355 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.4093, allocations: 8 kB / 0.5472 GB, free: 6.348 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001374/0.4094, allocations: 138.3 kB / 0.5473 GB, free: 6.215 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4094, allocations: 0 / 0.5473 GB, free: 6.215 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002835/0.4097, allocations: 59.94 kB / 0.5474 GB, free: 6.156 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,load.degradedMode) * Number of discrete states: 1 (load.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009243/0.4107, allocations: 0.9182 MB / 0.5482 GB, free: 5.211 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006707/0.4113, allocations: 291 kB / 0.5485 GB, free: 4.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.4114, allocations: 0 / 0.5485 GB, free: 4.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004295/0.4118, allocations: 159.7 kB / 0.5487 GB, free: 4.773 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001918/0.412, allocations: 23.67 kB / 0.5487 GB, free: 4.754 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00263/0.4146, allocations: 1.987 MB / 0.5506 GB, free: 2.695 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.415, allocations: 0.7291 MB / 0.5514 GB, free: 1.941 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001142/0.4151, allocations: 25.53 kB / 0.5514 GB, free: 1.914 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.752e-05/0.4152, allocations: 51.41 kB / 0.5514 GB, free: 1.863 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4152, allocations: 4 kB / 0.5514 GB, free: 1.859 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.221/0.6362, allocations: 5.237 MB / 0.5565 GB, free: 91.4 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001463/0.6364, allocations: 191.7 kB / 0.5567 GB, free: 91.16 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.862/2.498, allocations: 7.562 kB / 0.5567 GB, free: 91.16 MB / 378.7 MB (rm -f PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads_fmu --startTime=0 --stopTime=400 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads.fmu > PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe 2>&1)