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.001799/0.001799, allocations: 111.8 kB / 17.06 MB, free: 6.09 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.001969/0.001969, allocations: 199 kB / 18 MB, free: 5.168 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.443/1.443, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1845/0.1845, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 63.89 kB / 457.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4122/0.4136, allocations: 58.05 MB / 0.5036 GB, free: 7.348 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01035/0.424, allocations: 9.248 MB / 0.5127 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006315/0.4304, allocations: 3.251 MB / 0.5158 GB, free: 14.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001118/0.4315, allocations: 47.41 kB / 0.5159 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001524/0.4332, allocations: 410.2 kB / 0.5163 GB, free: 14.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003032/0.4362, allocations: 0.793 MB / 0.517 GB, free: 13.86 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001647/0.4379, allocations: 483.6 kB / 0.5175 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004672/0.4426, allocations: 1.866 MB / 0.5193 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002074/0.4446, allocations: 1.119 MB / 0.5204 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001951/0.4466, allocations: 0.7642 MB / 0.5212 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00194/0.4486, allocations: 0.8097 MB / 0.522 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006609/0.4492, allocations: 138.8 kB / 0.5221 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001448/0.4507, allocations: 384.9 kB / 0.5225 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008386/0.4515, allocations: 0.4915 MB / 0.5229 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001024/0.4526, allocations: 0.7003 MB / 0.5236 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003667/0.4563, allocations: 1.998 MB / 0.5256 GB, free: 9.918 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.096e-05/0.4563, allocations: 4 kB / 0.5256 GB, free: 9.914 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.4563, allocations: 1.375 kB / 0.5256 GB, free: 9.914 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.418e-05/0.4564, allocations: 0 / 0.5256 GB, free: 9.914 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.004126/0.4605, allocations: 1.63 MB / 0.5272 GB, free: 8.891 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.702e-05/0.4606, allocations: 15.19 kB / 0.5272 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002758/0.4608, allocations: 161.2 kB / 0.5273 GB, free: 8.781 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009575/0.4618, allocations: 185.9 kB / 0.5275 GB, free: 8.711 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002484/0.4643, allocations: 0.9565 MB / 0.5284 GB, free: 8.137 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.994e-05/0.4644, allocations: 79.47 kB / 0.5285 GB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003575/0.4648, allocations: 119.1 kB / 0.5286 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003021/0.4678, allocations: 1.346 MB / 0.53 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.899e-05/0.4679, allocations: 5.031 kB / 0.53 GB, free: 7.418 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001176/0.468, allocations: 46.78 kB / 0.53 GB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001594/0.4682, allocations: 69.67 kB / 0.5301 GB, free: 7.371 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002088/0.4703, allocations: 1.08 MB / 0.5311 GB, free: 6.891 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.008149/0.4784, allocations: 5.089 MB / 0.5361 GB, free: 2.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001303/0.4797, allocations: 0.757 MB / 0.5368 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005653/0.4803, allocations: 347.3 kB / 0.5372 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.225e-05/0.4804, allocations: 11.45 kB / 0.5372 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.933e-05/0.4804, allocations: 42.84 kB / 0.5372 GB, free: 2.012 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.525e-06/0.4805, allocations: 3.938 kB / 0.5372 GB, free: 2.008 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.007066/0.4875, allocations: 2.668 MB / 0.5398 GB, free: 284 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.58e-05/0.4876, allocations: 140 kB / 0.54 GB, free: 120 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001366/0.489, allocations: 0.7543 MB / 0.5407 GB, free: 15.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.22e-05/0.4891, allocations: 36.89 kB / 0.5407 GB, free: 15.64 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004934/0.4896, allocations: 0.5627 MB / 0.5413 GB, free: 15.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000264/0.4899, allocations: 252.3 kB / 0.5415 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003408/0.4902, allocations: 168.5 kB / 0.5417 GB, free: 14.81 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.4904, allocations: 339.2 kB / 0.542 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000642/0.4911, allocations: 302.7 kB / 0.5423 GB, free: 14.33 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008924/0.492, allocations: 0.5454 MB / 0.5428 GB, free: 13.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.4935, allocations: 0.9082 MB / 0.5437 GB, free: 13.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.46e-05/0.4935, allocations: 1.844 kB / 0.5437 GB, free: 13.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.003212/0.4967, allocations: 1.333 MB / 0.545 GB, free: 12.46 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.349e-05/0.4968, allocations: 9.156 kB / 0.545 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.682e-05/0.4968, allocations: 16.47 kB / 0.545 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001603/0.4984, allocations: 425.7 kB / 0.5454 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007119/0.4992, allocations: 170.1 kB / 0.5456 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00911/0.5083, allocations: 5.264 MB / 0.5507 GB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.5094, allocations: 47.97 kB / 0.5508 GB, free: 7.336 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001445/0.5095, allocations: 32.16 kB / 0.5508 GB, free: 7.305 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001231/0.5108, allocations: 0.5604 MB / 0.5514 GB, free: 6.742 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007685/0.5116, allocations: 0.545 MB / 0.5519 GB, free: 6.086 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001287/0.5129, allocations: 0.8741 MB / 0.5528 GB, free: 5.105 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.487e-06/0.5129, allocations: 4 kB / 0.5528 GB, free: 5.102 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002914/0.5158, allocations: 1.266 MB / 0.554 GB, free: 3.824 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.5158, allocations: 12.3 kB / 0.554 GB, free: 3.812 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.5159, allocations: 12 kB / 0.554 GB, free: 3.801 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001349/0.5172, allocations: 405 kB / 0.5544 GB, free: 3.402 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007046/0.5179, allocations: 171.7 kB / 0.5546 GB, free: 3.234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007892/0.5258, allocations: 5.047 MB / 0.5595 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009266/0.5268, allocations: 31.98 kB / 0.5595 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.192e-05/0.5269, allocations: 36 kB / 0.5596 GB, free: 13.97 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.0003601/0.5273, allocations: 232 kB / 0.5598 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003178/0.5276, allocations: 98.81 kB / 0.5599 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001567/0.5292, allocations: 0.8791 MB / 0.5607 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.5292, allocations: 8 kB / 0.5607 GB, free: 12.72 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.5292, allocations: 0 / 0.5607 GB, free: 12.72 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.5292, allocations: 7.984 kB / 0.5608 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003428/0.5326, allocations: 1.853 MB / 0.5626 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.5327, allocations: 0 / 0.5626 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008794/0.5336, allocations: 163.8 kB / 0.5627 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-05/0.5336, allocations: 4 kB / 0.5627 GB, free: 10.63 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.722e-05/0.5337, allocations: 23.97 kB / 0.5627 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.5337, allocations: 4 kB / 0.5627 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5337, allocations: 3.938 kB / 0.5628 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001974/0.5357, allocations: 1.268 MB / 0.564 GB, free: 9.316 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004867/0.5362, allocations: 235.7 kB / 0.5642 GB, free: 9.066 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001917/0.5364, allocations: 16 kB / 0.5642 GB, free: 9.051 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005554/0.5369, allocations: 23.98 kB / 0.5643 GB, free: 9.027 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.056e-05/0.537, allocations: 48.53 kB / 0.5643 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.374e-05/0.5371, allocations: 16 kB / 0.5643 GB, free: 8.965 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0008558/0.5379, allocations: 0.5146 MB / 0.5648 GB, free: 8.457 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5379, allocations: 3.938 kB / 0.5648 GB, free: 8.453 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002009/0.54, allocations: 464 kB / 0.5653 GB, free: 8 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.002487/0.5425, allocations: 1.866 MB / 0.5671 GB, free: 6.098 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003918/0.5464, allocations: 1.907 MB / 0.5689 GB, free: 4.16 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.5464, allocations: 0 / 0.5689 GB, free: 4.16 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006006/0.547, allocations: 349.1 kB / 0.5693 GB, free: 3.824 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001417/0.5484, allocations: 259.1 kB / 0.5695 GB, free: 3.578 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01682/0.5653, allocations: 9.099 MB / 0.5784 GB, free: 10.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001121/0.5664, allocations: 1.205 MB / 0.5796 GB, free: 8.887 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008783/0.5673, allocations: 247.3 kB / 0.5798 GB, free: 8.641 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006637/0.568, allocations: 435.3 kB / 0.5802 GB, free: 8.215 MB / 446.1 MB Notification: Performance of SimCode: time 8.82e-07/0.568, allocations: 0 / 0.5802 GB, free: 8.215 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07436/0.6424, allocations: 28.21 MB / 0.6078 GB, free: 12.28 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.38, allocations: 3.938 kB / 0.6078 GB, free: 12.28 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)