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 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.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.0009477/0.0009477, allocations: 96 kB / 16.3 MB, free: 5.996 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.001202/0.001202, allocations: 183.7 kB / 17.2 MB, free: 5.914 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.43/1.43, allocations: 205.4 MB / 223.4 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2957/0.2957, allocations: 38.05 MB / 309.7 MB, free: 8.93 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.0005389/0.0005391, allocations: 12 kB / 376.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1097, allocations: 56.34 MB / 432.9 MB, free: 6.734 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.005994/0.1157, allocations: 5.957 MB / 438.9 MB, free: 0.75 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003376/0.1191, allocations: 1.872 MB / 440.8 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004772/0.1196, allocations: 35.75 kB / 440.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004373/0.1201, allocations: 147.1 kB / 440.9 MB, free: 14.69 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007604/0.1208, allocations: 327 kB / 441.3 MB, free: 14.37 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006348/0.1215, allocations: 279.5 kB / 441.5 MB, free: 14.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008327/0.1223, allocations: 0.7018 MB / 442.2 MB, free: 13.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003865/0.1227, allocations: 259.7 kB / 442.5 MB, free: 13.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005957/0.1233, allocations: 410.7 kB / 442.9 MB, free: 12.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005706/0.1239, allocations: 406.8 kB / 443.3 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.249e-05/0.124, allocations: 44 kB / 443.3 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.1241, allocations: 36 kB / 443.4 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002943/0.1244, allocations: 271.4 kB / 443.6 MB, free: 11.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001507/0.1246, allocations: 153.3 kB / 443.8 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007098/0.1253, allocations: 0.8066 MB / 444.6 MB, free: 11.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1253, allocations: 3.938 kB / 444.6 MB, free: 11.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1253, allocations: 0 / 444.6 MB, free: 11.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.1253, allocations: 0 / 444.6 MB, free: 11.02 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002318/0.1277, allocations: 1.086 MB / 445.7 MB, free: 9.871 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.1277, allocations: 15.97 kB / 445.7 MB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001441/0.1279, allocations: 106.5 kB / 445.8 MB, free: 9.742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.128, allocations: 83.16 kB / 445.9 MB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001231/0.1293, allocations: 0.615 MB / 446.5 MB, free: 9.004 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004005/0.1297, allocations: 342.9 kB / 446.8 MB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001079/0.1298, allocations: 67.94 kB / 446.9 MB, free: 8.555 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002098/0.1319, allocations: 1.093 MB / 448 MB, free: 7.426 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.1319, allocations: 7.938 kB / 448 MB, free: 7.418 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.781e-05/0.132, allocations: 20 kB / 448 MB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.132, allocations: 12 kB / 448 MB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002632/0.1347, allocations: 1.206 MB / 449.2 MB, free: 6.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004911/0.1396, allocations: 3.256 MB / 452.5 MB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002192/0.1418, allocations: 0.851 MB / 453.3 MB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.32e-05/0.1419, allocations: 4.438 kB / 453.3 MB, free: 1.953 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001492/0.1434, allocations: 0.6851 MB / 454 MB, free: 1.242 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.926e-06/0.1434, allocations: 0 / 454 MB, free: 1.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.189/0.3324, allocations: 1.549 MB / 455.6 MB, free: 51.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.184e-05/0.3325, allocations: 144.4 kB / 455.7 MB, free: 51.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004132/0.3329, allocations: 384.6 kB / 456.1 MB, free: 51.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001014/0.333, allocations: 43.27 kB / 456.1 MB, free: 51.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.3332, allocations: 299.8 kB / 456.4 MB, free: 51.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.3333, allocations: 154.4 kB / 456.6 MB, free: 51.42 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.793e-05/0.3333, allocations: 9.906 kB / 456.6 MB, free: 51.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.547e-05/0.3334, allocations: 361.7 kB / 456.9 MB, free: 51.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009377/0.3343, allocations: 495.4 kB / 457.4 MB, free: 51.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009518/0.3353, allocations: 0.5868 MB / 458 MB, free: 51 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008881/0.3362, allocations: 0.4944 MB / 458.5 MB, free: 50.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.3362, allocations: 0 / 458.5 MB, free: 50.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002067/0.3383, allocations: 1.159 MB / 459.7 MB, free: 50.87 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.319e-05/0.3384, allocations: 55.75 kB / 459.7 MB, free: 50.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.3384, allocations: 3 kB / 459.7 MB, free: 50.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.3384, allocations: 6.219 kB / 459.7 MB, free: 50.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005671/0.3441, allocations: 1.595 MB / 461.3 MB, free: 50.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006973/0.3511, allocations: 4.971 MB / 466.3 MB, free: 48.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008093/0.3519, allocations: 146.8 kB / 466.4 MB, free: 48.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.058e-05/0.352, allocations: 36.06 kB / 466.5 MB, free: 48.01 MB / 382.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 ($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.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.modulator.t0) * 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 (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003828/0.3524, allocations: 252.5 kB / 466.7 MB, free: 47.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.98e-05/0.3525, allocations: 48.03 kB / 466.8 MB, free: 47.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002464/0.355, allocations: 1.108 MB / 467.9 MB, free: 47.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.355, allocations: 9.969 kB / 467.9 MB, free: 47.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.355, allocations: 0 / 467.9 MB, free: 47.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.355, allocations: 0 / 467.9 MB, free: 47.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003563/0.3586, allocations: 2.229 MB / 470.1 MB, free: 47.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/0.3586, allocations: 0 / 470.1 MB, free: 47.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006958/0.3656, allocations: 1.845 MB / 472 MB, free: 47.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-05/0.3656, allocations: 6.547 kB / 472 MB, free: 47.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.763e-05/0.3657, allocations: 13.14 kB / 472 MB, free: 47.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.313e-06/0.3657, allocations: 2.875 kB / 472 MB, free: 47.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.3657, allocations: 6.875 kB / 472 MB, free: 47.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003694/0.3694, allocations: 1.959 MB / 473.9 MB, free: 46.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003136/0.3697, allocations: 211.3 kB / 474.1 MB, free: 46.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.3699, allocations: 27.86 kB / 474.2 MB, free: 46.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000681/0.3705, allocations: 121.6 kB / 474.3 MB, free: 46.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.3707, allocations: 96.3 kB / 474.4 MB, free: 46.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.287e-05/0.3708, allocations: 19.47 kB / 474.4 MB, free: 46.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002464/0.371, allocations: 267 kB / 474.7 MB, free: 45.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.371, allocations: 0 / 474.7 MB, free: 45.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000598/0.3716, allocations: 176 kB / 474.8 MB, free: 45.87 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003894/0.3755, allocations: 2.948 MB / 477.8 MB, free: 44.13 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007402/0.383, allocations: 2.625 MB / 480.4 MB, free: 43.67 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.383, allocations: 3.922 kB / 480.4 MB, free: 43.67 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003493/0.3865, allocations: 1.191 MB / 481.6 MB, free: 43.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006766/0.3872, allocations: 123 kB / 481.7 MB, free: 43.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008453/0.3957, allocations: 6.574 MB / 488.3 MB, free: 39.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004194/0.3961, allocations: 0.9423 MB / 489.2 MB, free: 38.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005984/0.3968, allocations: 159.6 kB / 489.4 MB, free: 38.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000295/0.3971, allocations: 195 kB / 489.6 MB, free: 38.6 MB / 382.1 MB Notification: Performance of SimCode: time 1.322e-06/0.3971, allocations: 0 / 489.6 MB, free: 38.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02874/0.4258, allocations: 12.62 MB / 0.4904 GB, free: 36.43 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001465/0.426, allocations: 216.8 kB / 0.4906 GB, free: 36.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.923/2.349, allocations: 0 / 0.4906 GB, free: 36.19 MB / 382.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/linux/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) Environment - environmentSimulation: