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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.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.001102/0.001102, allocations: 104.6 kB / 16.62 MB, free: 6.809 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.001203/0.001203, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.261/1.261, allocations: 222.9 MB / 241.2 MB, free: 15.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1702/0.1702, allocations: 38.03 MB / 329.4 MB, free: 8.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 61.78 kB / 398.4 MB, free: 34.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08451/0.08569, allocations: 58.07 MB / 456.4 MB, free: 8.312 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.006714/0.09243, allocations: 7.011 MB / 463.5 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002617/0.09506, allocations: 1.866 MB / 465.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004533/0.09553, allocations: 47.69 kB / 465.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004081/0.09595, allocations: 115.3 kB / 465.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006745/0.09664, allocations: 330.5 kB / 465.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005184/0.09716, allocations: 279.7 kB / 466.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001035/0.09821, allocations: 1.344 MB / 467.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003792/0.0986, allocations: 372.6 kB / 467.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005366/0.09915, allocations: 0.5333 MB / 468.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006062/0.09976, allocations: 0.5764 MB / 468.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000108/0.09988, allocations: 92 kB / 469 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001316/0.1, allocations: 88 kB / 469.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00028/0.1003, allocations: 351.2 kB / 469.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003325/0.1006, allocations: 418.2 kB / 469.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007636/0.1014, allocations: 1.052 MB / 470.9 MB, free: 9.816 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1014, allocations: 0 / 470.9 MB, free: 9.816 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1014, allocations: 4 kB / 470.9 MB, free: 9.812 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.1014, allocations: 0 / 470.9 MB, free: 9.812 MB / 350.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.002141/0.1036, allocations: 1.188 MB / 472.1 MB, free: 8.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.1036, allocations: 11.89 kB / 472.1 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001219/0.1038, allocations: 106.7 kB / 472.2 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.1039, allocations: 84.08 kB / 472.3 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/0.1049, allocations: 0.6276 MB / 472.9 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003537/0.1053, allocations: 347.2 kB / 473.2 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.1054, allocations: 52 kB / 473.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001925/0.1073, allocations: 1.042 MB / 474.3 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.1074, allocations: 3.938 kB / 474.3 MB, free: 6.168 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.226e-05/0.1074, allocations: 27.98 kB / 474.4 MB, free: 6.141 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.1075, allocations: 16 kB / 474.4 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002326/0.1098, allocations: 1.089 MB / 475.5 MB, free: 5.031 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004079/0.1139, allocations: 3.205 MB / 478.7 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001891/0.1158, allocations: 0.7458 MB / 479.4 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001207/0.117, allocations: 0.5299 MB / 479.9 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.556e-05/0.1171, allocations: 8.438 kB / 480 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001315/0.1184, allocations: 0.6225 MB / 480.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 1.823e-06/0.1184, allocations: 0 / 480.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003394/0.1218, allocations: 1.364 MB / 481.9 MB, free: 14.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.951e-05/0.1219, allocations: 144.5 kB / 482.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003414/0.1222, allocations: 389.9 kB / 482.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.338e-05/0.1223, allocations: 41.7 kB / 482.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.1225, allocations: 292.2 kB / 482.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.1226, allocations: 161.8 kB / 482.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001871/0.1228, allocations: 122.2 kB / 483.1 MB, free: 13.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1229, allocations: 358.8 kB / 483.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009205/0.1238, allocations: 456.9 kB / 483.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000969/0.1248, allocations: 0.5562 MB / 484.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001698/0.1265, allocations: 0.8856 MB / 485.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1265, allocations: 4 kB / 485.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002058/0.1286, allocations: 1.089 MB / 486.4 MB, free: 9.773 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.467e-05/0.1286, allocations: 57.84 kB / 486.5 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1287, allocations: 4 kB / 486.5 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.1287, allocations: 8 kB / 486.5 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004982/0.1337, allocations: 1.108 MB / 487.6 MB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006836/0.1405, allocations: 4.705 MB / 492.3 MB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005431/0.1411, allocations: 111.4 kB / 492.4 MB, free: 3.496 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.636e-05/0.1412, allocations: 35.98 kB / 492.4 MB, free: 3.461 MB / 366.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 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,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) * 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 (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002918/0.1415, allocations: 247.3 kB / 492.7 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.087e-05/0.1415, allocations: 51.38 kB / 492.7 MB, free: 3.156 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002344/0.1439, allocations: 0.9888 MB / 493.7 MB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1439, allocations: 4 kB / 493.7 MB, free: 2.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.1439, allocations: 4 kB / 493.7 MB, free: 2.156 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.1439, allocations: 7.969 kB / 493.7 MB, free: 2.148 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003466/0.1474, allocations: 2.128 MB / 495.8 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1474, allocations: 0 / 495.8 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006027/0.1534, allocations: 1.287 MB / 497.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.1535, allocations: 4 kB / 497.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.345e-05/0.1535, allocations: 19.98 kB / 497.2 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.1535, allocations: 4 kB / 497.2 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.1535, allocations: 3.938 kB / 497.2 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003545/0.1571, allocations: 1.695 MB / 498.9 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002296/0.1573, allocations: 200.5 kB / 499.1 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.1574, allocations: 31.98 kB / 499.1 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006193/0.1581, allocations: 87.88 kB / 499.2 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000199/0.1583, allocations: 103.8 kB / 499.3 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.708e-05/0.1583, allocations: 19.98 kB / 499.3 MB, free: 12.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000239/0.1586, allocations: 263.2 kB / 499.5 MB, free: 12.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1586, allocations: 0 / 499.5 MB, free: 12.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005196/0.1591, allocations: 183.5 kB / 499.7 MB, free: 12 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (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.003808/0.1629, allocations: 2.274 MB / 0.4902 GB, free: 9.676 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006672/0.1696, allocations: 2.16 MB / 0.4923 GB, free: 7.496 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1696, allocations: 0 / 0.4923 GB, free: 7.496 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003106/0.1727, allocations: 0.9644 MB / 0.4933 GB, free: 6.531 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007215/0.1735, allocations: 134.1 kB / 0.4934 GB, free: 6.406 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01095/0.1844, allocations: 6.838 MB / 0.5001 GB, free: 15.35 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005074/0.185, allocations: 0.9328 MB / 0.501 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005612/0.1855, allocations: 160.6 kB / 0.5012 GB, free: 14.24 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003503/0.1859, allocations: 199.4 kB / 0.5013 GB, free: 14.04 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1859, allocations: 0 / 0.5013 GB, free: 14.04 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.377/1.563, allocations: 13.19 MB / 0.5142 GB, free: 1.09 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001995/1.563, allocations: 233.7 kB / 0.5144 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.594/4.157, allocations: 0 / 0.5144 GB, free: 0.8359 MB / 398.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/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)