Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_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.3+maint.om/package.mo): time 0.002004/0.002004, allocations: 184.7 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.008/2.008, allocations: 205.2 MB / 218.9 MB, free: 9.203 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001103/0.001103, allocations: 93.27 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2599/0.2599, allocations: 37.96 MB / 353.1 MB, free: 3.066 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.547e-05/3.581e-05, allocations: 7.984 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1059, allocations: 56.31 MB / 473.2 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4932/0.5991, allocations: 112.8 MB / 0.5722 GB, free: 6.891 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003405/0.5995, allocations: 91.95 kB / 0.5723 GB, free: 6.801 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1375/0.737, allocations: 28.19 MB / 0.5999 GB, free: 10.33 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.737, allocations: 0 / 0.5999 GB, free: 10.33 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.212e-05/0.7371, allocations: 24 kB / 0.5999 GB, free: 10.3 MB / 442.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.007083/0.7442, allocations: 1.641 MB / 0.6015 GB, free: 8.586 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/0.7443, allocations: 12.03 kB / 0.6015 GB, free: 8.574 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006291/0.7449, allocations: 164.2 kB / 0.6017 GB, free: 8.406 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001111/0.746, allocations: 162.6 kB / 0.6018 GB, free: 8.246 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008675/0.7547, allocations: 1.641 MB / 0.6034 GB, free: 6.562 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001176/0.7559, allocations: 0.514 MB / 0.6039 GB, free: 5.977 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005778/0.7565, allocations: 99.97 kB / 0.604 GB, free: 5.879 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004833/0.7614, allocations: 1.759 MB / 0.6057 GB, free: 4.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.528e-05/0.7615, allocations: 0 / 0.6057 GB, free: 4.07 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002256/0.7617, allocations: 39.98 kB / 0.6058 GB, free: 4.031 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003009/0.762, allocations: 81.95 kB / 0.6058 GB, free: 3.953 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005167/0.7672, allocations: 1.815 MB / 0.6076 GB, free: 2.133 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01761/0.7849, allocations: 5.75 MB / 0.6132 GB, free: 12.27 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004269/0.7892, allocations: 1.289 MB / 0.6145 GB, free: 10.96 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002753/0.792, allocations: 0.9613 MB / 0.6154 GB, free: 9.996 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001819/0.7922, allocations: 16.98 kB / 0.6154 GB, free: 9.98 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002966/0.7952, allocations: 1.169 MB / 0.6166 GB, free: 8.793 MB / 458.7 MB Notification: Performance of pre-optimization done (n=125): time 4.198e-06/0.7952, allocations: 3.938 kB / 0.6166 GB, free: 8.789 MB / 458.7 MB Notification: Performance of matching and sorting (n=126): time 0.01094/0.8061, allocations: 3.818 MB / 0.6203 GB, free: 4.891 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.8063, allocations: 102.1 kB / 0.6204 GB, free: 4.773 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009037/0.8072, allocations: 439.8 kB / 0.6208 GB, free: 4.336 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002584/0.8075, allocations: 61.67 kB / 0.6209 GB, free: 4.27 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004089/0.8079, allocations: 391.2 kB / 0.6213 GB, free: 3.883 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006164/0.8085, allocations: 425.9 kB / 0.6217 GB, free: 3.461 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001466/0.8087, allocations: 28.03 kB / 0.6217 GB, free: 3.434 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002059/0.8089, allocations: 362.7 kB / 0.622 GB, free: 3.07 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00232/0.8112, allocations: 0.9007 MB / 0.6229 GB, free: 2.168 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002439/0.8137, allocations: 1.052 MB / 0.624 GB, free: 1.082 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002358/0.8161, allocations: 0.9355 MB / 0.6249 GB, free: 148 kB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.8161, allocations: 4 kB / 0.6249 GB, free: 144 kB / 458.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.01734/0.8335, allocations: 3.781 MB / 0.6286 GB, free: 12.32 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000129/0.8336, allocations: 61.67 kB / 0.6286 GB, free: 12.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.8337, allocations: 0 / 0.6286 GB, free: 12.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009171/0.8428, allocations: 1.684 MB / 0.6303 GB, free: 10.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/0.8445, allocations: 167.7 kB / 0.6304 GB, free: 10.39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3436/1.188, allocations: 10.88 MB / 0.641 GB, free: 131.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002663/1.191, allocations: 200.9 kB / 0.6412 GB, free: 131.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002694/1.191, allocations: 63.44 kB / 0.6413 GB, free: 131.8 MB / 474.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 97 * 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%) 2} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0005077/1.192, allocations: 189.5 kB / 0.6415 GB, free: 131.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000297/1.192, allocations: 79.02 kB / 0.6416 GB, free: 131.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005702/1.198, allocations: 2.024 MB / 0.6435 GB, free: 131.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.906e-05/1.198, allocations: 29.59 kB / 0.6436 GB, free: 131.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/1.198, allocations: 1.25 kB / 0.6436 GB, free: 131.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.207e-05/1.198, allocations: 5.016 kB / 0.6436 GB, free: 131.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01009/1.208, allocations: 3.772 MB / 0.6473 GB, free: 131.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.411e-05/1.208, allocations: 2.031 kB / 0.6473 GB, free: 131.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02374/1.232, allocations: 2.821 MB / 0.65 GB, free: 131.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002143/1.232, allocations: 41.53 kB / 0.65 GB, free: 131 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003588/1.232, allocations: 36.91 kB / 0.6501 GB, free: 131 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001277/1.234, allocations: 1.477 MB / 0.6515 GB, free: 129.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/1.234, allocations: 3.75 kB / 0.6515 GB, free: 129.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008123/1.242, allocations: 3.432 MB / 0.6549 GB, free: 129.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/1.243, allocations: 342.3 kB / 0.6552 GB, free: 129.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004052/1.243, allocations: 84.97 kB / 0.6553 GB, free: 129.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002677/1.246, allocations: 243.6 kB / 0.6555 GB, free: 129.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007624/1.247, allocations: 198.1 kB / 0.6557 GB, free: 129.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00018/1.247, allocations: 47.36 kB / 0.6558 GB, free: 129.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0006361/1.248, allocations: 336.7 kB / 0.6561 GB, free: 129 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.4e-07/1.248, allocations: 0 / 0.6561 GB, free: 129 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001887/1.25, allocations: 380 kB / 0.6564 GB, free: 129 MB / 474.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]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 91 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008884/1.259, allocations: 4.721 MB / 0.661 GB, free: 127.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007834/1.266, allocations: 2.717 MB / 0.6637 GB, free: 126 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/1.266, allocations: 5.875 kB / 0.6637 GB, free: 126 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009417/1.276, allocations: 2.044 MB / 0.6657 GB, free: 125.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001443/1.277, allocations: 152.4 kB / 0.6658 GB, free: 125.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/1.288, allocations: 3.302 MB / 0.6691 GB, free: 124.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008191/1.289, allocations: 1.166 MB / 0.6702 GB, free: 123.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001166/1.29, allocations: 339.7 kB / 0.6705 GB, free: 123.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.463e-06/1.29, allocations: 0 / 0.6705 GB, free: 123.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.501/4.791, allocations: 26.07 MB / 0.696 GB, free: 116.5 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-05 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)