Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",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.00126/0.00126, allocations: 109.7 kB / 17.06 MB, free: 5.812 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.001194/0.001194, allocations: 200 kB / 18.01 MB, free: 4.941 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.345/1.345, 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/package.mo): time 0.1803/0.1803, allocations: 38.02 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 63.89 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3051/0.3064, allocations: 58.05 MB / 0.5036 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.00527/0.3117, allocations: 4.076 MB / 0.5076 GB, free: 4.797 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.313, allocations: 0.855 MB / 0.5084 GB, free: 4.191 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.3132, allocations: 19 kB / 0.5084 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00018/0.3134, allocations: 40.73 kB / 0.5085 GB, free: 4.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004919/0.3139, allocations: 167.4 kB / 0.5086 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.3142, allocations: 84.95 kB / 0.5087 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003993/0.3146, allocations: 404.1 kB / 0.5091 GB, free: 3.828 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002231/0.3148, allocations: 114.7 kB / 0.5092 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002676/0.3151, allocations: 180.2 kB / 0.5094 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003127/0.3154, allocations: 182.1 kB / 0.5096 GB, free: 3.633 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.159e-05/0.3155, allocations: 21.12 kB / 0.5096 GB, free: 3.633 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.794e-05/0.3155, allocations: 24 kB / 0.5096 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.3156, allocations: 87.41 kB / 0.5097 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.3158, allocations: 144.7 kB / 0.5098 GB, free: 3.504 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003419/0.3161, allocations: 281.1 kB / 0.5101 GB, free: 3.391 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3161, allocations: 5.094 kB / 0.5101 GB, free: 3.387 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3161, allocations: 0 / 0.5101 GB, free: 3.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.3161, allocations: 0 / 0.5101 GB, free: 3.387 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009383/0.3171, allocations: 0.6063 MB / 0.5107 GB, free: 2.879 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.3171, allocations: 14.23 kB / 0.5107 GB, free: 2.875 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.627e-05/0.3172, allocations: 56.02 kB / 0.5108 GB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.289e-05/0.3173, allocations: 43.55 kB / 0.5108 GB, free: 2.797 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004967/0.3178, allocations: 337.3 kB / 0.5111 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.3178, allocations: 18.5 kB / 0.5111 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/0.3179, allocations: 40.55 kB / 0.5112 GB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004101/0.3183, allocations: 293.6 kB / 0.5115 GB, free: 2.328 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.3184, allocations: 0 / 0.5115 GB, free: 2.328 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.378e-05/0.3184, allocations: 10.47 kB / 0.5115 GB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3184, allocations: 6.203 kB / 0.5115 GB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002923/0.3187, allocations: 183.8 kB / 0.5117 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001349/0.3201, allocations: 1.285 MB / 0.5129 GB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002706/0.3204, allocations: 119.8 kB / 0.513 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.632e-05/0.3204, allocations: 46.22 kB / 0.5131 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.3205, allocations: 5.062 kB / 0.5131 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.3205, allocations: 38.02 kB / 0.5131 GB, free: 1.004 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.3205, allocations: 0 / 0.5131 GB, free: 1.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008564/0.3214, allocations: 0.5338 MB / 0.5136 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.974e-05/0.3214, allocations: 114.1 kB / 0.5137 GB, free: 448 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000205/0.3216, allocations: 244.5 kB / 0.514 GB, free: 300 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.102e-05/0.3216, allocations: 25.7 kB / 0.514 GB, free: 268 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.254e-05/0.3217, allocations: 198.8 kB / 0.5142 GB, free: 96 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.842e-05/0.3218, allocations: 41.27 kB / 0.5142 GB, free: 64 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.232e-05/0.3218, allocations: 49.94 kB / 0.5143 GB, free: 28 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.322, allocations: 334.3 kB / 0.5146 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.826e-05/0.322, allocations: 38.33 kB / 0.5146 GB, free: 15.69 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.3222, allocations: 131 kB / 0.5148 GB, free: 15.56 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002307/0.3224, allocations: 195.1 kB / 0.5149 GB, free: 15.38 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3224, allocations: 1 kB / 0.5149 GB, free: 15.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004096/0.3228, allocations: 233.6 kB / 0.5152 GB, free: 15.26 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.3229, allocations: 10.28 kB / 0.5152 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.3229, allocations: 3.625 kB / 0.5152 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001257/0.323, allocations: 30.12 kB / 0.5152 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003457/0.3234, allocations: 61.22 kB / 0.5153 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.3234, allocations: 9.5 kB / 0.5153 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.3235, allocations: 8.5 kB / 0.5153 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.3236, allocations: 13.36 kB / 0.5153 GB, free: 15.23 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001489/0.3237, allocations: 154 kB / 0.5154 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.52e-05/0.3238, allocations: 24.17 kB / 0.5155 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002598/0.3241, allocations: 133.8 kB / 0.5156 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.3241, allocations: 6.906 kB / 0.5156 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3241, allocations: 2.688 kB / 0.5156 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3241, allocations: 3.938 kB / 0.5156 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003954/0.3245, allocations: 288.6 kB / 0.5159 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3245, allocations: 0.7969 kB / 0.5159 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.3247, allocations: 31.31 kB / 0.5159 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.3247, allocations: 2.391 kB / 0.5159 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.3247, allocations: 5.844 kB / 0.5159 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.078e-05/0.3247, allocations: 5.25 kB / 0.5159 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3247, allocations: 2.031 kB / 0.5159 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003769/0.3251, allocations: 372 kB / 0.5163 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.557e-05/0.3252, allocations: 96.44 kB / 0.5164 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.447e-05/0.3252, allocations: 3.516 kB / 0.5164 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.3254, allocations: 13.31 kB / 0.5164 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.208e-05/0.3254, allocations: 7.516 kB / 0.5164 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.3254, allocations: 3.969 kB / 0.5164 GB, free: 14.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001666/0.3256, allocations: 171.3 kB / 0.5166 GB, free: 14.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3256, allocations: 0 / 0.5166 GB, free: 14.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003738/0.326, allocations: 54.27 kB / 0.5166 GB, free: 14.22 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (14): * Single equations (assignments): 13 * 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.0006098/0.3266, allocations: 0.8974 MB / 0.5175 GB, free: 13.4 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003691/0.327, allocations: 214.4 kB / 0.5177 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.327, allocations: 0 / 0.5177 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.538e-05/0.3271, allocations: 49.8 kB / 0.5177 GB, free: 13.24 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005746/0.3277, allocations: 59.67 kB / 0.5178 GB, free: 13.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00327/0.331, allocations: 2.629 MB / 0.5204 GB, free: 11.2 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.3314, allocations: 0.7735 MB / 0.5211 GB, free: 10.49 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001379/0.3315, allocations: 30.48 kB / 0.5211 GB, free: 10.48 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.3317, allocations: 85.66 kB / 0.5212 GB, free: 10.41 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3317, allocations: 1.375 kB / 0.5212 GB, free: 10.41 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02675/0.3584, allocations: 4.864 MB / 0.526 GB, free: 9.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.1/10.46, allocations: 4.094 kB / 0.526 GB, free: 9.77 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000270051 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1)