Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001076/0.001076, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.317/1.317, allocations: 194.5 MB / 211.6 MB, free: 3.051 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001615/0.001615, allocations: 113.3 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1661/0.1661, allocations: 37.99 MB / 340.1 MB, free: 1.352 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003709/0.000371, allocations: 16 kB / 403.9 MB, free: 68.69 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09195/0.09233, allocations: 53.23 MB / 457.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.351/0.4434, allocations: 107.8 MB / 0.5517 GB, free: 3.711 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/0.4438, allocations: 96.64 kB / 0.5518 GB, free: 3.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0807/0.5245, allocations: 28.18 MB / 0.5793 GB, free: 11.14 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5245, allocations: 4.188 kB / 0.5793 GB, free: 11.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.111e-05/0.5246, allocations: 23.94 kB / 0.5793 GB, free: 11.12 MB / 394.7 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.005397/0.53, allocations: 1.749 MB / 0.581 GB, free: 9.367 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.677e-05/0.5301, allocations: 16.02 kB / 0.581 GB, free: 9.352 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006229/0.5307, allocations: 167.6 kB / 0.5812 GB, free: 9.246 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009861/0.5317, allocations: 166.6 kB / 0.5814 GB, free: 9.082 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006212/0.5379, allocations: 1.657 MB / 0.583 GB, free: 7.656 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008316/0.5388, allocations: 0.5221 MB / 0.5835 GB, free: 7.109 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005655/0.5394, allocations: 86.75 kB / 0.5836 GB, free: 7.051 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004829/0.5442, allocations: 2.102 MB / 0.5856 GB, free: 5.445 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.037e-05/0.5443, allocations: 0 / 0.5856 GB, free: 5.445 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001917/0.5445, allocations: 37.73 kB / 0.5857 GB, free: 5.434 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000181/0.5447, allocations: 88.56 kB / 0.5857 GB, free: 5.355 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004996/0.5497, allocations: 2.375 MB / 0.5881 GB, free: 3.59 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009955/0.5597, allocations: 5.764 MB / 0.5937 GB, free: 15.01 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004366/0.5641, allocations: 1.812 MB / 0.5955 GB, free: 13.61 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.456e-05/0.5642, allocations: 20.97 kB / 0.5955 GB, free: 13.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002812/0.567, allocations: 1.478 MB / 0.5969 GB, free: 12.44 MB / 410.7 MB Notification: Performance of pre-optimization done (n=125): time 5.22e-06/0.5671, allocations: 0 / 0.5969 GB, free: 12.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=126): time 0.01365/0.5807, allocations: 6.661 MB / 0.6034 GB, free: 5.633 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.035e-05/0.5808, allocations: 102 kB / 0.6035 GB, free: 5.516 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006459/0.5815, allocations: 457 kB / 0.604 GB, free: 5.059 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001362/0.5816, allocations: 57.69 kB / 0.604 GB, free: 4.996 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000341/0.582, allocations: 352.8 kB / 0.6043 GB, free: 4.645 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004352/0.5824, allocations: 425.9 kB / 0.6048 GB, free: 4.223 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.351e-05/0.5825, allocations: 23.98 kB / 0.6048 GB, free: 4.199 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.5827, allocations: 394.8 kB / 0.6052 GB, free: 3.805 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001996/0.5847, allocations: 1.139 MB / 0.6063 GB, free: 2.668 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002136/0.5869, allocations: 1.278 MB / 0.6075 GB, free: 1.352 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002051/0.589, allocations: 1.171 MB / 0.6087 GB, free: 184 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.589, allocations: 0 / 0.6087 GB, free: 184 kB / 410.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.01121/0.6002, allocations: 4.483 MB / 0.613 GB, free: 11.65 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001202/0.6004, allocations: 61.67 kB / 0.6131 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.841e-05/0.6004, allocations: 11.94 kB / 0.6131 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006476/0.6069, allocations: 2.118 MB / 0.6152 GB, free: 9.445 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009677/0.6079, allocations: 179.7 kB / 0.6153 GB, free: 9.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02779/0.6357, allocations: 14.11 MB / 0.6291 GB, free: 10.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/0.6373, allocations: 200 kB / 0.6293 GB, free: 10.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003488/0.6376, allocations: 67.95 kB / 0.6294 GB, free: 10.63 MB / 442.7 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 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[6],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.t0[1],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 98 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.001062/0.6387, allocations: 385.5 kB / 0.6297 GB, free: 10.25 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003322/0.6391, allocations: 82.97 kB / 0.6298 GB, free: 10.17 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00577/0.6448, allocations: 2.649 MB / 0.6324 GB, free: 7.484 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.625e-05/0.6449, allocations: 31.98 kB / 0.6324 GB, free: 7.453 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.6449, allocations: 4 kB / 0.6324 GB, free: 7.449 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/0.6449, allocations: 7.984 kB / 0.6325 GB, free: 7.441 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00848/0.6534, allocations: 4.388 MB / 0.6367 GB, free: 2.953 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.6535, allocations: 3.938 kB / 0.6367 GB, free: 2.949 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01021/0.6637, allocations: 2.829 MB / 0.6395 GB, free: 120 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000123/0.6639, allocations: 32.75 kB / 0.6395 GB, free: 84 kB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002952/0.6642, allocations: 31.97 kB / 0.6396 GB, free: 52 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00106/0.6652, allocations: 1.392 MB / 0.6409 GB, free: 14.52 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.6653, allocations: 4.031 kB / 0.6409 GB, free: 14.52 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00869/0.674, allocations: 4.39 MB / 0.6452 GB, free: 10.01 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009612/0.6749, allocations: 355.8 kB / 0.6456 GB, free: 9.641 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003243/0.6753, allocations: 79.95 kB / 0.6456 GB, free: 9.562 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001469/0.6768, allocations: 243.7 kB / 0.6459 GB, free: 9.324 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004208/0.6772, allocations: 196.7 kB / 0.6461 GB, free: 9.129 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/0.6773, allocations: 35.98 kB / 0.6461 GB, free: 9.094 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0004702/0.6778, allocations: 342.8 kB / 0.6464 GB, free: 8.758 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6778, allocations: 0 / 0.6464 GB, free: 8.758 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001554/0.6794, allocations: 371.9 kB / 0.6468 GB, free: 8.395 MB / 458.7 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 (110): * Single equations (assignments): 92 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008818/0.6882, allocations: 5.703 MB / 0.6523 GB, free: 2.582 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007029/0.6953, allocations: 3.286 MB / 0.6556 GB, free: 15.25 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.6953, allocations: 0 / 0.6556 GB, free: 15.25 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006159/0.7015, allocations: 2.429 MB / 0.6579 GB, free: 12.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.7026, allocations: 170.1 kB / 0.6581 GB, free: 12.64 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2153/0.918, allocations: 13.47 MB / 0.6712 GB, free: 146.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009626/0.9191, allocations: 1.168 MB / 0.6724 GB, free: 146.2 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001377/0.9204, allocations: 309.1 kB / 0.6727 GB, free: 146.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006567/0.9211, allocations: 329.7 kB / 0.673 GB, free: 146.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.032e-06/0.9211, allocations: 0 / 0.673 GB, free: 146.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04945/0.9706, allocations: 30.49 MB / 0.7028 GB, free: 143.6 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001585/0.9708, allocations: 211.9 kB / 0.703 GB, free: 143.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.597/3.567, allocations: 0 / 0.703 GB, free: 143.3 MB / 474.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)