Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001208/0.001208, allocations: 105.8 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.001208/0.001208, allocations: 195 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.362/1.362, 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.1748/0.1748, allocations: 37.99 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.001592/0.001592, allocations: 71.88 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1146, allocations: 55.24 MB / 486.6 MB, free: 8.852 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.009264/0.1239, allocations: 6.925 MB / 493.5 MB, free: 1.891 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004264/0.1282, allocations: 2.077 MB / 495.6 MB, free: 15.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007702/0.129, allocations: 27.81 kB / 495.6 MB, free: 15.78 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001613/0.1306, allocations: 0.4904 MB / 496.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001618/0.1323, allocations: 0.5521 MB / 496.7 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001189/0.1335, allocations: 399.2 kB / 497.1 MB, free: 14.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001898/0.1354, allocations: 1.399 MB / 498.5 MB, free: 12.94 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001504/0.1369, allocations: 0.8301 MB / 499.3 MB, free: 12.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001646/0.1386, allocations: 0.6307 MB / 499.9 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001395/0.14, allocations: 0.6737 MB / 0.4889 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003605/0.1404, allocations: 96 kB / 0.489 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001122/0.1415, allocations: 0.5188 MB / 0.4895 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006693/0.1422, allocations: 0.4949 MB / 0.4899 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009563/0.1432, allocations: 0.5754 MB / 0.4905 GB, free: 9.102 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002516/0.1457, allocations: 1.531 MB / 0.492 GB, free: 7.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.1457, allocations: 0 / 0.492 GB, free: 7.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1457, allocations: 0 / 0.492 GB, free: 7.566 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.804e-05/0.1458, allocations: 0 / 0.492 GB, free: 7.566 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.004746/0.1506, allocations: 1.575 MB / 0.4935 GB, free: 5.914 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.1506, allocations: 11.89 kB / 0.4936 GB, free: 5.902 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003651/0.151, allocations: 160.3 kB / 0.4937 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009734/0.152, allocations: 159.5 kB / 0.4939 GB, free: 5.582 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001522/0.1535, allocations: 0.737 MB / 0.4946 GB, free: 4.805 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001841/0.1537, allocations: 175.4 kB / 0.4947 GB, free: 4.617 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002869/0.154, allocations: 103.9 kB / 0.4948 GB, free: 4.516 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003264/0.1573, allocations: 1.528 MB / 0.4963 GB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.267e-05/0.1573, allocations: 3.938 kB / 0.4963 GB, free: 2.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001232/0.1575, allocations: 47.98 kB / 0.4964 GB, free: 2.863 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001659/0.1576, allocations: 65.97 kB / 0.4965 GB, free: 2.801 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002348/0.16, allocations: 1.167 MB / 0.4976 GB, free: 1.633 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007194/0.1672, allocations: 4.777 MB / 0.5023 GB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002929/0.1702, allocations: 1.117 MB / 0.5033 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00123/0.1714, allocations: 0.554 MB / 0.5039 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.847e-05/0.1715, allocations: 12.55 kB / 0.5039 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001521/0.173, allocations: 0.7144 MB / 0.5046 GB, free: 10.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 9.238e-06/0.173, allocations: 3.984 kB / 0.5046 GB, free: 10.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=81): time 0.008444/0.1815, allocations: 3.193 MB / 0.5077 GB, free: 6.945 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.1816, allocations: 127.5 kB / 0.5078 GB, free: 6.797 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00116/0.1828, allocations: 0.5964 MB / 0.5084 GB, free: 6.191 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.1829, allocations: 49.69 kB / 0.5085 GB, free: 6.137 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004955/0.1834, allocations: 451.1 kB / 0.5089 GB, free: 5.688 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003691/0.1838, allocations: 280.2 kB / 0.5092 GB, free: 5.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000462/0.1843, allocations: 198.5 kB / 0.5094 GB, free: 5.211 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003487/0.1847, allocations: 390.7 kB / 0.5097 GB, free: 4.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001148/0.1858, allocations: 490 kB / 0.5102 GB, free: 4.336 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001445/0.1873, allocations: 0.7382 MB / 0.5109 GB, free: 3.484 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00256/0.1899, allocations: 1.257 MB / 0.5121 GB, free: 2.109 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.1899, allocations: 3.938 kB / 0.5122 GB, free: 2.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003903/0.1938, allocations: 1.58 MB / 0.5137 GB, free: 500 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001053/0.1939, allocations: 69.61 kB / 0.5138 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003022/0.197, allocations: 1.329 MB / 0.5151 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006135/0.1976, allocations: 109.5 kB / 0.5152 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/0.1987, allocations: 199.7 kB / 0.5154 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00454/0.2033, allocations: 3.376 MB / 0.5186 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001139/0.2044, allocations: 71.92 kB / 0.5187 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002283/0.2047, allocations: 67.95 kB / 0.5188 GB, free: 10.95 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,ac_dc.modulator.t0[3],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 109 * Array equations: 1 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001035/0.2057, allocations: 381.4 kB / 0.5191 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000322/0.2061, allocations: 79.05 kB / 0.5192 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00304/0.2091, allocations: 1.274 MB / 0.5205 GB, free: 9.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.687e-05/0.2092, allocations: 16 kB / 0.5205 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.2092, allocations: 4 kB / 0.5205 GB, free: 9.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/0.2092, allocations: 7.922 kB / 0.5205 GB, free: 9.152 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004855/0.2141, allocations: 2.432 MB / 0.5229 GB, free: 6.633 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.796e-06/0.2141, allocations: 0 / 0.5229 GB, free: 6.633 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007446/0.2149, allocations: 143.9 kB / 0.523 GB, free: 6.492 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001229/0.215, allocations: 36.84 kB / 0.523 GB, free: 6.453 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.138e-05/0.2151, allocations: 23.97 kB / 0.5231 GB, free: 6.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001393/0.2165, allocations: 1.626 MB / 0.5247 GB, free: 4.668 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/0.2165, allocations: 3.938 kB / 0.5247 GB, free: 4.664 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003869/0.2204, allocations: 1.928 MB / 0.5265 GB, free: 2.684 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004359/0.2208, allocations: 236.1 kB / 0.5268 GB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002457/0.2211, allocations: 83.94 kB / 0.5268 GB, free: 2.352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007751/0.2219, allocations: 95.81 kB / 0.5269 GB, free: 2.258 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.222, allocations: 52.58 kB / 0.527 GB, free: 2.203 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.091e-05/0.2221, allocations: 31.97 kB / 0.527 GB, free: 2.172 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005908/0.2227, allocations: 398.8 kB / 0.5274 GB, free: 1.785 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.2227, allocations: 0 / 0.5274 GB, free: 1.785 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001075/0.2238, allocations: 240 kB / 0.5276 GB, free: 1.551 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 63 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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): 1 system {(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.2352/0.459, allocations: 2.549 MB / 0.5301 GB, free: 50.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003033/0.4621, allocations: 1.634 MB / 0.5317 GB, free: 50.05 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.4621, allocations: 1.156 kB / 0.5317 GB, free: 50.05 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001257/0.4634, allocations: 0.6569 MB / 0.5324 GB, free: 49.95 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009555/0.4643, allocations: 180.5 kB / 0.5325 GB, free: 49.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01206/0.4764, allocations: 9.2 MB / 0.5415 GB, free: 45.37 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005859/0.477, allocations: 1.114 MB / 0.5426 GB, free: 44.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006655/0.4777, allocations: 238 kB / 0.5428 GB, free: 44.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003883/0.4781, allocations: 330 kB / 0.5431 GB, free: 44.35 MB / 414.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4781, allocations: 0 / 0.5431 GB, free: 44.35 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04809/0.5262, allocations: 19.19 MB / 0.5619 GB, free: 33.69 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.31, allocations: 7.922 kB / 0.5619 GB, free: 33.68 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)