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.001092/0.001092, allocations: 110.4 kB / 17.07 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.00118/0.00118, allocations: 198.8 kB / 18.01 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.338/1.338, 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.1833/0.1833, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 67.89 kB / 457.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3606/0.362, allocations: 58.05 MB / 0.5036 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.009975/0.3721, allocations: 9.25 MB / 0.5127 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006132/0.3782, allocations: 3.255 MB / 0.5158 GB, free: 14.72 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008733/0.3791, allocations: 39 kB / 0.5159 GB, free: 14.71 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001475/0.3807, allocations: 404 kB / 0.5163 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002199/0.3829, allocations: 0.8137 MB / 0.5171 GB, free: 14 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001195/0.3841, allocations: 480.5 kB / 0.5175 GB, free: 13.74 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002555/0.3866, allocations: 1.871 MB / 0.5193 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001778/0.3884, allocations: 1.123 MB / 0.5204 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00163/0.3901, allocations: 0.7676 MB / 0.5212 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001509/0.3916, allocations: 0.8058 MB / 0.522 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002078/0.3918, allocations: 139.6 kB / 0.5221 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007352/0.3926, allocations: 384.5 kB / 0.5225 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004885/0.3931, allocations: 0.495 MB / 0.523 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007609/0.3938, allocations: 0.7003 MB / 0.5236 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002818/0.3967, allocations: 1.997 MB / 0.5256 GB, free: 10.06 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3967, allocations: 0 / 0.5256 GB, free: 10.06 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3967, allocations: 1.312 kB / 0.5256 GB, free: 10.06 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.693e-05/0.3967, allocations: 0 / 0.5256 GB, free: 10.06 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.00354/0.4003, allocations: 1.668 MB / 0.5272 GB, free: 8.996 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.4003, allocations: 16.73 kB / 0.5272 GB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002318/0.4006, allocations: 173.6 kB / 0.5274 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007935/0.4014, allocations: 194.9 kB / 0.5276 GB, free: 8.793 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001945/0.4033, allocations: 0.9493 MB / 0.5285 GB, free: 8.227 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.203e-05/0.4034, allocations: 80.67 kB / 0.5286 GB, free: 8.188 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002976/0.4037, allocations: 125.8 kB / 0.5287 GB, free: 8.145 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002319/0.406, allocations: 1.342 MB / 0.53 GB, free: 7.508 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.464e-05/0.4061, allocations: 10.72 kB / 0.53 GB, free: 7.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/0.4062, allocations: 41.75 kB / 0.5301 GB, free: 7.469 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001184/0.4063, allocations: 70.83 kB / 0.5302 GB, free: 7.457 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001763/0.4081, allocations: 1.07 MB / 0.5312 GB, free: 6.961 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.007197/0.4153, allocations: 5.107 MB / 0.5362 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.4165, allocations: 0.7649 MB / 0.5369 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005268/0.417, allocations: 344.7 kB / 0.5373 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.279e-05/0.4171, allocations: 7.188 kB / 0.5373 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.311e-05/0.4171, allocations: 42.84 kB / 0.5373 GB, free: 2.062 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.495e-06/0.4171, allocations: 5.312 kB / 0.5373 GB, free: 2.059 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.005761/0.4229, allocations: 2.716 MB / 0.54 GB, free: 288 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.226e-05/0.423, allocations: 139.8 kB / 0.5401 GB, free: 124 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001114/0.4241, allocations: 0.7545 MB / 0.5408 GB, free: 15.69 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.253e-05/0.4242, allocations: 41.11 kB / 0.5409 GB, free: 15.64 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004279/0.4246, allocations: 0.5755 MB / 0.5414 GB, free: 15.13 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002173/0.4249, allocations: 261.1 kB / 0.5417 GB, free: 14.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002595/0.4251, allocations: 165.2 kB / 0.5418 GB, free: 14.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.4253, allocations: 339 kB / 0.5422 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005291/0.4258, allocations: 298.7 kB / 0.5424 GB, free: 14.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006608/0.4265, allocations: 0.5491 MB / 0.543 GB, free: 13.83 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001202/0.4277, allocations: 0.9085 MB / 0.5439 GB, free: 13.14 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.219e-06/0.4277, allocations: 2.219 kB / 0.5439 GB, free: 13.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002901/0.4306, allocations: 1.341 MB / 0.5452 GB, free: 12.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.4306, allocations: 7.938 kB / 0.5452 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.4307, allocations: 8.219 kB / 0.5452 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00139/0.4321, allocations: 421 kB / 0.5456 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006399/0.4327, allocations: 167.6 kB / 0.5458 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008704/0.4414, allocations: 5.298 MB / 0.5509 GB, free: 7.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001063/0.4425, allocations: 35.92 kB / 0.551 GB, free: 7.125 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-05/0.4426, allocations: 40 kB / 0.551 GB, free: 7.086 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001061/0.4437, allocations: 0.5604 MB / 0.5516 GB, free: 6.523 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006222/0.4443, allocations: 0.5295 MB / 0.5521 GB, free: 5.883 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001147/0.4455, allocations: 0.8819 MB / 0.5529 GB, free: 4.895 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.68e-06/0.4455, allocations: 7.938 kB / 0.5529 GB, free: 4.887 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.00252/0.448, allocations: 1.262 MB / 0.5542 GB, free: 3.613 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.4481, allocations: 8 kB / 0.5542 GB, free: 3.605 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.4481, allocations: 8 kB / 0.5542 GB, free: 3.598 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/0.4494, allocations: 417.2 kB / 0.5546 GB, free: 3.188 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000611/0.45, allocations: 163.7 kB / 0.5547 GB, free: 3.027 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007236/0.4573, allocations: 5.056 MB / 0.5597 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009767/0.4583, allocations: 39.98 kB / 0.5597 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.48e-05/0.4584, allocations: 36 kB / 0.5598 GB, free: 13.75 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.0003534/0.4587, allocations: 236 kB / 0.56 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002053/0.4589, allocations: 99.33 kB / 0.5601 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001556/0.4605, allocations: 0.8675 MB / 0.5609 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-06/0.4605, allocations: 8 kB / 0.5609 GB, free: 12.51 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.4605, allocations: 0 / 0.5609 GB, free: 12.51 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.789e-06/0.4605, allocations: 3.984 kB / 0.5609 GB, free: 12.51 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003123/0.4637, allocations: 1.864 MB / 0.5628 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.4637, allocations: 0 / 0.5628 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000802/0.4645, allocations: 163.8 kB / 0.5629 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.209e-06/0.4645, allocations: 4 kB / 0.5629 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.78e-05/0.4646, allocations: 23.92 kB / 0.5629 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.451e-06/0.4646, allocations: 4 kB / 0.5629 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.4646, allocations: 0 / 0.5629 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001734/0.4663, allocations: 1.272 MB / 0.5642 GB, free: 9.098 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003584/0.4667, allocations: 232.3 kB / 0.5644 GB, free: 8.852 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.4668, allocations: 16 kB / 0.5644 GB, free: 8.836 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004612/0.4673, allocations: 27.98 kB / 0.5644 GB, free: 8.809 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.669e-05/0.4674, allocations: 48.53 kB / 0.5645 GB, free: 8.762 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.404e-05/0.4674, allocations: 27.98 kB / 0.5645 GB, free: 8.734 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006185/0.4681, allocations: 0.5107 MB / 0.565 GB, free: 8.23 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4681, allocations: 0 / 0.565 GB, free: 8.23 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001643/0.4697, allocations: 463.9 kB / 0.5655 GB, free: 7.777 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.002156/0.4719, allocations: 1.862 MB / 0.5673 GB, free: 5.875 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003357/0.4752, allocations: 1.916 MB / 0.5691 GB, free: 3.93 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.4753, allocations: 4.5 kB / 0.5692 GB, free: 3.926 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005199/0.4758, allocations: 355.5 kB / 0.5695 GB, free: 3.582 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/0.477, allocations: 249.3 kB / 0.5697 GB, free: 3.348 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01405/0.4911, allocations: 9.15 MB / 0.5787 GB, free: 9.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008784/0.492, allocations: 1.205 MB / 0.5798 GB, free: 8.605 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008734/0.4929, allocations: 243.4 kB / 0.5801 GB, free: 8.363 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006129/0.4935, allocations: 435.3 kB / 0.5805 GB, free: 7.938 MB / 446.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4935, allocations: 0 / 0.5805 GB, free: 7.938 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07923/0.5727, allocations: 27.66 MB / 0.6075 GB, free: 12.55 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.56, allocations: 3.938 kB / 0.6075 GB, free: 12.55 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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)