Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",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.00152/0.00152, allocations: 104.3 kB / 17.06 MB, free: 6.027 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.001871/0.001871, allocations: 196 kB / 18 MB, free: 5.105 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.41/1.41, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2008/0.2008, allocations: 37.98 MB / 309.2 MB, free: 5.973 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.001491/0.001491, allocations: 67.91 kB / 431.4 MB, free: 16.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0906/0.0921, allocations: 55.24 MB / 486.6 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.00734/0.09948, allocations: 6.554 MB / 493.2 MB, free: 2.266 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002824/0.1023, allocations: 1.696 MB / 494.9 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00046/0.1028, allocations: 27.81 kB / 494.9 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005525/0.1034, allocations: 166.7 kB / 495 MB, free: 380 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001092/0.1045, allocations: 437.8 kB / 495.5 MB, free: 15.94 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007204/0.1052, allocations: 343.4 kB / 495.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001482/0.1067, allocations: 1.504 MB / 497.3 MB, free: 14.1 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004946/0.1073, allocations: 405.7 kB / 497.7 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008482/0.1081, allocations: 0.6073 MB / 498.3 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009469/0.1091, allocations: 0.6543 MB / 499 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001962/0.1093, allocations: 100 kB / 499.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002151/0.1095, allocations: 96 kB / 499.2 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004052/0.1099, allocations: 423 kB / 499.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005218/0.1105, allocations: 470 kB / 0.4883 GB, free: 11.37 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001072/0.1115, allocations: 1.176 MB / 0.4895 GB, free: 10.19 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1115, allocations: 0 / 0.4895 GB, free: 10.19 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1116, allocations: 0 / 0.4895 GB, free: 10.19 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.783e-05/0.1116, allocations: 0 / 0.4895 GB, free: 10.19 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002886/0.1145, allocations: 1.317 MB / 0.4908 GB, free: 8.809 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.1145, allocations: 19.88 kB / 0.4908 GB, free: 8.789 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001868/0.1147, allocations: 118.7 kB / 0.4909 GB, free: 8.664 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002081/0.1149, allocations: 92 kB / 0.491 GB, free: 8.574 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0014/0.1164, allocations: 0.7327 MB / 0.4917 GB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004086/0.1168, allocations: 342.8 kB / 0.492 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.1169, allocations: 67.98 kB / 0.4921 GB, free: 7.348 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002147/0.1191, allocations: 1.141 MB / 0.4932 GB, free: 6.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.1191, allocations: 0 / 0.4932 GB, free: 6.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-05/0.1192, allocations: 23.98 kB / 0.4932 GB, free: 6.145 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001059/0.1193, allocations: 53.22 kB / 0.4933 GB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002527/0.1218, allocations: 1.164 MB / 0.4944 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004952/0.1268, allocations: 3.488 MB / 0.4978 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002319/0.1291, allocations: 0.9565 MB / 0.4987 GB, free: 368 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/0.1307, allocations: 0.6826 MB / 0.4994 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.665e-05/0.1308, allocations: 12.55 kB / 0.4994 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001429/0.1322, allocations: 0.6849 MB / 0.5001 GB, free: 14.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.885e-06/0.1323, allocations: 0 / 0.5001 GB, free: 14.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.01752/0.1498, allocations: 5.666 MB / 0.5056 GB, free: 9.211 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.156e-05/0.1499, allocations: 89.67 kB / 0.5057 GB, free: 9.102 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005153/0.1504, allocations: 473.8 kB / 0.5062 GB, free: 8.629 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.027e-05/0.1505, allocations: 37.7 kB / 0.5062 GB, free: 8.586 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002322/0.1507, allocations: 324.2 kB / 0.5065 GB, free: 8.262 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001871/0.1509, allocations: 213.1 kB / 0.5067 GB, free: 8.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002249/0.1512, allocations: 130.2 kB / 0.5068 GB, free: 7.918 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.1513, allocations: 374.8 kB / 0.5072 GB, free: 7.543 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00104/0.1524, allocations: 0.509 MB / 0.5077 GB, free: 7.035 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.1534, allocations: 0.6257 MB / 0.5083 GB, free: 6.367 MB / 398.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.006496/0.1599, allocations: 3.127 MB / 0.5114 GB, free: 3.152 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.16, allocations: 0 / 0.5114 GB, free: 3.152 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.006847/0.1668, allocations: 2.494 MB / 0.5138 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.16e-05/0.1669, allocations: 45.69 kB / 0.5138 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.1669, allocations: 4.219 kB / 0.5138 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002278/0.1692, allocations: 1.09 MB / 0.5149 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004853/0.1697, allocations: 107.8 kB / 0.515 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01444/0.1842, allocations: 6.861 MB / 0.5217 GB, free: 8.383 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007366/0.185, allocations: 87.84 kB / 0.5218 GB, free: 8.297 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.1851, allocations: 39.97 kB / 0.5218 GB, free: 8.258 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * 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 {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004465/0.1855, allocations: 283.5 kB / 0.5221 GB, free: 7.973 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001286/0.1857, allocations: 59.25 kB / 0.5222 GB, free: 7.914 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007166/0.1928, allocations: 2.433 MB / 0.5245 GB, free: 5.465 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.1929, allocations: 8 kB / 0.5245 GB, free: 5.457 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.1929, allocations: 0 / 0.5245 GB, free: 5.457 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.1929, allocations: 3.984 kB / 0.5245 GB, free: 5.453 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008634/0.2015, allocations: 3.571 MB / 0.528 GB, free: 1.793 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/0.2016, allocations: 0 / 0.528 GB, free: 1.793 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003847/0.202, allocations: 83.83 kB / 0.5281 GB, free: 1.711 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002265/0.2043, allocations: 1.094 MB / 0.5292 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001047/0.2044, allocations: 23.98 kB / 0.5292 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2061/0.4105, allocations: 6.818 MB / 0.5359 GB, free: 50.99 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.4106, allocations: 3.594 kB / 0.5359 GB, free: 50.99 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008682/0.4192, allocations: 3.206 MB / 0.539 GB, free: 50.23 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003947/0.4197, allocations: 220.8 kB / 0.5392 GB, free: 50.1 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001786/0.4199, allocations: 32.97 kB / 0.5392 GB, free: 50.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007554/0.4206, allocations: 94.39 kB / 0.5393 GB, free: 50.08 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004444/0.4211, allocations: 172.1 kB / 0.5395 GB, free: 50.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.979e-05/0.4212, allocations: 26.5 kB / 0.5395 GB, free: 50.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004564/0.4216, allocations: 321.3 kB / 0.5398 GB, free: 49.9 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4217, allocations: 1.219 kB / 0.5398 GB, free: 49.9 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001075/0.4227, allocations: 222.9 kB / 0.54 GB, free: 49.88 MB / 414.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[2]) * Number of discrete variables: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * 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 (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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 {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009264/0.432, allocations: 3.774 MB / 0.5437 GB, free: 48.56 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004161/0.4362, allocations: 1.731 MB / 0.5454 GB, free: 47.99 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.4362, allocations: 1.281 kB / 0.5454 GB, free: 47.99 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00289/0.4391, allocations: 1.11 MB / 0.5465 GB, free: 47.63 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.4403, allocations: 164.1 kB / 0.5467 GB, free: 47.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02009/0.4605, allocations: 9.85 MB / 0.5563 GB, free: 41.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005179/0.461, allocations: 0.9928 MB / 0.5572 GB, free: 40.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00038/0.4614, allocations: 125 kB / 0.5574 GB, free: 40.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002845/0.4617, allocations: 235.3 kB / 0.5576 GB, free: 40.22 MB / 414.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4617, allocations: 0 / 0.5576 GB, free: 40.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04116/0.5029, allocations: 23.23 MB / 0.5803 GB, free: 16.94 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.42, allocations: 11.94 kB / 0.5803 GB, free: 16.93 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1)