Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.conf.json 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/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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 109.9 kB / 17.06 MB, free: 5.82 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 195.9 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1767/0.1767, allocations: 38.03 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 67.89 kB / 457.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3103, allocations: 58.04 MB / 0.5036 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.008513/0.3188, allocations: 9.245 MB / 0.5126 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00543/0.3243, allocations: 3.254 MB / 0.5158 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000817/0.3251, allocations: 43.44 kB / 0.5159 GB, free: 14.74 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001424/0.3265, allocations: 410.7 kB / 0.5163 GB, free: 14.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002194/0.3287, allocations: 0.7879 MB / 0.517 GB, free: 14.05 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001163/0.3299, allocations: 485.8 kB / 0.5175 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002748/0.3327, allocations: 1.869 MB / 0.5193 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001715/0.3344, allocations: 1.124 MB / 0.5204 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001391/0.3358, allocations: 0.7594 MB / 0.5212 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001235/0.3371, allocations: 0.8048 MB / 0.5219 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002088/0.3373, allocations: 144.1 kB / 0.5221 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007546/0.338, allocations: 381.3 kB / 0.5224 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005517/0.3386, allocations: 0.4971 MB / 0.5229 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007982/0.3394, allocations: 0.7015 MB / 0.5236 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002672/0.3421, allocations: 1.996 MB / 0.5256 GB, free: 10.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3421, allocations: 1 kB / 0.5256 GB, free: 10.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3421, allocations: 0 / 0.5256 GB, free: 10.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.351e-05/0.3422, allocations: 0 / 0.5256 GB, free: 10.09 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.003392/0.3456, allocations: 1.665 MB / 0.5272 GB, free: 9.031 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.3456, allocations: 13.67 kB / 0.5272 GB, free: 9.027 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002438/0.3459, allocations: 170.2 kB / 0.5274 GB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007557/0.3466, allocations: 199 kB / 0.5276 GB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001884/0.3485, allocations: 0.9536 MB / 0.5285 GB, free: 8.262 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.652e-05/0.3486, allocations: 79.64 kB / 0.5286 GB, free: 8.223 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000303/0.3489, allocations: 122.8 kB / 0.5287 GB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002466/0.3514, allocations: 1.348 MB / 0.53 GB, free: 7.531 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.57e-05/0.3514, allocations: 7.969 kB / 0.53 GB, free: 7.527 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.3516, allocations: 34.94 kB / 0.53 GB, free: 7.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001062/0.3517, allocations: 71.03 kB / 0.5301 GB, free: 7.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001817/0.3535, allocations: 1.079 MB / 0.5312 GB, free: 6.941 MB / 398.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 8.318498358936397e-4 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007139/0.3606, allocations: 5.104 MB / 0.5361 GB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.3619, allocations: 0.7625 MB / 0.5369 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005454/0.3624, allocations: 345.2 kB / 0.5372 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.05e-05/0.3625, allocations: 11.28 kB / 0.5372 GB, free: 2.09 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.3625, allocations: 43.16 kB / 0.5373 GB, free: 2.043 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.565e-06/0.3625, allocations: 3.938 kB / 0.5373 GB, free: 2.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.005727/0.3683, allocations: 2.716 MB / 0.5399 GB, free: 272 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.673e-05/0.3684, allocations: 137 kB / 0.5401 GB, free: 112 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009862/0.3694, allocations: 0.7546 MB / 0.5408 GB, free: 15.67 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.546e-05/0.3694, allocations: 39.92 kB / 0.5408 GB, free: 15.63 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004436/0.3699, allocations: 0.5726 MB / 0.5414 GB, free: 15.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002278/0.3701, allocations: 268.4 kB / 0.5416 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002542/0.3704, allocations: 161.8 kB / 0.5418 GB, free: 14.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.3706, allocations: 342.4 kB / 0.5421 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005146/0.3711, allocations: 294 kB / 0.5424 GB, free: 14.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007393/0.3718, allocations: 0.5537 MB / 0.5429 GB, free: 13.81 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001287/0.3731, allocations: 0.909 MB / 0.5438 GB, free: 13.13 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.3731, allocations: 2.75 kB / 0.5438 GB, free: 13.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.0029/0.376, allocations: 1.336 MB / 0.5451 GB, free: 12.42 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.3761, allocations: 8.719 kB / 0.5451 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.918e-05/0.3761, allocations: 16.95 kB / 0.5452 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001406/0.3775, allocations: 421.5 kB / 0.5456 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006338/0.3782, allocations: 167 kB / 0.5457 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008698/0.3869, allocations: 5.285 MB / 0.5509 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008837/0.3878, allocations: 43.92 kB / 0.5509 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.064e-05/0.3879, allocations: 35.98 kB / 0.551 GB, free: 7.121 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001047/0.3889, allocations: 0.5605 MB / 0.5515 GB, free: 6.559 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006843/0.3896, allocations: 0.5372 MB / 0.552 GB, free: 5.91 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001208/0.3908, allocations: 0.878 MB / 0.5529 GB, free: 4.926 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.427e-06/0.3908, allocations: 0 / 0.5529 GB, free: 4.926 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002669/0.3935, allocations: 1.274 MB / 0.5541 GB, free: 3.641 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.3935, allocations: 8 kB / 0.5541 GB, free: 3.633 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.3936, allocations: 8 kB / 0.5542 GB, free: 3.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001333/0.3949, allocations: 405.3 kB / 0.5545 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006749/0.3956, allocations: 171.7 kB / 0.5547 GB, free: 3.059 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007734/0.4033, allocations: 5.046 MB / 0.5596 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007824/0.4041, allocations: 35.98 kB / 0.5597 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.382e-05/0.4042, allocations: 43.98 kB / 0.5597 GB, free: 13.79 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002865/0.4045, allocations: 236 kB / 0.5599 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001849/0.4047, allocations: 99.33 kB / 0.56 GB, free: 13.45 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001625/0.4063, allocations: 0.8713 MB / 0.5609 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/0.4064, allocations: 12 kB / 0.5609 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.4064, allocations: 0 / 0.5609 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.4064, allocations: 3.984 kB / 0.5609 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00349/0.4099, allocations: 1.86 MB / 0.5627 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.758e-06/0.4099, allocations: 0 / 0.5627 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000847/0.4108, allocations: 167.8 kB / 0.5629 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.707e-06/0.4108, allocations: 4 kB / 0.5629 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.934e-05/0.4109, allocations: 27.92 kB / 0.5629 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.149e-06/0.4109, allocations: 0 / 0.5629 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4109, allocations: 4 kB / 0.5629 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.4128, allocations: 1.272 MB / 0.5641 GB, free: 9.121 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004197/0.4133, allocations: 232.4 kB / 0.5644 GB, free: 8.875 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.4134, allocations: 16 kB / 0.5644 GB, free: 8.859 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004672/0.4139, allocations: 31.97 kB / 0.5644 GB, free: 8.828 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.568e-05/0.414, allocations: 40.55 kB / 0.5645 GB, free: 8.789 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-05/0.414, allocations: 27.98 kB / 0.5645 GB, free: 8.762 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007296/0.4148, allocations: 0.5068 MB / 0.565 GB, free: 8.262 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4148, allocations: 0 / 0.565 GB, free: 8.262 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001652/0.4164, allocations: 467.9 kB / 0.5654 GB, free: 7.805 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.00243/0.4189, allocations: 1.866 MB / 0.5672 GB, free: 5.898 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003867/0.4228, allocations: 1.912 MB / 0.5691 GB, free: 3.957 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.4228, allocations: 0 / 0.5691 GB, free: 3.957 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006401/0.4234, allocations: 359.9 kB / 0.5695 GB, free: 3.609 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001375/0.4248, allocations: 259.3 kB / 0.5697 GB, free: 3.367 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01522/0.44, allocations: 9.132 MB / 0.5786 GB, free: 9.875 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001009/0.4411, allocations: 1.205 MB / 0.5798 GB, free: 8.641 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008511/0.4419, allocations: 239.4 kB / 0.58 GB, free: 8.402 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000629/0.4426, allocations: 435.3 kB / 0.5804 GB, free: 7.977 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4426, allocations: 4 kB / 0.5804 GB, free: 7.973 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06815/0.5108, allocations: 27.66 MB / 0.6075 GB, free: 12.56 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.78/14.29, allocations: 10.58 kB / 0.6075 GB, free: 12.55 MB / 478.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)