Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.001211/0.001211, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001297/0.001297, allocations: 191 kB / 18 MB, free: 5.09 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.37/1.37, 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.1807/0.1807, allocations: 38.04 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 75.89 kB / 457.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3454, allocations: 58.06 MB / 0.5036 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005441/0.3509, allocations: 3.911 MB / 0.5074 GB, free: 4.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001587/0.3525, allocations: 0.8701 MB / 0.5083 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000311/0.3529, allocations: 10.44 kB / 0.5083 GB, free: 4.137 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002291/0.3531, allocations: 41.2 kB / 0.5083 GB, free: 4.113 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006797/0.3538, allocations: 175.3 kB / 0.5085 GB, free: 4.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002546/0.3541, allocations: 87.03 kB / 0.5086 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004934/0.3546, allocations: 375.8 kB / 0.5089 GB, free: 3.793 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001903/0.3548, allocations: 80.06 kB / 0.509 GB, free: 3.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00033/0.3551, allocations: 170.5 kB / 0.5092 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003496/0.3555, allocations: 172.5 kB / 0.5093 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.951e-05/0.3556, allocations: 16.38 kB / 0.5094 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.59e-05/0.3556, allocations: 21.62 kB / 0.5094 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.3558, allocations: 75.52 kB / 0.5095 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001695/0.3559, allocations: 123.3 kB / 0.5096 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004169/0.3564, allocations: 265 kB / 0.5098 GB, free: 3.406 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3564, allocations: 5.062 kB / 0.5098 GB, free: 3.402 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3564, allocations: 0 / 0.5098 GB, free: 3.402 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.266e-05/0.3564, allocations: 0 / 0.5098 GB, free: 3.402 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001001/0.3574, allocations: 0.5586 MB / 0.5104 GB, free: 2.926 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.3575, allocations: 13.39 kB / 0.5104 GB, free: 2.922 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.201e-05/0.3575, allocations: 62.52 kB / 0.5104 GB, free: 2.863 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.237e-05/0.3576, allocations: 31.23 kB / 0.5105 GB, free: 2.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004739/0.3581, allocations: 327.6 kB / 0.5108 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.3581, allocations: 18.09 kB / 0.5108 GB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.812e-05/0.3582, allocations: 20.84 kB / 0.5108 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00039/0.3586, allocations: 270.1 kB / 0.5111 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.3586, allocations: 1.469 kB / 0.5111 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.158e-05/0.3586, allocations: 10.66 kB / 0.5111 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.3586, allocations: 4.594 kB / 0.5111 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002703/0.3589, allocations: 165.1 kB / 0.5113 GB, free: 2.336 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.36, allocations: 1.173 MB / 0.5124 GB, free: 1.324 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00013/0.3602, allocations: 79.59 kB / 0.5125 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.576e-05/0.3602, allocations: 27.03 kB / 0.5125 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.56e-05/0.3602, allocations: 5 kB / 0.5125 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.3603, allocations: 37.25 kB / 0.5125 GB, free: 1.191 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.3603, allocations: 0 / 0.5125 GB, free: 1.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006616/0.3609, allocations: 418.2 kB / 0.5129 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.179e-05/0.361, allocations: 79.42 kB / 0.513 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002621/0.3612, allocations: 256 kB / 0.5133 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.3613, allocations: 26.98 kB / 0.5133 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.806e-05/0.3614, allocations: 191.8 kB / 0.5135 GB, free: 384 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.419e-05/0.3614, allocations: 26.84 kB / 0.5135 GB, free: 364 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.23e-05/0.3615, allocations: 42.66 kB / 0.5135 GB, free: 332 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.888e-05/0.3616, allocations: 338.9 kB / 0.5139 GB, free: 16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.655e-05/0.3616, allocations: 27.08 kB / 0.5139 GB, free: 15.99 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001019/0.3617, allocations: 119.2 kB / 0.514 GB, free: 15.86 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001837/0.3619, allocations: 165.8 kB / 0.5142 GB, free: 15.69 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.3619, allocations: 1.625 kB / 0.5142 GB, free: 15.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002721/0.3622, allocations: 186.5 kB / 0.5143 GB, free: 15.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.3622, allocations: 10.44 kB / 0.5143 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.3623, allocations: 3.344 kB / 0.5144 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.3623, allocations: 9.969 kB / 0.5144 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.3624, allocations: 47.47 kB / 0.5144 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.3625, allocations: 18.7 kB / 0.5144 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.3626, allocations: 3.312 kB / 0.5144 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.3626, allocations: 12.41 kB / 0.5144 GB, free: 15.56 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 (22): * Single equations (assignments): 22 * 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.0001309/0.3628, allocations: 147.8 kB / 0.5146 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.677e-05/0.3628, allocations: 25.58 kB / 0.5146 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000166/0.363, allocations: 94.8 kB / 0.5147 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.363, allocations: 1.672 kB / 0.5147 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.363, allocations: 4.875 kB / 0.5147 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.363, allocations: 3.359 kB / 0.5147 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004717/0.3635, allocations: 422.2 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.3635, allocations: 1.344 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.196e-05/0.3636, allocations: 16.34 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.3636, allocations: 0 / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.3636, allocations: 7.547 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.3636, allocations: 0 / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3636, allocations: 2.281 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002422/0.3639, allocations: 235.8 kB / 0.5154 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.422e-05/0.364, allocations: 95.33 kB / 0.5154 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.144e-05/0.364, allocations: 2.656 kB / 0.5155 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.953e-05/0.3641, allocations: 1.25 kB / 0.5155 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.977e-05/0.3641, allocations: 9.125 kB / 0.5155 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.3641, allocations: 7.562 kB / 0.5155 GB, free: 14.67 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00016/0.3643, allocations: 169.5 kB / 0.5156 GB, free: 14.56 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3643, allocations: 1.062 kB / 0.5156 GB, free: 14.56 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003262/0.3646, allocations: 38.66 kB / 0.5157 GB, free: 14.56 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 (9): * Single equations (assignments): 8 * 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.000461/0.3651, allocations: 0.7662 MB / 0.5164 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001967/0.3653, allocations: 86.39 kB / 0.5165 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3653, allocations: 0 / 0.5165 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.238e-05/0.3654, allocations: 27.72 kB / 0.5165 GB, free: 13.8 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004967/0.3659, allocations: 68 kB / 0.5166 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002619/0.3685, allocations: 2.3 MB / 0.5188 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.3689, allocations: 0.7601 MB / 0.5196 GB, free: 11.24 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001375/0.3691, allocations: 26.81 kB / 0.5196 GB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.3692, allocations: 74 kB / 0.5197 GB, free: 11.18 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3692, allocations: 0.5938 kB / 0.5197 GB, free: 11.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02638/0.3956, allocations: 4.158 MB / 0.5237 GB, free: 10.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.191/8.586, allocations: 9.297 kB / 0.5237 GB, free: 10.58 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source_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_Source.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1)