Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",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.001641/0.001649, allocations: 114 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.00186/0.00186, allocations: 189.4 kB / 18 MB, free: 5.098 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.42/1.42, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.175/0.175, allocations: 38.03 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 67.89 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.313, allocations: 58.05 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.00729/0.3203, allocations: 5.972 MB / 0.5094 GB, free: 3.344 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002821/0.3232, allocations: 1.554 MB / 0.511 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003748/0.3236, allocations: 22.81 kB / 0.511 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005654/0.3242, allocations: 141.5 kB / 0.5111 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008404/0.3251, allocations: 362.9 kB / 0.5115 GB, free: 1.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006615/0.3257, allocations: 317.2 kB / 0.5118 GB, free: 1.797 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0014/0.3271, allocations: 1.34 MB / 0.5131 GB, free: 1.199 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004988/0.3276, allocations: 365.3 kB / 0.5134 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008388/0.3285, allocations: 0.5302 MB / 0.5139 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007878/0.3293, allocations: 0.5462 MB / 0.5145 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001442/0.3294, allocations: 90.66 kB / 0.5146 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001803/0.3296, allocations: 91.06 kB / 0.5146 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003674/0.33, allocations: 338.2 kB / 0.515 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003947/0.3304, allocations: 413 kB / 0.5154 GB, free: 256 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001308/0.3317, allocations: 1.063 MB / 0.5164 GB, free: 15.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.3317, allocations: 0 / 0.5164 GB, free: 15.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.3318, allocations: 1.359 kB / 0.5164 GB, free: 15.86 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.377e-05/0.3318, allocations: 4 kB / 0.5164 GB, free: 15.86 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002906/0.3347, allocations: 1.212 MB / 0.5176 GB, free: 15.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.3347, allocations: 14.09 kB / 0.5176 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001643/0.3349, allocations: 107 kB / 0.5177 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00017/0.3351, allocations: 83.95 kB / 0.5178 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001335/0.3364, allocations: 0.6749 MB / 0.5184 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004683/0.3369, allocations: 339.8 kB / 0.5188 GB, free: 14.26 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.337, allocations: 59.09 kB / 0.5188 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002331/0.3394, allocations: 1.046 MB / 0.5198 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.3394, allocations: 0 / 0.5198 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.103e-05/0.3395, allocations: 22.44 kB / 0.5199 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.649e-05/0.3395, allocations: 18.34 kB / 0.5199 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00283/0.3424, allocations: 1.089 MB / 0.5209 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005077/0.3474, allocations: 3.208 MB / 0.5241 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002233/0.3497, allocations: 0.752 MB / 0.5248 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001443/0.3512, allocations: 0.5292 MB / 0.5253 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.768e-05/0.3512, allocations: 9.938 kB / 0.5253 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001556/0.3528, allocations: 0.6209 MB / 0.5259 GB, free: 10.86 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.515e-06/0.3528, allocations: 0 / 0.5259 GB, free: 10.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.00409/0.3569, allocations: 1.379 MB / 0.5273 GB, free: 10.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.218e-05/0.357, allocations: 138.2 kB / 0.5274 GB, free: 10.15 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004272/0.3574, allocations: 396.7 kB / 0.5278 GB, free: 9.906 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.445e-05/0.3575, allocations: 39.14 kB / 0.5278 GB, free: 9.867 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002527/0.3578, allocations: 303.6 kB / 0.5281 GB, free: 9.598 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001634/0.3579, allocations: 168.1 kB / 0.5283 GB, free: 9.453 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000236/0.3582, allocations: 122 kB / 0.5284 GB, free: 9.379 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.3584, allocations: 366.5 kB / 0.5288 GB, free: 9.023 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/0.3594, allocations: 449.1 kB / 0.5292 GB, free: 8.812 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001149/0.3606, allocations: 0.5571 MB / 0.5297 GB, free: 8.461 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002035/0.3626, allocations: 0.8882 MB / 0.5306 GB, free: 7.934 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.3626, allocations: 1.062 kB / 0.5306 GB, free: 7.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002484/0.3651, allocations: 1.092 MB / 0.5317 GB, free: 7.367 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.094e-05/0.3652, allocations: 52.25 kB / 0.5317 GB, free: 7.324 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.3652, allocations: 2.344 kB / 0.5317 GB, free: 7.324 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.3652, allocations: 5.688 kB / 0.5317 GB, free: 7.324 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005936/0.3712, allocations: 1.107 MB / 0.5328 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008495/0.3797, allocations: 4.693 MB / 0.5374 GB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008727/0.3806, allocations: 103.7 kB / 0.5375 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.3807, allocations: 46.52 kB / 0.5375 GB, free: 2.918 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004746/0.3812, allocations: 253.1 kB / 0.5378 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.3813, allocations: 59.61 kB / 0.5378 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002843/0.3842, allocations: 0.9829 MB / 0.5388 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.3842, allocations: 6.438 kB / 0.5388 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.3842, allocations: 1.219 kB / 0.5388 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.3842, allocations: 5.016 kB / 0.5388 GB, free: 2.145 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00447/0.3887, allocations: 2.134 MB / 0.5409 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.3887, allocations: 2.75 kB / 0.5409 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007235/0.396, allocations: 1.281 MB / 0.5421 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.241e-05/0.396, allocations: 3.562 kB / 0.5421 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001207/0.3961, allocations: 16.83 kB / 0.5422 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.095e-06/0.3961, allocations: 12.78 kB / 0.5422 GB, free: 180 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.3962, allocations: 5.438 kB / 0.5422 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004492/0.4006, allocations: 1.702 MB / 0.5438 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003657/0.401, allocations: 204.6 kB / 0.544 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00012/0.4012, allocations: 31.98 kB / 0.5441 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006995/0.4019, allocations: 87.88 kB / 0.5441 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.4021, allocations: 95.8 kB / 0.5442 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.216e-05/0.4022, allocations: 19.98 kB / 0.5443 GB, free: 14.15 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003268/0.4025, allocations: 267.1 kB / 0.5445 GB, free: 13.89 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4025, allocations: 0 / 0.5445 GB, free: 13.89 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007088/0.4032, allocations: 179.7 kB / 0.5447 GB, free: 13.71 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.004662/0.4079, allocations: 2.279 MB / 0.5469 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008074/0.416, allocations: 2.074 MB / 0.5489 GB, free: 9.297 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.416, allocations: 0 / 0.5489 GB, free: 9.297 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00379/0.4198, allocations: 0.9644 MB / 0.5499 GB, free: 8.332 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000847/0.4207, allocations: 129.6 kB / 0.55 GB, free: 8.207 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01237/0.433, allocations: 6.583 MB / 0.5564 GB, free: 1.422 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000602/0.4337, allocations: 0.9329 MB / 0.5573 GB, free: 476 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005242/0.4342, allocations: 156.6 kB / 0.5575 GB, free: 316 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003651/0.4346, allocations: 199.4 kB / 0.5577 GB, free: 116 kB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4346, allocations: 0 / 0.5577 GB, free: 116 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07195/0.5065, allocations: 13.68 MB / 0.571 GB, free: 2.629 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/13, allocations: 21.97 kB / 0.5711 GB, free: 2.617 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)