Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",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: 108.5 kB / 17.06 MB, free: 6.016 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.001121/0.001121, allocations: 199.9 kB / 18 MB, free: 5.094 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.373/1.373, allocations: 205.1 MB / 223.9 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1825/0.1825, allocations: 37.98 MB / 309.2 MB, free: 5.961 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.001547/0.001547, allocations: 59.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1165, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.009552/0.1261, allocations: 6.504 MB / 493.1 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002933/0.1291, allocations: 1.353 MB / 494.5 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006523/0.1298, allocations: 27.81 kB / 494.5 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005684/0.1304, allocations: 126.9 kB / 494.6 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001634/0.1321, allocations: 421.9 kB / 495 MB, free: 392 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007283/0.1328, allocations: 231.6 kB / 495.3 MB, free: 160 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001757/0.1346, allocations: 1.122 MB / 496.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006446/0.1352, allocations: 405.7 kB / 496.8 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00113/0.1364, allocations: 0.502 MB / 497.3 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001232/0.1376, allocations: 0.5294 MB / 497.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002543/0.1379, allocations: 68 kB / 497.9 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003232/0.1382, allocations: 64 kB / 497.9 MB, free: 13.47 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005377/0.1388, allocations: 331.2 kB / 498.3 MB, free: 13.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009421/0.1397, allocations: 402.1 kB / 498.7 MB, free: 12.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001346/0.1411, allocations: 0.911 MB / 499.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1411, allocations: 8 kB / 499.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1411, allocations: 0 / 499.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.09e-05/0.1412, allocations: 0 / 499.6 MB, free: 11.83 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.00296/0.1441, allocations: 1.152 MB / 0.489 GB, free: 10.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/0.1442, allocations: 15.89 kB / 0.489 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002372/0.1445, allocations: 114.6 kB / 0.4891 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002396/0.1447, allocations: 84 kB / 0.4892 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001262/0.146, allocations: 0.6117 MB / 0.4898 GB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.1461, allocations: 116.7 kB / 0.4899 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001485/0.1463, allocations: 67.98 kB / 0.49 GB, free: 9.547 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001714/0.148, allocations: 0.8575 MB / 0.4908 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.148, allocations: 0 / 0.4908 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.687e-05/0.1481, allocations: 28 kB / 0.4908 GB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001348/0.1483, allocations: 37.28 kB / 0.4909 GB, free: 8.582 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001335/0.1496, allocations: 0.6256 MB / 0.4915 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004049/0.1537, allocations: 2.731 MB / 0.4941 GB, free: 5.125 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001886/0.1556, allocations: 0.9042 MB / 0.495 GB, free: 4.129 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008148/0.1564, allocations: 322.2 kB / 0.4953 GB, free: 3.809 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.33e-05/0.1565, allocations: 8.312 kB / 0.4953 GB, free: 3.801 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007538/0.1572, allocations: 342.8 kB / 0.4957 GB, free: 3.445 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 2.395e-06/0.1572, allocations: 4 kB / 0.4957 GB, free: 3.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.004387/0.1616, allocations: 1.978 MB / 0.4976 GB, free: 1.344 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.07e-05/0.1617, allocations: 114.8 kB / 0.4977 GB, free: 1.207 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000627/0.1624, allocations: 0.5105 MB / 0.4982 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.263e-05/0.1624, allocations: 37.7 kB / 0.4982 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003215/0.1628, allocations: 359.8 kB / 0.4986 GB, free: 292 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.1629, allocations: 138.1 kB / 0.4987 GB, free: 152 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/0.1631, allocations: 118.1 kB / 0.4988 GB, free: 24 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.1633, allocations: 374.8 kB / 0.4992 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000356/0.1636, allocations: 221.1 kB / 0.4994 GB, free: 15.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004483/0.1641, allocations: 394.2 kB / 0.4998 GB, free: 14.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007588/0.1649, allocations: 0.6249 MB / 0.5004 GB, free: 14.28 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1649, allocations: 7.938 kB / 0.5004 GB, free: 14.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001254/0.1661, allocations: 0.8941 MB / 0.5013 GB, free: 13.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.932e-05/0.1662, allocations: 53.59 kB / 0.5013 GB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.1662, allocations: 7.984 kB / 0.5013 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002986/0.1665, allocations: 93.94 kB / 0.5014 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003881/0.1669, allocations: 107.8 kB / 0.5015 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002693/0.1697, allocations: 3.255 MB / 0.5047 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003817/0.1701, allocations: 31.98 kB / 0.5047 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.583e-05/0.1701, allocations: 44.06 kB / 0.5048 GB, free: 9.461 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003814/0.1705, allocations: 266.7 kB / 0.505 GB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.1706, allocations: 59.25 kB / 0.5051 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001563/0.1722, allocations: 0.7119 MB / 0.5058 GB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.1722, allocations: 7.938 kB / 0.5058 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.1722, allocations: 4 kB / 0.5058 GB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.1723, allocations: 4 kB / 0.5058 GB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002671/0.1749, allocations: 1.536 MB / 0.5073 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.175, allocations: 4 kB / 0.5073 GB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002921/0.1753, allocations: 59.91 kB / 0.5074 GB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003055/0.1756, allocations: 101.7 kB / 0.5075 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.435e-05/0.1756, allocations: 15.98 kB / 0.5075 GB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002525/0.1782, allocations: 3.247 MB / 0.5106 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.1782, allocations: 160 / 0.5106 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002054/0.1802, allocations: 1.072 MB / 0.5117 GB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002744/0.1805, allocations: 180.3 kB / 0.5119 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.1806, allocations: 31.98 kB / 0.5119 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003995/0.1811, allocations: 35.94 kB / 0.5119 GB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.807e-05/0.1811, allocations: 31.91 kB / 0.512 GB, free: 1.617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.546e-05/0.1812, allocations: 15.98 kB / 0.512 GB, free: 1.602 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004224/0.1816, allocations: 358.8 kB / 0.5123 GB, free: 1.254 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.1816, allocations: 0 / 0.5123 GB, free: 1.254 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007171/0.1824, allocations: 152 kB / 0.5125 GB, free: 1.105 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002434/0.1848, allocations: 1.636 MB / 0.5141 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001705/0.1865, allocations: 0.9019 MB / 0.5149 GB, free: 14.47 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1865, allocations: 1.25 kB / 0.5149 GB, free: 14.47 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000981/0.1875, allocations: 0.4933 MB / 0.5154 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009131/0.1884, allocations: 146.3 kB / 0.5156 GB, free: 13.81 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008989/0.1974, allocations: 6.095 MB / 0.5215 GB, free: 7.422 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000696/0.1982, allocations: 0.9721 MB / 0.5225 GB, free: 6.418 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000365/0.1986, allocations: 108.9 kB / 0.5226 GB, free: 6.312 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003417/0.1989, allocations: 223.4 kB / 0.5228 GB, free: 6.094 MB / 414.1 MB Notification: Performance of SimCode: time 1.483e-06/0.1989, allocations: 0 / 0.5228 GB, free: 6.094 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.283/0.4819, allocations: 13.43 MB / 0.5359 GB, free: 52.4 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.989/10.47, allocations: 9.375 kB / 0.5359 GB, free: 52.39 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)