Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_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.001139/0.001139, allocations: 107.8 kB / 17.06 MB, free: 5.82 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.001119/0.00112, allocations: 196 kB / 18 MB, free: 4.977 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.409/1.409, 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-master/package.mo): time 0.2172/0.2172, allocations: 38.03 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 67.89 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3919/0.3932, allocations: 58.05 MB / 0.5036 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.007776/0.4011, allocations: 6.494 MB / 0.51 GB, free: 2.926 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004298/0.4054, allocations: 2.438 MB / 0.5123 GB, free: 1.246 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006437/0.4061, allocations: 24.59 kB / 0.5124 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001301/0.4074, allocations: 439.1 kB / 0.5128 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001435/0.4088, allocations: 0.5976 MB / 0.5134 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.4103, allocations: 489.9 kB / 0.5138 GB, free: 456 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003593/0.4139, allocations: 1.965 MB / 0.5157 GB, free: 15.6 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001575/0.4155, allocations: 0.8531 MB / 0.5166 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001508/0.4171, allocations: 0.7936 MB / 0.5174 GB, free: 14.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001942/0.419, allocations: 0.9702 MB / 0.5183 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003625/0.4194, allocations: 160.7 kB / 0.5185 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001577/0.421, allocations: 0.6439 MB / 0.5191 GB, free: 14.42 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008007/0.4218, allocations: 0.6441 MB / 0.5197 GB, free: 14.17 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009191/0.4227, allocations: 0.6682 MB / 0.5204 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002918/0.4256, allocations: 2.045 MB / 0.5224 GB, free: 13.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.4257, allocations: 0 / 0.5224 GB, free: 13.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4257, allocations: 0 / 0.5224 GB, free: 13.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.893e-05/0.4257, allocations: 0 / 0.5224 GB, free: 13.07 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.005549/0.4313, allocations: 1.9 MB / 0.5242 GB, free: 12.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.4313, allocations: 16.8 kB / 0.5242 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002731/0.4316, allocations: 167.3 kB / 0.5244 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007777/0.4324, allocations: 164.9 kB / 0.5246 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002705/0.4351, allocations: 0.9671 MB / 0.5255 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006619/0.4358, allocations: 0.5053 MB / 0.526 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002762/0.4361, allocations: 102.9 kB / 0.5261 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004309/0.4404, allocations: 2.011 MB / 0.5281 GB, free: 9.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.127e-05/0.4404, allocations: 5.281 kB / 0.5281 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001613/0.4406, allocations: 35.89 kB / 0.5281 GB, free: 9.652 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002189/0.4408, allocations: 88 kB / 0.5282 GB, free: 9.629 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005216/0.4461, allocations: 2.245 MB / 0.5304 GB, free: 8.551 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01087/0.4569, allocations: 5.665 MB / 0.5359 GB, free: 4.613 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004976/0.4619, allocations: 1.796 MB / 0.5377 GB, free: 3.656 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002785/0.4648, allocations: 1.145 MB / 0.5388 GB, free: 3.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001129/0.4649, allocations: 22.59 kB / 0.5388 GB, free: 3.059 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003164/0.4681, allocations: 1.384 MB / 0.5401 GB, free: 2.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=123): time 7.314e-06/0.4681, allocations: 0 / 0.5401 GB, free: 2.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=124): time 0.01481/0.4829, allocations: 5.628 MB / 0.5456 GB, free: 13.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.752e-05/0.483, allocations: 114 kB / 0.5457 GB, free: 13.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007892/0.4838, allocations: 497.9 kB / 0.5462 GB, free: 12.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001648/0.484, allocations: 57.69 kB / 0.5463 GB, free: 12.51 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003182/0.4843, allocations: 360.7 kB / 0.5466 GB, free: 12.15 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004304/0.4848, allocations: 418 kB / 0.547 GB, free: 11.74 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004727/0.4853, allocations: 230.8 kB / 0.5472 GB, free: 11.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.4855, allocations: 390.8 kB / 0.5476 GB, free: 11.11 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002067/0.4875, allocations: 1.029 MB / 0.5486 GB, free: 10.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002198/0.4897, allocations: 1.168 MB / 0.5498 GB, free: 8.879 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00401/0.4938, allocations: 2.043 MB / 0.5518 GB, free: 6.789 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.4938, allocations: 0 / 0.5518 GB, free: 6.789 MB / 414.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01126/0.505, allocations: 3.903 MB / 0.5556 GB, free: 2.867 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.454e-05/0.5052, allocations: 57.69 kB / 0.5556 GB, free: 2.805 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.5052, allocations: 4 kB / 0.5556 GB, free: 2.801 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006083/0.5113, allocations: 2.067 MB / 0.5576 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/0.5124, allocations: 195.7 kB / 0.5578 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02776/0.5402, allocations: 11.31 MB / 0.5689 GB, free: 5.086 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001786/0.542, allocations: 163.8 kB / 0.569 GB, free: 4.926 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004304/0.5424, allocations: 75.88 kB / 0.5691 GB, free: 4.852 MB / 430.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: 28 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],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,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 3 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.001229/0.5437, allocations: 381.6 kB / 0.5695 GB, free: 4.469 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004743/0.5442, allocations: 83.05 kB / 0.5695 GB, free: 4.387 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006537/0.5507, allocations: 2.361 MB / 0.5719 GB, free: 2.016 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.333e-05/0.5508, allocations: 28 kB / 0.5719 GB, free: 1.988 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.5508, allocations: 0 / 0.5719 GB, free: 1.988 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-05/0.5509, allocations: 7.969 kB / 0.5719 GB, free: 1.98 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01007/0.5609, allocations: 4.097 MB / 0.5759 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/0.561, allocations: 0 / 0.5759 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01172/0.5727, allocations: 2.025 MB / 0.5779 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.914e-05/0.5728, allocations: 11.94 kB / 0.5779 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004591/0.5733, allocations: 39.95 kB / 0.5779 GB, free: 11.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.361e-05/0.5733, allocations: 4 kB / 0.5779 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.5733, allocations: 4 kB / 0.5779 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009788/0.5831, allocations: 3.863 MB / 0.5817 GB, free: 7.801 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/0.5843, allocations: 332 kB / 0.582 GB, free: 7.457 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003744/0.5847, allocations: 91.88 kB / 0.5821 GB, free: 7.367 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/0.5862, allocations: 187.7 kB / 0.5823 GB, free: 7.184 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004338/0.5867, allocations: 196.7 kB / 0.5825 GB, free: 6.992 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/0.5868, allocations: 39.97 kB / 0.5825 GB, free: 6.953 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004644/0.5873, allocations: 346.8 kB / 0.5828 GB, free: 6.613 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5873, allocations: 0 / 0.5828 GB, free: 6.613 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001492/0.5888, allocations: 359.9 kB / 0.5832 GB, free: 6.262 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.01022/0.599, allocations: 4.535 MB / 0.5876 GB, free: 1.668 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008225/0.6073, allocations: 2.998 MB / 0.5905 GB, free: 14.64 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.6073, allocations: 0 / 0.5905 GB, free: 14.64 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006845/0.6142, allocations: 1.93 MB / 0.5924 GB, free: 12.71 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001587/0.6158, allocations: 184.3 kB / 0.5926 GB, free: 12.54 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03786/0.6537, allocations: 15.63 MB / 0.6079 GB, free: 12.63 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000946/0.6547, allocations: 1.148 MB / 0.609 GB, free: 11.46 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001088/0.6558, allocations: 318.8 kB / 0.6093 GB, free: 11.14 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007675/0.6566, allocations: 343.3 kB / 0.6096 GB, free: 10.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.002e-06/0.6566, allocations: 0 / 0.6096 GB, free: 10.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06916/0.7258, allocations: 33.43 MB / 0.6423 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.74, allocations: 14.62 kB / 0.6423 GB, free: 9.613 MB / 0.4981 GB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)