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.001527/0.001527, allocations: 105.5 kB / 17.06 MB, free: 6.016 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.001704/0.001704, allocations: 192 kB / 18 MB, free: 5.102 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.503/1.503, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1904/0.1904, allocations: 38.04 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 71.88 kB / 457.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3335, allocations: 58.05 MB / 0.5036 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.004584/0.3381, allocations: 4.084 MB / 0.5076 GB, free: 4.602 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.3393, allocations: 0.8491 MB / 0.5084 GB, free: 4 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001775/0.3395, allocations: 15.16 kB / 0.5084 GB, free: 3.992 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001863/0.3397, allocations: 43.97 kB / 0.5085 GB, free: 3.965 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000443/0.3402, allocations: 171.2 kB / 0.5087 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002015/0.3404, allocations: 81.16 kB / 0.5087 GB, free: 3.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004343/0.3408, allocations: 406.4 kB / 0.5091 GB, free: 3.633 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002131/0.3411, allocations: 111.6 kB / 0.5092 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002434/0.3413, allocations: 173.3 kB / 0.5094 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003181/0.3416, allocations: 183.4 kB / 0.5096 GB, free: 3.441 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.417e-05/0.3417, allocations: 23.69 kB / 0.5096 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.827e-05/0.3418, allocations: 26.16 kB / 0.5096 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.3419, allocations: 82.72 kB / 0.5097 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001399/0.342, allocations: 143 kB / 0.5098 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003406/0.3424, allocations: 282.2 kB / 0.5101 GB, free: 3.199 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.3424, allocations: 0 / 0.5101 GB, free: 3.199 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.3424, allocations: 1.125 kB / 0.5101 GB, free: 3.199 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.3424, allocations: 4.875 kB / 0.5101 GB, free: 3.195 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.0009243/0.3433, allocations: 0.6049 MB / 0.5107 GB, free: 2.688 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.3434, allocations: 14.73 kB / 0.5107 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.675e-05/0.3434, allocations: 58.94 kB / 0.5108 GB, free: 2.629 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.272e-05/0.3435, allocations: 36.83 kB / 0.5108 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004712/0.344, allocations: 337.6 kB / 0.5111 GB, free: 2.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.344, allocations: 17.41 kB / 0.5111 GB, free: 2.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.3442, allocations: 44.84 kB / 0.5112 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004291/0.3446, allocations: 288.3 kB / 0.5115 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.3446, allocations: 1.875 kB / 0.5115 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.328e-05/0.3446, allocations: 10.62 kB / 0.5115 GB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.3447, allocations: 5.531 kB / 0.5115 GB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000306/0.345, allocations: 188.6 kB / 0.5117 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.3463, allocations: 1.28 MB / 0.5129 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002746/0.3466, allocations: 125 kB / 0.513 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.802e-05/0.3467, allocations: 45.47 kB / 0.5131 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.3467, allocations: 1.594 kB / 0.5131 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.916e-05/0.3467, allocations: 36.03 kB / 0.5131 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 2.084e-06/0.3467, allocations: 1.281 kB / 0.5131 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.000873/0.3476, allocations: 0.5422 MB / 0.5136 GB, free: 384 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.3477, allocations: 104.9 kB / 0.5137 GB, free: 256 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002247/0.3479, allocations: 243.7 kB / 0.514 GB, free: 108 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.3479, allocations: 34.83 kB / 0.514 GB, free: 68 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001726/0.3481, allocations: 198.6 kB / 0.5142 GB, free: 15.9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.476e-05/0.3481, allocations: 37.77 kB / 0.5142 GB, free: 15.87 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.366e-05/0.3482, allocations: 52.89 kB / 0.5143 GB, free: 15.83 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3484, allocations: 331.6 kB / 0.5146 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.3485, allocations: 37.66 kB / 0.5146 GB, free: 15.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.3487, allocations: 129.3 kB / 0.5147 GB, free: 15.37 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002606/0.349, allocations: 194.2 kB / 0.5149 GB, free: 15.19 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.349, allocations: 5.672 kB / 0.5149 GB, free: 15.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004449/0.3494, allocations: 230.2 kB / 0.5152 GB, free: 15.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.3495, allocations: 7.094 kB / 0.5152 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.3495, allocations: 7.25 kB / 0.5152 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001362/0.3496, allocations: 34.45 kB / 0.5152 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003364/0.35, allocations: 60.11 kB / 0.5153 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.35, allocations: 5.969 kB / 0.5153 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00014/0.3501, allocations: 8.719 kB / 0.5153 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.033e-05/0.3502, allocations: 12.56 kB / 0.5153 GB, free: 15.04 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.0001857/0.3503, allocations: 153.4 kB / 0.5154 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.502e-05/0.3504, allocations: 21.84 kB / 0.5155 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002872/0.3507, allocations: 143.6 kB / 0.5156 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.3507, allocations: 7.297 kB / 0.5156 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.3507, allocations: 3.938 kB / 0.5156 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.3508, allocations: 2.422 kB / 0.5156 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004293/0.3512, allocations: 284 kB / 0.5159 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.3512, allocations: 4.875 kB / 0.5159 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000169/0.3514, allocations: 30.88 kB / 0.5159 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.3514, allocations: 1.375 kB / 0.5159 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.3514, allocations: 6.109 kB / 0.5159 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.3514, allocations: 6.016 kB / 0.5159 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3514, allocations: 5.156 kB / 0.5159 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004372/0.3519, allocations: 365.2 kB / 0.5163 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.828e-05/0.352, allocations: 95.08 kB / 0.5164 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.463e-05/0.352, allocations: 3.188 kB / 0.5164 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/0.3522, allocations: 10.16 kB / 0.5164 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.847e-05/0.3522, allocations: 11.56 kB / 0.5164 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.3522, allocations: 7.875 kB / 0.5164 GB, free: 14.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001817/0.3524, allocations: 171 kB / 0.5166 GB, free: 14.04 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3524, allocations: 1.062 kB / 0.5166 GB, free: 14.04 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000408/0.3529, allocations: 49.19 kB / 0.5166 GB, free: 14.03 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.0007427/0.3536, allocations: 0.8988 MB / 0.5175 GB, free: 13.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003942/0.354, allocations: 212.8 kB / 0.5177 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.354, allocations: 0.875 kB / 0.5177 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.553e-05/0.3541, allocations: 49.92 kB / 0.5177 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005635/0.3547, allocations: 58.34 kB / 0.5178 GB, free: 13.03 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003636/0.3583, allocations: 2.637 MB / 0.5204 GB, free: 11 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004252/0.3588, allocations: 0.769 MB / 0.5211 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001332/0.3589, allocations: 26.53 kB / 0.5211 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.3591, allocations: 89.95 kB / 0.5212 GB, free: 10.22 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3591, allocations: 1.156 kB / 0.5212 GB, free: 10.22 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03172/0.3908, allocations: 4.856 MB / 0.526 GB, free: 9.578 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/10.76, allocations: 4.188 kB / 0.526 GB, free: 9.578 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)