Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.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.AC3ph.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",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.001333/0.001333, allocations: 113.5 kB / 17.07 MB, free: 5.992 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.00132/0.001321, allocations: 193.4 kB / 18 MB, free: 5.074 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.462/1.462, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1945/0.1945, allocations: 38.04 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 67.89 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.3701, allocations: 58.06 MB / 0.5036 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer): time 0.005446/0.3756, allocations: 4.699 MB / 0.5082 GB, free: 4.152 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.3775, allocations: 1.345 MB / 0.5095 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002083/0.3777, allocations: 20.47 kB / 0.5095 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001076/0.3788, allocations: 397.7 kB / 0.5099 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000542/0.3794, allocations: 239 kB / 0.5101 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005525/0.3799, allocations: 188.1 kB / 0.5103 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006393/0.3806, allocations: 0.5534 MB / 0.5109 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004946/0.3811, allocations: 340 kB / 0.5112 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003231/0.3814, allocations: 255.2 kB / 0.5114 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003853/0.3818, allocations: 276.2 kB / 0.5117 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.472e-05/0.3819, allocations: 31.62 kB / 0.5117 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002922/0.3822, allocations: 129.3 kB / 0.5119 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001747/0.3824, allocations: 184.7 kB / 0.512 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002072/0.3826, allocations: 226.6 kB / 0.5122 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006461/0.3832, allocations: 0.5311 MB / 0.5128 GB, free: 1.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.3832, allocations: 0 / 0.5128 GB, free: 1.684 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3832, allocations: 0 / 0.5128 GB, free: 1.684 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.3833, allocations: 1.844 kB / 0.5128 GB, free: 1.684 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001013/0.3843, allocations: 0.7232 MB / 0.5135 GB, free: 1.102 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.3843, allocations: 12.86 kB / 0.5135 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.639e-05/0.3844, allocations: 77.81 kB / 0.5136 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006724/0.3851, allocations: 93.11 kB / 0.5136 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005977/0.3857, allocations: 433.6 kB / 0.5141 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.3857, allocations: 23.67 kB / 0.5141 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.3859, allocations: 53.8 kB / 0.5141 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000731/0.3866, allocations: 474.8 kB / 0.5146 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.3866, allocations: 2.344 kB / 0.5146 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.715e-05/0.3867, allocations: 14.62 kB / 0.5146 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001206/0.3868, allocations: 24.92 kB / 0.5146 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005549/0.3874, allocations: 343.1 kB / 0.515 GB, free: 324 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00238/0.3898, allocations: 1.635 MB / 0.5166 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000414/0.3902, allocations: 176.6 kB / 0.5167 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002031/0.3904, allocations: 111.6 kB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.3904, allocations: 2.312 kB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.3905, allocations: 36.17 kB / 0.5169 GB, free: 15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=19): time 2.104e-06/0.3905, allocations: 1.188 kB / 0.5169 GB, free: 15 MB / 398.1 MB Notification: Performance of matching and sorting (n=20): time 0.001541/0.392, allocations: 0.7873 MB / 0.5176 GB, free: 14.47 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/0.3921, allocations: 79.7 kB / 0.5177 GB, free: 14.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003487/0.3925, allocations: 312 kB / 0.518 GB, free: 14.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.3925, allocations: 26.73 kB / 0.518 GB, free: 14.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002094/0.3927, allocations: 254.2 kB / 0.5183 GB, free: 13.97 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.567e-05/0.3928, allocations: 83.97 kB / 0.5184 GB, free: 13.9 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.3929, allocations: 59.52 kB / 0.5184 GB, free: 13.87 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.3931, allocations: 346.1 kB / 0.5187 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.3933, allocations: 99.56 kB / 0.5188 GB, free: 13.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002561/0.3935, allocations: 200.5 kB / 0.519 GB, free: 13.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004554/0.394, allocations: 333.7 kB / 0.5193 GB, free: 13.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.394, allocations: 1.094 kB / 0.5193 GB, free: 13.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008567/0.3949, allocations: 434.1 kB / 0.5198 GB, free: 12.92 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.3949, allocations: 9 kB / 0.5198 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005201/0.3954, allocations: 265.7 kB / 0.52 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003442/0.3958, allocations: 80.78 kB / 0.5201 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002521/0.396, allocations: 61.61 kB / 0.5202 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001796/0.3978, allocations: 1.714 MB / 0.5218 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002311/0.3981, allocations: 10.33 kB / 0.5218 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.781e-05/0.3981, allocations: 15.98 kB / 0.5219 GB, free: 11.27 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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002618/0.3984, allocations: 195.6 kB / 0.522 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.607e-05/0.3985, allocations: 33.98 kB / 0.5221 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004792/0.399, allocations: 263.3 kB / 0.5223 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.399, allocations: 3.156 kB / 0.5223 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.399, allocations: 6.328 kB / 0.5223 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.399, allocations: 1.312 kB / 0.5223 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00125/0.4002, allocations: 0.7582 MB / 0.5231 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.4003, allocations: 2.031 kB / 0.5231 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002795/0.4005, allocations: 50.17 kB / 0.5231 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.4006, allocations: 2.25 kB / 0.5231 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.868e-05/0.4006, allocations: 12.56 kB / 0.5231 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.4006, allocations: 1.344 kB / 0.5231 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4006, allocations: 1.625 kB / 0.5231 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005885/0.4012, allocations: 455.5 kB / 0.5236 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.4013, allocations: 111.7 kB / 0.5237 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.588e-05/0.4014, allocations: 9.578 kB / 0.5237 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001697/0.4015, allocations: 12.92 kB / 0.5237 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.406e-05/0.4016, allocations: 11.12 kB / 0.5237 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.4016, allocations: 14.62 kB / 0.5237 GB, free: 10.06 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002319/0.4019, allocations: 215.4 kB / 0.5239 GB, free: 9.945 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4019, allocations: 0 / 0.5239 GB, free: 9.945 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004469/0.4023, allocations: 85.34 kB / 0.524 GB, free: 9.938 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * 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 (23): * Single equations (assignments): 22 * 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.0008869/0.4032, allocations: 0.9937 MB / 0.525 GB, free: 9.121 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006964/0.4039, allocations: 370.9 kB / 0.5253 GB, free: 8.93 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.4039, allocations: 5.375 kB / 0.5253 GB, free: 8.926 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.4041, allocations: 108.8 kB / 0.5255 GB, free: 8.887 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005023/0.4046, allocations: 66.44 kB / 0.5255 GB, free: 8.863 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004827/0.4095, allocations: 3.547 MB / 0.529 GB, free: 6.512 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005214/0.41, allocations: 0.8512 MB / 0.5298 GB, free: 5.793 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002374/0.4102, allocations: 71.06 kB / 0.5299 GB, free: 5.781 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002119/0.4105, allocations: 139.4 kB / 0.53 GB, free: 5.676 MB / 398.1 MB Notification: Performance of SimCode: time 3.5e-07/0.4105, allocations: 0 / 0.53 GB, free: 5.676 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03607/0.4466, allocations: 7.203 MB / 0.537 GB, free: 3.004 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.24/10.69, allocations: 9 kB / 0.5371 GB, free: 2.996 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSystems_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe 2>&1)