Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",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.001278/0.001278, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001249/0.001249, allocations: 200 kB / 18.01 MB, free: 5.047 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.468/1.468, 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/package.mo): time 0.1866/0.1866, allocations: 38.03 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 71.89 kB / 457.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3441, allocations: 58.05 MB / 0.5036 GB, free: 7.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005499/0.3497, allocations: 4.532 MB / 0.508 GB, free: 4.277 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002012/0.3517, allocations: 1.493 MB / 0.5095 GB, free: 3.211 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003342/0.352, allocations: 16.88 kB / 0.5095 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004593/0.3525, allocations: 119.3 kB / 0.5096 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008583/0.3534, allocations: 276.4 kB / 0.5099 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003328/0.3538, allocations: 112.5 kB / 0.51 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007528/0.3545, allocations: 0.5006 MB / 0.5105 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002873/0.3548, allocations: 161.7 kB / 0.5106 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003033/0.3551, allocations: 200.3 kB / 0.5108 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003221/0.3555, allocations: 208.4 kB / 0.511 GB, free: 2.445 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.071e-05/0.3555, allocations: 33.47 kB / 0.5111 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.66e-05/0.3556, allocations: 26.38 kB / 0.5111 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.3557, allocations: 105.4 kB / 0.5112 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001752/0.3559, allocations: 185 kB / 0.5114 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004793/0.3564, allocations: 379.2 kB / 0.5117 GB, free: 2.121 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3564, allocations: 0.75 kB / 0.5117 GB, free: 2.121 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3564, allocations: 1.156 kB / 0.5117 GB, free: 2.121 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.3564, allocations: 0 / 0.5117 GB, free: 2.121 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0009887/0.3574, allocations: 0.6777 MB / 0.5124 GB, free: 1.566 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.3575, allocations: 14.02 kB / 0.5124 GB, free: 1.562 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.171e-05/0.3575, allocations: 66.11 kB / 0.5125 GB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.24e-05/0.3576, allocations: 40.67 kB / 0.5125 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000566/0.3582, allocations: 404.9 kB / 0.5129 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.3582, allocations: 19.09 kB / 0.5129 GB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.197e-05/0.3583, allocations: 37.77 kB / 0.5129 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004534/0.3587, allocations: 332.2 kB / 0.5133 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.851e-05/0.3588, allocations: 1.094 kB / 0.5133 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.652e-05/0.3588, allocations: 15.41 kB / 0.5133 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.3588, allocations: 7.359 kB / 0.5133 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003428/0.3592, allocations: 203.7 kB / 0.5135 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001434/0.3606, allocations: 1.483 MB / 0.5149 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004209/0.361, allocations: 194 kB / 0.5151 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.3612, allocations: 74.81 kB / 0.5152 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/0.3612, allocations: 11.09 kB / 0.5152 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.3612, allocations: 34.38 kB / 0.5152 GB, free: 15.4 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.823e-06/0.3613, allocations: 0 / 0.5152 GB, free: 15.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001169/0.3624, allocations: 0.7025 MB / 0.5159 GB, free: 14.87 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.502e-05/0.3625, allocations: 140.8 kB / 0.516 GB, free: 14.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003371/0.3629, allocations: 319.7 kB / 0.5164 GB, free: 14.53 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.3629, allocations: 31.08 kB / 0.5164 GB, free: 14.49 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001662/0.3631, allocations: 219 kB / 0.5166 GB, free: 14.31 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.295e-05/0.3632, allocations: 65.55 kB / 0.5167 GB, free: 14.26 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.492e-05/0.3633, allocations: 56.61 kB / 0.5167 GB, free: 14.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.3634, allocations: 340.2 kB / 0.517 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.3635, allocations: 49.81 kB / 0.5171 GB, free: 13.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.3637, allocations: 152.3 kB / 0.5172 GB, free: 13.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002906/0.364, allocations: 221.1 kB / 0.5174 GB, free: 13.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.364, allocations: 5.953 kB / 0.5174 GB, free: 13.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000404/0.3644, allocations: 255.7 kB / 0.5177 GB, free: 13.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.3645, allocations: 7.312 kB / 0.5177 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.3645, allocations: 3.625 kB / 0.5177 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.3645, allocations: 9.234 kB / 0.5177 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003874/0.3649, allocations: 81.88 kB / 0.5178 GB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001054/0.366, allocations: 1.378 MB / 0.5191 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001572/0.3661, allocations: 8.219 kB / 0.5191 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.821e-05/0.3662, allocations: 15.52 kB / 0.5191 GB, free: 11.95 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * 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 initialization (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002053/0.3664, allocations: 169.7 kB / 0.5193 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.839e-05/0.3665, allocations: 34.7 kB / 0.5193 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003394/0.3668, allocations: 184.2 kB / 0.5195 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.3668, allocations: 7.469 kB / 0.5195 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.3669, allocations: 1.25 kB / 0.5195 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.3669, allocations: 2.922 kB / 0.5195 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008999/0.3678, allocations: 0.5408 MB / 0.5201 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3678, allocations: 1.125 kB / 0.5201 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002467/0.368, allocations: 39.81 kB / 0.5201 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.3681, allocations: 1.688 kB / 0.5201 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.3681, allocations: 6.625 kB / 0.5201 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.3681, allocations: 10.33 kB / 0.5201 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.3681, allocations: 5.031 kB / 0.5201 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005385/0.3686, allocations: 497.7 kB / 0.5206 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.355e-05/0.3687, allocations: 103.7 kB / 0.5207 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/0.3688, allocations: 7.453 kB / 0.5207 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002031/0.369, allocations: 9.984 kB / 0.5207 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.494e-05/0.369, allocations: 22.47 kB / 0.5207 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.3691, allocations: 5.781 kB / 0.5207 GB, free: 10.76 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002402/0.3693, allocations: 223.5 kB / 0.521 GB, free: 10.63 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3693, allocations: 3.938 kB / 0.521 GB, free: 10.63 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004289/0.3697, allocations: 56.38 kB / 0.521 GB, free: 10.62 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * Single equations (assignments): 19 * 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.0007901/0.3705, allocations: 1.025 MB / 0.522 GB, free: 9.715 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003797/0.3709, allocations: 163.8 kB / 0.5222 GB, free: 9.664 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.371, allocations: 0 / 0.5222 GB, free: 9.664 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.3711, allocations: 66.23 kB / 0.5222 GB, free: 9.645 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007578/0.3718, allocations: 89.12 kB / 0.5223 GB, free: 9.613 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004313/0.3762, allocations: 3.297 MB / 0.5255 GB, free: 7.258 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004722/0.3766, allocations: 0.8002 MB / 0.5263 GB, free: 6.551 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001997/0.3769, allocations: 51.36 kB / 0.5264 GB, free: 6.539 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001859/0.3771, allocations: 111.4 kB / 0.5265 GB, free: 6.457 MB / 398.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3771, allocations: 0 / 0.5265 GB, free: 6.457 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03479/0.4119, allocations: 6.71 MB / 0.533 GB, free: 4.863 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.515/8.927, allocations: 4.266 kB / 0.533 GB, free: 4.863 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)