Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.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.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",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.001397/0.001403, allocations: 113.6 kB / 17.06 MB, free: 6.012 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.001527/0.001527, allocations: 191 kB / 18 MB, free: 5.098 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.301/1.301, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1761/0.1761, allocations: 38.03 MB / 329.9 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 63.91 kB / 457.6 MB, free: 7.391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3097, allocations: 58.05 MB / 0.5036 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.007149/0.317, allocations: 4.431 MB / 0.5079 GB, free: 4.422 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002412/0.3194, allocations: 1.416 MB / 0.5093 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002248/0.3197, allocations: 13.44 kB / 0.5093 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.3207, allocations: 380 kB / 0.5097 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004727/0.3212, allocations: 232 kB / 0.5099 GB, free: 3.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006327/0.3218, allocations: 247.1 kB / 0.5101 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005822/0.3224, allocations: 0.5294 MB / 0.5106 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004388/0.3229, allocations: 280.2 kB / 0.5109 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003525/0.3232, allocations: 246 kB / 0.5112 GB, free: 2.531 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004608/0.3237, allocations: 295.2 kB / 0.5114 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.828e-05/0.3238, allocations: 32.34 kB / 0.5115 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003165/0.3241, allocations: 137.9 kB / 0.5116 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002545/0.3244, allocations: 228.9 kB / 0.5118 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002483/0.3246, allocations: 237 kB / 0.512 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007397/0.3254, allocations: 0.5682 MB / 0.5126 GB, free: 1.957 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3254, allocations: 1.406 kB / 0.5126 GB, free: 1.957 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3254, allocations: 0 / 0.5126 GB, free: 1.957 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.3254, allocations: 0 / 0.5126 GB, free: 1.957 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001166/0.3266, allocations: 0.7488 MB / 0.5133 GB, free: 1.371 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.3266, allocations: 17.27 kB / 0.5133 GB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.178e-05/0.3267, allocations: 82.08 kB / 0.5134 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005497/0.3273, allocations: 86.2 kB / 0.5135 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000638/0.3279, allocations: 407.9 kB / 0.5139 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.328, allocations: 28.78 kB / 0.5139 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.3281, allocations: 54.47 kB / 0.514 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008291/0.3289, allocations: 0.6187 MB / 0.5146 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.308e-05/0.329, allocations: 6.984 kB / 0.5146 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.373e-05/0.329, allocations: 17.28 kB / 0.5146 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001198/0.3291, allocations: 27.73 kB / 0.5146 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000714/0.3299, allocations: 486.5 kB / 0.5151 GB, free: 428 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003236/0.3331, allocations: 2.894 MB / 0.5179 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004326/0.3335, allocations: 228 kB / 0.5181 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002271/0.3338, allocations: 145.2 kB / 0.5183 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.205e-05/0.3338, allocations: 13.11 kB / 0.5183 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.3339, allocations: 36.8 kB / 0.5183 GB, free: 13.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.713e-06/0.3339, allocations: 0 / 0.5183 GB, free: 13.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001554/0.3354, allocations: 0.971 MB / 0.5193 GB, free: 13.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.608e-05/0.3355, allocations: 81.11 kB / 0.5193 GB, free: 13.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003197/0.3358, allocations: 332.1 kB / 0.5197 GB, free: 13.06 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/0.3359, allocations: 31.05 kB / 0.5197 GB, free: 13.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/0.336, allocations: 279.9 kB / 0.52 GB, free: 12.79 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.937e-05/0.3361, allocations: 106.6 kB / 0.5201 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.3363, allocations: 93.11 kB / 0.5201 GB, free: 12.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.3364, allocations: 350.5 kB / 0.5205 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002152/0.3366, allocations: 145 kB / 0.5206 GB, free: 12.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003496/0.337, allocations: 353.4 kB / 0.521 GB, free: 11.97 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006055/0.3376, allocations: 0.518 MB / 0.5215 GB, free: 11.58 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.3376, allocations: 5.906 kB / 0.5215 GB, free: 11.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007992/0.3384, allocations: 0.5254 MB / 0.522 GB, free: 11.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.3384, allocations: 7.781 kB / 0.522 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.3384, allocations: 7.781 kB / 0.522 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.3385, allocations: 9 kB / 0.522 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000434/0.3389, allocations: 120 kB / 0.5221 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.3389, allocations: 12.36 kB / 0.5221 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000254/0.3392, allocations: 33.89 kB / 0.5222 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.564e-05/0.3392, allocations: 26.75 kB / 0.5222 GB, free: 11.33 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002138/0.3395, allocations: 220.7 kB / 0.5224 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.394e-05/0.3395, allocations: 30.94 kB / 0.5224 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005585/0.3401, allocations: 368.5 kB / 0.5228 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.3401, allocations: 4.125 kB / 0.5228 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3401, allocations: 0 / 0.5228 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.3401, allocations: 1.375 kB / 0.5228 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001378/0.3415, allocations: 0.887 MB / 0.5237 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.3415, allocations: 2.5 kB / 0.5237 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003298/0.3419, allocations: 67.86 kB / 0.5237 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.3419, allocations: 2.297 kB / 0.5237 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.875e-05/0.3419, allocations: 13.67 kB / 0.5237 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.3419, allocations: 2.75 kB / 0.5237 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3419, allocations: 5.156 kB / 0.5237 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007619/0.3427, allocations: 0.5827 MB / 0.5243 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.528e-05/0.3428, allocations: 112.2 kB / 0.5244 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.691e-05/0.3429, allocations: 16.77 kB / 0.5244 GB, free: 9.988 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00019/0.3431, allocations: 10.89 kB / 0.5244 GB, free: 9.984 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.938e-05/0.3431, allocations: 16.23 kB / 0.5245 GB, free: 9.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.41e-05/0.3431, allocations: 12.83 kB / 0.5245 GB, free: 9.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002213/0.3434, allocations: 220 kB / 0.5247 GB, free: 9.867 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3434, allocations: 0 / 0.5247 GB, free: 9.867 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004651/0.3438, allocations: 93.06 kB / 0.5248 GB, free: 9.855 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (31): * Single equations (assignments): 30 * 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.001014/0.3449, allocations: 1.138 MB / 0.5259 GB, free: 8.984 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006208/0.3455, allocations: 362.4 kB / 0.5262 GB, free: 8.879 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3455, allocations: 1.812 kB / 0.5262 GB, free: 8.879 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002138/0.3457, allocations: 144.3 kB / 0.5264 GB, free: 8.836 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005237/0.3463, allocations: 80.86 kB / 0.5264 GB, free: 8.801 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004729/0.351, allocations: 3.985 MB / 0.5303 GB, free: 6.109 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004575/0.3515, allocations: 0.8543 MB / 0.5312 GB, free: 5.395 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003549/0.3518, allocations: 131.4 kB / 0.5313 GB, free: 5.379 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002051/0.3521, allocations: 140.7 kB / 0.5314 GB, free: 5.277 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3521, allocations: 0 / 0.5314 GB, free: 5.277 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02646/0.3785, allocations: 7.087 MB / 0.5384 GB, free: 2.426 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.889/8.267, allocations: 9.172 kB / 0.5384 GB, free: 2.418 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)