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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 111.9 kB / 17.06 MB, free: 6.004 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.001197/0.001197, allocations: 198.9 kB / 18 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.406/1.406, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1777/0.1777, allocations: 37.98 MB / 309.2 MB, free: 5.953 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 63.91 kB / 431.4 MB, free: 16.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1054, allocations: 55.24 MB / 486.6 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.00907/0.1145, allocations: 6.477 MB / 493.1 MB, free: 2.332 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00436/0.1189, allocations: 2.486 MB / 495.6 MB, free: 15.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005941/0.1195, allocations: 27.88 kB / 495.6 MB, free: 15.81 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001438/0.121, allocations: 429.8 kB / 496 MB, free: 15.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001562/0.1226, allocations: 0.5912 MB / 496.6 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001216/0.1238, allocations: 491.1 kB / 497.1 MB, free: 14.31 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002137/0.126, allocations: 1.957 MB / 499 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001258/0.1272, allocations: 0.8532 MB / 499.9 MB, free: 11.49 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001298/0.1286, allocations: 0.7946 MB / 0.489 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001587/0.1302, allocations: 0.9663 MB / 0.4899 GB, free: 9.723 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005047/0.1307, allocations: 168 kB / 0.4901 GB, free: 9.559 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001427/0.1321, allocations: 0.6398 MB / 0.4907 GB, free: 8.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001082/0.1332, allocations: 0.647 MB / 0.4913 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00136/0.1346, allocations: 0.673 MB / 0.492 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002913/0.1375, allocations: 2.045 MB / 0.494 GB, free: 5.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1376, allocations: 0 / 0.494 GB, free: 5.543 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1376, allocations: 4 kB / 0.494 GB, free: 5.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.803e-05/0.1376, allocations: 0 / 0.494 GB, free: 5.539 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.006224/0.1439, allocations: 1.908 MB / 0.4958 GB, free: 3.547 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.1439, allocations: 11.89 kB / 0.4959 GB, free: 3.535 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004874/0.1444, allocations: 164.4 kB / 0.496 GB, free: 3.367 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009842/0.1454, allocations: 167.5 kB / 0.4962 GB, free: 3.203 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002707/0.1482, allocations: 0.9635 MB / 0.4971 GB, free: 2.203 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008384/0.149, allocations: 0.4987 MB / 0.4976 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005039/0.1495, allocations: 104 kB / 0.4977 GB, free: 1.527 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005326/0.1549, allocations: 2.015 MB / 0.4997 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.838e-05/0.155, allocations: 3.938 kB / 0.4997 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001931/0.1552, allocations: 35.98 kB / 0.4997 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002568/0.1554, allocations: 93.94 kB / 0.4998 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005508/0.1609, allocations: 2.244 MB / 0.502 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0113/0.1723, allocations: 5.659 MB / 0.5075 GB, free: 7.324 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004765/0.1771, allocations: 1.801 MB / 0.5093 GB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002628/0.1797, allocations: 1.148 MB / 0.5104 GB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001059/0.1799, allocations: 24.92 kB / 0.5104 GB, free: 4.312 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00298/0.1829, allocations: 1.391 MB / 0.5118 GB, free: 2.898 MB / 398.1 MB Notification: Performance of pre-optimization done (n=123): time 3.968e-06/0.1829, allocations: 0 / 0.5118 GB, free: 2.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=124): time 0.01378/0.1967, allocations: 5.622 MB / 0.5173 GB, free: 13.22 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.961e-05/0.1968, allocations: 102.1 kB / 0.5174 GB, free: 13.1 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006135/0.1974, allocations: 497.9 kB / 0.5178 GB, free: 12.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001305/0.1976, allocations: 57.69 kB / 0.5179 GB, free: 12.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000269/0.1978, allocations: 364.7 kB / 0.5182 GB, free: 12.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000365/0.1982, allocations: 418.1 kB / 0.5186 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004457/0.1987, allocations: 222.8 kB / 0.5189 GB, free: 11.54 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.1989, allocations: 394.8 kB / 0.5192 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002009/0.2009, allocations: 1.029 MB / 0.5202 GB, free: 10.12 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002237/0.2031, allocations: 1.176 MB / 0.5214 GB, free: 8.898 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0042/0.2073, allocations: 2.039 MB / 0.5234 GB, free: 6.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.437e-06/0.2074, allocations: 0 / 0.5234 GB, free: 6.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01136/0.2187, allocations: 3.907 MB / 0.5272 GB, free: 2.895 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/0.2189, allocations: 65.67 kB / 0.5273 GB, free: 2.824 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-05/0.2189, allocations: 0 / 0.5273 GB, free: 2.824 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005961/0.2249, allocations: 2.066 MB / 0.5293 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009334/0.2258, allocations: 191.7 kB / 0.5295 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2221/0.448, allocations: 11.3 MB / 0.5405 GB, free: 48.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001536/0.4495, allocations: 166.6 kB / 0.5406 GB, free: 48.67 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002113/0.4498, allocations: 73.05 kB / 0.5407 GB, free: 48.66 MB / 414.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.0006891/0.4505, allocations: 377.8 kB / 0.5411 GB, free: 48.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002816/0.4508, allocations: 79.89 kB / 0.5411 GB, free: 48.45 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005638/0.4564, allocations: 2.363 MB / 0.5435 GB, free: 47.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.079e-05/0.4565, allocations: 29.72 kB / 0.5435 GB, free: 47.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.4565, allocations: 4.891 kB / 0.5435 GB, free: 47.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.4565, allocations: 12.52 kB / 0.5435 GB, free: 47.72 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008203/0.4647, allocations: 4.094 MB / 0.5475 GB, free: 46.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.565e-06/0.4648, allocations: 2.406 kB / 0.5475 GB, free: 46.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01116/0.4759, allocations: 2.023 MB / 0.5495 GB, free: 45.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-05/0.476, allocations: 7.938 kB / 0.5495 GB, free: 45.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001878/0.4762, allocations: 37.8 kB / 0.5495 GB, free: 45.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.646e-06/0.4762, allocations: 11.75 kB / 0.5495 GB, free: 45.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4762, allocations: 0 / 0.5495 GB, free: 45.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007513/0.4837, allocations: 3.864 MB / 0.5533 GB, free: 43.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006857/0.4844, allocations: 337.1 kB / 0.5536 GB, free: 43.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002084/0.4846, allocations: 94.97 kB / 0.5537 GB, free: 43.28 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/0.486, allocations: 184.9 kB / 0.5539 GB, free: 43.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003716/0.4863, allocations: 195.5 kB / 0.5541 GB, free: 43.1 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.4864, allocations: 41.91 kB / 0.5541 GB, free: 43.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003354/0.4868, allocations: 346.5 kB / 0.5545 GB, free: 42.87 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4868, allocations: 3.938 kB / 0.5545 GB, free: 42.87 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001003/0.4878, allocations: 351.4 kB / 0.5548 GB, free: 42.83 MB / 414.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.007722/0.4955, allocations: 4.516 MB / 0.5592 GB, free: 38.28 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006066/0.5016, allocations: 2.994 MB / 0.5621 GB, free: 35.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.5017, allocations: 0 / 0.5621 GB, free: 35.25 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006133/0.5078, allocations: 1.931 MB / 0.564 GB, free: 33.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001323/0.5092, allocations: 200.5 kB / 0.5642 GB, free: 33.14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03032/0.5395, allocations: 15.64 MB / 0.5795 GB, free: 17.31 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004998/0.54, allocations: 1.152 MB / 0.5806 GB, free: 16.13 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008466/0.5409, allocations: 319.6 kB / 0.5809 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005704/0.5415, allocations: 347.3 kB / 0.5812 GB, free: 15.47 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5415, allocations: 0 / 0.5812 GB, free: 15.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05706/0.5986, allocations: 33.41 MB / 0.6139 GB, free: 13.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/13.1, allocations: 7.719 kB / 0.6139 GB, free: 13.95 MB / 446.1 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/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)