Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.001465/0.001465, allocations: 109.2 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.00164/0.00164, allocations: 188 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.57/1.57, 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.1897/0.1897, allocations: 38.03 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 63.89 kB / 457.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.319/0.3203, allocations: 58.06 MB / 0.5036 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.004824/0.3252, allocations: 4.056 MB / 0.5076 GB, free: 4.738 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.3265, allocations: 0.9158 MB / 0.5085 GB, free: 4.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001694/0.3267, allocations: 15.12 kB / 0.5085 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001798/0.3269, allocations: 47.02 kB / 0.5085 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004861/0.3274, allocations: 178.1 kB / 0.5087 GB, free: 3.949 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002144/0.3276, allocations: 96.05 kB / 0.5088 GB, free: 3.898 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004066/0.328, allocations: 400.8 kB / 0.5092 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002284/0.3282, allocations: 115.9 kB / 0.5093 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002709/0.3285, allocations: 184.8 kB / 0.5095 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003079/0.3288, allocations: 183.2 kB / 0.5096 GB, free: 3.527 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.214e-05/0.3289, allocations: 22.59 kB / 0.5097 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.088e-05/0.329, allocations: 20.5 kB / 0.5097 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.3291, allocations: 87.81 kB / 0.5098 GB, free: 3.488 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.3292, allocations: 139.9 kB / 0.5099 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003668/0.3296, allocations: 296.5 kB / 0.5102 GB, free: 3.281 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3296, allocations: 0 / 0.5102 GB, free: 3.281 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3296, allocations: 0 / 0.5102 GB, free: 3.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.3296, allocations: 3.938 kB / 0.5102 GB, free: 3.277 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.0008699/0.3305, allocations: 0.596 MB / 0.5108 GB, free: 2.777 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.3305, allocations: 13.91 kB / 0.5108 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.022e-05/0.3306, allocations: 55.33 kB / 0.5108 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.02e-05/0.3307, allocations: 41.09 kB / 0.5109 GB, free: 2.699 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004567/0.3311, allocations: 335 kB / 0.5112 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.3312, allocations: 20.47 kB / 0.5112 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.396e-05/0.3312, allocations: 19.45 kB / 0.5112 GB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003996/0.3316, allocations: 294.9 kB / 0.5115 GB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.3316, allocations: 1.125 kB / 0.5115 GB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.225e-05/0.3317, allocations: 6.125 kB / 0.5115 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.3317, allocations: 6.469 kB / 0.5115 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002854/0.332, allocations: 180.9 kB / 0.5117 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.3331, allocations: 1.239 MB / 0.5129 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002975/0.3334, allocations: 114.3 kB / 0.513 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.528e-05/0.3335, allocations: 47.3 kB / 0.5131 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.3335, allocations: 1.344 kB / 0.5131 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.3336, allocations: 32.73 kB / 0.5131 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 2.134e-06/0.3336, allocations: 0 / 0.5131 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008161/0.3344, allocations: 497.5 kB / 0.5136 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.211e-05/0.3344, allocations: 82.45 kB / 0.5136 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002411/0.3347, allocations: 253.5 kB / 0.5139 GB, free: 356 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.232e-05/0.3347, allocations: 30.83 kB / 0.5139 GB, free: 320 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.969e-05/0.3348, allocations: 202.6 kB / 0.5141 GB, free: 144 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.076e-05/0.3348, allocations: 44.05 kB / 0.5142 GB, free: 108 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.218e-05/0.3349, allocations: 44.39 kB / 0.5142 GB, free: 76 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3351, allocations: 331.6 kB / 0.5145 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.821e-05/0.3351, allocations: 41.23 kB / 0.5146 GB, free: 15.74 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.3353, allocations: 131.5 kB / 0.5147 GB, free: 15.6 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000237/0.3355, allocations: 190 kB / 0.5149 GB, free: 15.42 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3355, allocations: 1.062 kB / 0.5149 GB, free: 15.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003498/0.3359, allocations: 215.3 kB / 0.5151 GB, free: 15.31 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.3359, allocations: 6.797 kB / 0.5151 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.3359, allocations: 3.312 kB / 0.5151 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.336, allocations: 9.188 kB / 0.5151 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.3362, allocations: 44.78 kB / 0.5151 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.3362, allocations: 4.516 kB / 0.5151 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001286/0.3363, allocations: 12.22 kB / 0.5151 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.3363, allocations: 13.48 kB / 0.5152 GB, free: 15.29 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 (24): * Single equations (assignments): 24 * 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.000153/0.3365, allocations: 154.2 kB / 0.5153 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.834e-05/0.3366, allocations: 22.88 kB / 0.5153 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002641/0.3368, allocations: 138 kB / 0.5155 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.3368, allocations: 1.25 kB / 0.5155 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3368, allocations: 1 kB / 0.5155 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3369, allocations: 5.812 kB / 0.5155 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006107/0.3375, allocations: 481.6 kB / 0.5159 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.3375, allocations: 0.6094 kB / 0.5159 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.3376, allocations: 21.84 kB / 0.5159 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.3376, allocations: 1.984 kB / 0.5159 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.3377, allocations: 6.047 kB / 0.5159 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.3377, allocations: 1.438 kB / 0.516 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3377, allocations: 0 / 0.516 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003209/0.338, allocations: 283.8 kB / 0.5162 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.449e-05/0.3381, allocations: 96.16 kB / 0.5163 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.512e-05/0.3381, allocations: 14 kB / 0.5163 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.3382, allocations: 2.062 kB / 0.5163 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.056e-05/0.3383, allocations: 11.5 kB / 0.5163 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.3383, allocations: 7.266 kB / 0.5163 GB, free: 14.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001506/0.3384, allocations: 172.2 kB / 0.5165 GB, free: 14.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3384, allocations: 5.344 kB / 0.5165 GB, free: 14.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003225/0.3388, allocations: 43.47 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: 1 (ind.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 (13): * Single equations (assignments): 12 * 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.0005553/0.3393, allocations: 0.812 MB / 0.5174 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002267/0.3396, allocations: 114.8 kB / 0.5175 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3396, allocations: 0 / 0.5175 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.256e-05/0.3397, allocations: 46.16 kB / 0.5175 GB, free: 13.43 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005227/0.3402, allocations: 65.59 kB / 0.5176 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/0.343, allocations: 2.447 MB / 0.52 GB, free: 11.53 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.3434, allocations: 0.7748 MB / 0.5207 GB, free: 10.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001389/0.3435, allocations: 37.64 kB / 0.5207 GB, free: 10.8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.3437, allocations: 80.72 kB / 0.5208 GB, free: 10.74 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3437, allocations: 0 / 0.5208 GB, free: 10.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02294/0.3666, allocations: 4.602 MB / 0.5253 GB, free: 10.13 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.229/8.595, allocations: 8.266 kB / 0.5253 GB, free: 10.13 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)