Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",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.001169/0.001169, 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.001184/0.001184, 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.329/1.329, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1802/0.1802, allocations: 38.03 MB / 329.9 MB, free: 8.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 63.89 kB / 457.6 MB, free: 7.305 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3252, allocations: 58.06 MB / 0.5036 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.005884/0.3311, allocations: 4.19 MB / 0.5077 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0016/0.3327, allocations: 0.9473 MB / 0.5086 GB, free: 3.969 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001855/0.3329, allocations: 11.75 kB / 0.5086 GB, free: 3.965 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002113/0.3332, allocations: 52.92 kB / 0.5087 GB, free: 3.934 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005691/0.3338, allocations: 199 kB / 0.5089 GB, free: 3.816 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002405/0.334, allocations: 105.9 kB / 0.509 GB, free: 3.762 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005457/0.3346, allocations: 480.7 kB / 0.5094 GB, free: 3.555 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002821/0.3349, allocations: 146.5 kB / 0.5096 GB, free: 3.508 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003416/0.3352, allocations: 218.7 kB / 0.5098 GB, free: 3.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004513/0.3357, allocations: 251.2 kB / 0.51 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.126e-05/0.3357, allocations: 26.12 kB / 0.5101 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.753e-05/0.3358, allocations: 31.97 kB / 0.5101 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001553/0.336, allocations: 120 kB / 0.5102 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001978/0.3362, allocations: 179.2 kB / 0.5104 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004878/0.3367, allocations: 378.1 kB / 0.5107 GB, free: 3.008 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/0.3367, allocations: 4 kB / 0.5107 GB, free: 3.004 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3367, allocations: 5.094 kB / 0.5107 GB, free: 3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.3367, allocations: 0 / 0.5107 GB, free: 3 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.001332/0.3381, allocations: 0.7018 MB / 0.5114 GB, free: 2.465 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.3381, allocations: 16.52 kB / 0.5114 GB, free: 2.457 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.888e-05/0.3382, allocations: 67.23 kB / 0.5115 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.133e-05/0.3383, allocations: 44.08 kB / 0.5116 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000679/0.3389, allocations: 404.7 kB / 0.5119 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.415e-05/0.339, allocations: 18.84 kB / 0.512 GB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.745e-05/0.339, allocations: 25.3 kB / 0.512 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005544/0.3396, allocations: 361.7 kB / 0.5123 GB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.909e-05/0.3396, allocations: 1.531 kB / 0.5123 GB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.328e-05/0.3397, allocations: 11.45 kB / 0.5123 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.3397, allocations: 6.531 kB / 0.5123 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004423/0.3401, allocations: 255.3 kB / 0.5126 GB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001609/0.3418, allocations: 1.446 MB / 0.514 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002428/0.342, allocations: 160.9 kB / 0.5142 GB, free: 0.582 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001188/0.3421, allocations: 76.72 kB / 0.5142 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.3422, allocations: 6.906 kB / 0.5142 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.3422, allocations: 45.17 kB / 0.5143 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.3422, allocations: 0 / 0.5143 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001041/0.3433, allocations: 0.6762 MB / 0.5149 GB, free: 36 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.591e-05/0.3434, allocations: 79.02 kB / 0.515 GB, free: 15.94 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003787/0.3437, allocations: 300 kB / 0.5153 GB, free: 15.78 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.3438, allocations: 35.05 kB / 0.5153 GB, free: 15.74 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.3439, allocations: 216.4 kB / 0.5155 GB, free: 15.56 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.979e-05/0.344, allocations: 60.31 kB / 0.5156 GB, free: 15.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.47e-05/0.3441, allocations: 53.36 kB / 0.5156 GB, free: 15.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.3442, allocations: 338.5 kB / 0.516 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.3444, allocations: 68.36 kB / 0.516 GB, free: 15.14 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002017/0.3446, allocations: 178.5 kB / 0.5162 GB, free: 14.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000341/0.3449, allocations: 257.1 kB / 0.5164 GB, free: 14.79 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3449, allocations: 0 / 0.5164 GB, free: 14.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004374/0.3454, allocations: 292.2 kB / 0.5167 GB, free: 14.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.3454, allocations: 7.406 kB / 0.5167 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.3454, allocations: 3.469 kB / 0.5167 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.3454, allocations: 5.344 kB / 0.5167 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/0.3457, allocations: 56.47 kB / 0.5168 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/0.3457, allocations: 10.27 kB / 0.5168 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001669/0.3459, allocations: 17.19 kB / 0.5168 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.3459, allocations: 13.78 kB / 0.5168 GB, free: 14.64 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 (29): * Single equations (assignments): 29 * 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.0001932/0.3461, allocations: 176.5 kB / 0.517 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.082e-05/0.3462, allocations: 28.86 kB / 0.517 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004687/0.3467, allocations: 230 kB / 0.5173 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.3467, allocations: 3.578 kB / 0.5173 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3467, allocations: 1.031 kB / 0.5173 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.3467, allocations: 2.719 kB / 0.5173 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001021/0.3477, allocations: 0.6227 MB / 0.5179 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.3477, allocations: 1.344 kB / 0.5179 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002252/0.348, allocations: 46.08 kB / 0.5179 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.348, allocations: 1.25 kB / 0.5179 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.348, allocations: 11.16 kB / 0.5179 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.348, allocations: 1.828 kB / 0.5179 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.348, allocations: 1.125 kB / 0.5179 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006369/0.3487, allocations: 431.7 kB / 0.5183 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.3488, allocations: 104.6 kB / 0.5184 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.642e-05/0.3488, allocations: 10.67 kB / 0.5184 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.349, allocations: 10.27 kB / 0.5185 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.61e-05/0.349, allocations: 10.27 kB / 0.5185 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-05/0.3491, allocations: 9.422 kB / 0.5185 GB, free: 13.54 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002386/0.3493, allocations: 212.2 kB / 0.5187 GB, free: 13.42 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3493, allocations: 0 / 0.5187 GB, free: 13.42 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003647/0.3497, allocations: 56.94 kB / 0.5187 GB, free: 13.42 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * 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.0008774/0.3506, allocations: 0.9581 MB / 0.5197 GB, free: 12.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003852/0.351, allocations: 198.3 kB / 0.5199 GB, free: 12.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.351, allocations: 0 / 0.5199 GB, free: 12.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001471/0.3511, allocations: 86.97 kB / 0.5199 GB, free: 12.55 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005515/0.3517, allocations: 74.33 kB / 0.52 GB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003193/0.3549, allocations: 2.907 MB / 0.5228 GB, free: 10.47 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/0.3553, allocations: 0.8024 MB / 0.5236 GB, free: 9.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001627/0.3554, allocations: 50.31 kB / 0.5237 GB, free: 9.762 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/0.3556, allocations: 108 kB / 0.5238 GB, free: 9.684 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3556, allocations: 0 / 0.5238 GB, free: 9.684 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0239/0.3795, allocations: 5.987 MB / 0.5296 GB, free: 8.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.327/8.706, allocations: 13.05 kB / 0.5296 GB, free: 8.168 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1)