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.001795/0.001795, allocations: 109.7 kB / 17.06 MB, free: 5.996 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.002057/0.002057, allocations: 193.4 kB / 18 MB, free: 5.074 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.453/1.453, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1959/0.1959, allocations: 38.05 MB / 329.9 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 63.89 kB / 457.7 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3255/0.3274, allocations: 58.06 MB / 0.5036 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.008882/0.3363, allocations: 9.258 MB / 0.5127 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00634/0.3427, allocations: 3.244 MB / 0.5158 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001159/0.3439, allocations: 43.06 kB / 0.5159 GB, free: 14.62 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001505/0.3455, allocations: 407.1 kB / 0.5163 GB, free: 14.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002486/0.348, allocations: 0.8002 MB / 0.5171 GB, free: 13.92 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.3493, allocations: 471.8 kB / 0.5175 GB, free: 13.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003082/0.3524, allocations: 1.874 MB / 0.5193 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001798/0.3542, allocations: 1.122 MB / 0.5204 GB, free: 12.22 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001474/0.3557, allocations: 0.7586 MB / 0.5212 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001579/0.3573, allocations: 0.8063 MB / 0.522 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002638/0.3576, allocations: 139.3 kB / 0.5221 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009282/0.3585, allocations: 381.6 kB / 0.5225 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000624/0.3591, allocations: 0.4973 MB / 0.5229 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009002/0.36, allocations: 0.7 MB / 0.5236 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002915/0.363, allocations: 1.997 MB / 0.5256 GB, free: 9.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.363, allocations: 0.75 kB / 0.5256 GB, free: 9.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.363, allocations: 4 kB / 0.5256 GB, free: 9.977 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.414e-05/0.363, allocations: 1.312 kB / 0.5256 GB, free: 9.977 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.003905/0.367, allocations: 1.668 MB / 0.5272 GB, free: 8.914 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.367, allocations: 14.02 kB / 0.5272 GB, free: 8.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002352/0.3673, allocations: 165.8 kB / 0.5274 GB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007776/0.368, allocations: 194.8 kB / 0.5276 GB, free: 8.723 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00186/0.3699, allocations: 0.9562 MB / 0.5285 GB, free: 8.148 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.862e-05/0.37, allocations: 80.56 kB / 0.5286 GB, free: 8.109 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003016/0.3703, allocations: 123.5 kB / 0.5287 GB, free: 8.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002376/0.3727, allocations: 1.345 MB / 0.53 GB, free: 7.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.536e-05/0.3727, allocations: 3.516 kB / 0.53 GB, free: 7.43 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/0.3729, allocations: 45.55 kB / 0.5301 GB, free: 7.395 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001161/0.373, allocations: 66 kB / 0.5301 GB, free: 7.387 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00192/0.3749, allocations: 1.078 MB / 0.5312 GB, free: 6.895 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.008151/0.3831, allocations: 5.103 MB / 0.5362 GB, free: 2.723 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.3844, allocations: 0.7583 MB / 0.5369 GB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005592/0.385, allocations: 350 kB / 0.5372 GB, free: 2.051 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.075e-05/0.385, allocations: 8.094 kB / 0.5372 GB, free: 2.051 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.619e-05/0.3851, allocations: 43.16 kB / 0.5373 GB, free: 2.004 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 4.118e-06/0.3851, allocations: 7.938 kB / 0.5373 GB, free: 1.996 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.006314/0.3914, allocations: 2.712 MB / 0.5399 GB, free: 228 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.3916, allocations: 140.7 kB / 0.5401 GB, free: 64 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001244/0.3928, allocations: 0.7503 MB / 0.5408 GB, free: 15.63 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.813e-05/0.3929, allocations: 40.73 kB / 0.5408 GB, free: 15.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005803/0.3935, allocations: 0.5755 MB / 0.5414 GB, free: 15.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003131/0.3938, allocations: 265.4 kB / 0.5417 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003387/0.3941, allocations: 165.2 kB / 0.5418 GB, free: 14.74 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002021/0.3944, allocations: 338.9 kB / 0.5421 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006047/0.395, allocations: 299.1 kB / 0.5424 GB, free: 14.26 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008158/0.3958, allocations: 0.5485 MB / 0.543 GB, free: 13.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001394/0.3972, allocations: 0.9052 MB / 0.5438 GB, free: 13.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.3972, allocations: 1.5 kB / 0.5438 GB, free: 13.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.003076/0.4003, allocations: 1.34 MB / 0.5451 GB, free: 12.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.4003, allocations: 9.5 kB / 0.5452 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/0.4004, allocations: 7.625 kB / 0.5452 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001432/0.4018, allocations: 425.6 kB / 0.5456 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006786/0.4025, allocations: 171.4 kB / 0.5457 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009392/0.4119, allocations: 5.288 MB / 0.5509 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009756/0.4129, allocations: 39.92 kB / 0.5509 GB, free: 7.223 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.428e-05/0.413, allocations: 36 kB / 0.551 GB, free: 7.188 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001219/0.4142, allocations: 0.5643 MB / 0.5515 GB, free: 6.621 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000732/0.415, allocations: 0.5295 MB / 0.552 GB, free: 5.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001267/0.4162, allocations: 0.8819 MB / 0.5529 GB, free: 4.992 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.506e-06/0.4163, allocations: 4.156 kB / 0.5529 GB, free: 4.988 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002882/0.4191, allocations: 1.27 MB / 0.5541 GB, free: 3.707 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.4192, allocations: 8 kB / 0.5542 GB, free: 3.699 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.4192, allocations: 8 kB / 0.5542 GB, free: 3.691 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001375/0.4206, allocations: 409.4 kB / 0.5546 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006462/0.4212, allocations: 167.7 kB / 0.5547 GB, free: 3.125 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008938/0.4302, allocations: 5.059 MB / 0.5597 GB, free: 13.92 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.4314, allocations: 31.98 kB / 0.5597 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.257e-05/0.4315, allocations: 40 kB / 0.5597 GB, free: 13.85 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.0004499/0.4319, allocations: 232 kB / 0.5599 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002681/0.4322, allocations: 103.3 kB / 0.56 GB, free: 13.51 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001721/0.4339, allocations: 0.8713 MB / 0.5609 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.4339, allocations: 8 kB / 0.5609 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.434, allocations: 0 / 0.5609 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-06/0.434, allocations: 3.984 kB / 0.5609 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003285/0.4373, allocations: 1.864 MB / 0.5627 GB, free: 10.67 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.4373, allocations: 4 kB / 0.5627 GB, free: 10.67 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008806/0.4382, allocations: 163.8 kB / 0.5629 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.4382, allocations: 0 / 0.5629 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.097e-05/0.4383, allocations: 27.92 kB / 0.5629 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.4383, allocations: 4 kB / 0.5629 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.4383, allocations: 4.031 kB / 0.5629 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001983/0.4403, allocations: 1.268 MB / 0.5642 GB, free: 9.188 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003927/0.4407, allocations: 232.3 kB / 0.5644 GB, free: 8.941 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.4408, allocations: 20 kB / 0.5644 GB, free: 8.922 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004639/0.4413, allocations: 27.98 kB / 0.5644 GB, free: 8.895 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.251e-05/0.4414, allocations: 40.59 kB / 0.5645 GB, free: 8.855 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.874e-05/0.4414, allocations: 23.98 kB / 0.5645 GB, free: 8.832 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007666/0.4422, allocations: 0.5068 MB / 0.565 GB, free: 8.332 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4422, allocations: 0 / 0.565 GB, free: 8.332 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001788/0.444, allocations: 467.9 kB / 0.5654 GB, free: 7.875 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.002595/0.4466, allocations: 1.878 MB / 0.5673 GB, free: 5.961 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003982/0.4506, allocations: 1.915 MB / 0.5691 GB, free: 4.016 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.738e-06/0.4506, allocations: 4 kB / 0.5691 GB, free: 4.012 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006072/0.4512, allocations: 351.5 kB / 0.5695 GB, free: 3.672 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001369/0.4526, allocations: 251.8 kB / 0.5697 GB, free: 3.434 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01579/0.4684, allocations: 9.141 MB / 0.5786 GB, free: 9.93 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0011/0.4696, allocations: 1.201 MB / 0.5798 GB, free: 8.699 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000919/0.4705, allocations: 247.4 kB / 0.58 GB, free: 8.453 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006592/0.4712, allocations: 435.3 kB / 0.5805 GB, free: 8.027 MB / 446.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4712, allocations: 0 / 0.5805 GB, free: 8.027 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09247/0.5637, allocations: 27.67 MB / 0.6075 GB, free: 12.64 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.25/14.81, allocations: 3.938 kB / 0.6075 GB, free: 12.63 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)