Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_latest_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.001567/0.001566, allocations: 111 kB / 17.06 MB, free: 5.781 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.002083/0.002083, allocations: 199.9 kB / 18 MB, free: 4.953 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.492/1.492, 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-master/package.mo): time 0.1742/0.1742, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 67.89 kB / 457.7 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3742/0.3755, allocations: 58.05 MB / 0.5036 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.009874/0.3854, allocations: 9.256 MB / 0.5127 GB, free: 1.086 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006659/0.3921, allocations: 3.244 MB / 0.5158 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00102/0.3932, allocations: 43.75 kB / 0.5159 GB, free: 14.76 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001782/0.395, allocations: 414.6 kB / 0.5163 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002474/0.3975, allocations: 0.7971 MB / 0.517 GB, free: 14.05 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001359/0.3988, allocations: 480.4 kB / 0.5175 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003112/0.402, allocations: 1.865 MB / 0.5193 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001794/0.4038, allocations: 1.116 MB / 0.5204 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00136/0.4051, allocations: 0.7673 MB / 0.5212 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001358/0.4065, allocations: 0.8134 MB / 0.522 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002199/0.4067, allocations: 139.5 kB / 0.5221 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007999/0.4076, allocations: 382.6 kB / 0.5225 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005123/0.4081, allocations: 0.4936 MB / 0.5229 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007546/0.4088, allocations: 0.7004 MB / 0.5236 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003002/0.4118, allocations: 1.99 MB / 0.5256 GB, free: 10.12 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.023e-05/0.4119, allocations: 4 kB / 0.5256 GB, free: 10.12 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4119, allocations: 5.156 kB / 0.5256 GB, free: 10.12 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.181e-05/0.4119, allocations: 0 / 0.5256 GB, free: 10.12 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.003852/0.4158, allocations: 1.631 MB / 0.5272 GB, free: 9.094 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.4158, allocations: 9.312 kB / 0.5272 GB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002281/0.4161, allocations: 166.4 kB / 0.5273 GB, free: 8.984 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008349/0.4169, allocations: 186.7 kB / 0.5275 GB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002124/0.4191, allocations: 0.9481 MB / 0.5284 GB, free: 8.348 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.719e-05/0.4191, allocations: 88.88 kB / 0.5285 GB, free: 8.301 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002947/0.4194, allocations: 113.5 kB / 0.5286 GB, free: 8.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002351/0.4218, allocations: 1.352 MB / 0.53 GB, free: 7.617 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.518e-05/0.4218, allocations: 2.094 kB / 0.53 GB, free: 7.617 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001067/0.422, allocations: 41.97 kB / 0.53 GB, free: 7.586 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001273/0.4221, allocations: 67.12 kB / 0.5301 GB, free: 7.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001985/0.4241, allocations: 1.079 MB / 0.5311 GB, free: 7.027 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.007808/0.4319, allocations: 5.094 MB / 0.5361 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.4332, allocations: 0.761 MB / 0.5368 GB, free: 2.375 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005505/0.4337, allocations: 348.3 kB / 0.5372 GB, free: 2.191 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.558e-05/0.4338, allocations: 11.22 kB / 0.5372 GB, free: 2.188 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/0.4338, allocations: 39 kB / 0.5372 GB, free: 2.145 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 3.276e-06/0.4338, allocations: 3.938 kB / 0.5372 GB, free: 2.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.006299/0.4402, allocations: 2.676 MB / 0.5398 GB, free: 408 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.4403, allocations: 136.9 kB / 0.54 GB, free: 248 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00135/0.4416, allocations: 0.754 MB / 0.5407 GB, free: 15.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.734e-05/0.4417, allocations: 36.83 kB / 0.5407 GB, free: 15.77 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004883/0.4422, allocations: 0.5547 MB / 0.5413 GB, free: 15.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002727/0.4425, allocations: 259.6 kB / 0.5415 GB, free: 15.05 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002655/0.4428, allocations: 169.2 kB / 0.5417 GB, free: 14.94 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.4429, allocations: 338.5 kB / 0.542 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000552/0.4435, allocations: 298.5 kB / 0.5423 GB, free: 14.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006827/0.4442, allocations: 0.5537 MB / 0.5428 GB, free: 13.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001317/0.4455, allocations: 0.9046 MB / 0.5437 GB, free: 13.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.241e-06/0.4455, allocations: 1.688 kB / 0.5437 GB, free: 13.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.003396/0.4489, allocations: 1.333 MB / 0.545 GB, free: 12.58 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.153e-05/0.449, allocations: 9.219 kB / 0.545 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/0.449, allocations: 8.094 kB / 0.545 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001436/0.4504, allocations: 425.3 kB / 0.5454 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006526/0.4511, allocations: 171.4 kB / 0.5456 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008513/0.4596, allocations: 5.276 MB / 0.5508 GB, free: 7.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008296/0.4605, allocations: 39.98 kB / 0.5508 GB, free: 7.332 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-05/0.4606, allocations: 32 kB / 0.5508 GB, free: 7.301 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009865/0.4615, allocations: 0.5604 MB / 0.5514 GB, free: 6.738 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006092/0.4622, allocations: 0.5373 MB / 0.5519 GB, free: 6.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001126/0.4633, allocations: 0.8819 MB / 0.5528 GB, free: 5.102 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.759e-06/0.4633, allocations: 4 kB / 0.5528 GB, free: 5.098 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002529/0.4658, allocations: 1.262 MB / 0.554 GB, free: 3.824 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.4659, allocations: 8 kB / 0.554 GB, free: 3.816 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.4659, allocations: 8 kB / 0.554 GB, free: 3.809 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001288/0.4672, allocations: 409.3 kB / 0.5544 GB, free: 3.406 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006392/0.4678, allocations: 167.7 kB / 0.5546 GB, free: 3.242 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007603/0.4755, allocations: 5.057 MB / 0.5595 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008872/0.4764, allocations: 31.98 kB / 0.5595 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.448e-05/0.4764, allocations: 36 kB / 0.5596 GB, free: 13.98 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.000406/0.4768, allocations: 235.9 kB / 0.5598 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002311/0.4771, allocations: 94.81 kB / 0.5599 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001581/0.4787, allocations: 0.8752 MB / 0.5607 GB, free: 12.74 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.4787, allocations: 8 kB / 0.5607 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.4787, allocations: 0 / 0.5607 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.4787, allocations: 7.984 kB / 0.5607 GB, free: 12.72 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003058/0.4818, allocations: 1.86 MB / 0.5626 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.4818, allocations: 0 / 0.5626 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008134/0.4826, allocations: 163.8 kB / 0.5627 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.585e-06/0.4826, allocations: 4 kB / 0.5627 GB, free: 10.63 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.255e-05/0.4827, allocations: 23.92 kB / 0.5627 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.481e-06/0.4827, allocations: 4 kB / 0.5627 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4827, allocations: 4.031 kB / 0.5628 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.4844, allocations: 1.264 MB / 0.564 GB, free: 9.32 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003731/0.4848, allocations: 235.7 kB / 0.5642 GB, free: 9.07 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/0.4849, allocations: 20 kB / 0.5642 GB, free: 9.051 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004483/0.4854, allocations: 23.98 kB / 0.5643 GB, free: 9.027 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.947e-05/0.4855, allocations: 44.59 kB / 0.5643 GB, free: 8.984 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.101e-05/0.4855, allocations: 19.98 kB / 0.5643 GB, free: 8.965 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006102/0.4861, allocations: 0.5107 MB / 0.5648 GB, free: 8.461 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4861, allocations: 0 / 0.5648 GB, free: 8.461 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001651/0.4878, allocations: 464 kB / 0.5653 GB, free: 8.008 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.002129/0.4899, allocations: 1.866 MB / 0.5671 GB, free: 6.102 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00349/0.4934, allocations: 1.904 MB / 0.5689 GB, free: 4.168 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.4934, allocations: 0 / 0.5689 GB, free: 4.168 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005214/0.494, allocations: 347.5 kB / 0.5693 GB, free: 3.832 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.4952, allocations: 267.8 kB / 0.5695 GB, free: 3.582 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01401/0.5093, allocations: 9.092 MB / 0.5784 GB, free: 10.13 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009425/0.5102, allocations: 1.205 MB / 0.5796 GB, free: 8.895 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000814/0.5111, allocations: 243.4 kB / 0.5798 GB, free: 8.652 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005531/0.5116, allocations: 435.3 kB / 0.5802 GB, free: 8.227 MB / 446.1 MB Notification: Performance of SimCode: time 9.01e-07/0.5116, allocations: 0 / 0.5802 GB, free: 8.227 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05711/0.5687, allocations: 28.21 MB / 0.6078 GB, free: 12.29 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.49, allocations: 19.86 kB / 0.6078 GB, free: 12.27 MB / 478.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)