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.001461/0.00146, allocations: 109.8 kB / 17.06 MB, free: 5.977 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.001724/0.001724, allocations: 199 kB / 18 MB, free: 5.066 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.335/1.335, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1735/0.1735, allocations: 37.97 MB / 309.2 MB, free: 5.957 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.001469/0.001469, allocations: 71.91 kB / 431.4 MB, free: 16.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08771/0.08919, allocations: 55.24 MB / 486.6 MB, free: 8.824 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.008279/0.09751, allocations: 6.924 MB / 493.5 MB, free: 1.863 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003441/0.101, allocations: 2.069 MB / 495.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004184/0.1014, allocations: 31.81 kB / 495.6 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001235/0.1027, allocations: 498.2 kB / 496.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001164/0.1039, allocations: 0.5521 MB / 496.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008701/0.1048, allocations: 403.2 kB / 497.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001376/0.1062, allocations: 1.407 MB / 498.5 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009605/0.1071, allocations: 0.8146 MB / 499.3 MB, free: 12.08 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008851/0.108, allocations: 0.6307 MB / 499.9 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009372/0.109, allocations: 0.6815 MB / 0.4889 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001338/0.1091, allocations: 100 kB / 0.489 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008504/0.11, allocations: 0.5188 MB / 0.4895 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004616/0.1105, allocations: 0.4988 MB / 0.49 GB, free: 9.648 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005053/0.111, allocations: 0.5676 MB / 0.4905 GB, free: 9.078 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001378/0.1124, allocations: 1.527 MB / 0.492 GB, free: 7.547 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1124, allocations: 8 kB / 0.492 GB, free: 7.539 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1124, allocations: 0 / 0.492 GB, free: 7.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.722e-05/0.1124, allocations: 0 / 0.492 GB, free: 7.539 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.002847/0.1153, allocations: 1.571 MB / 0.4936 GB, free: 5.891 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.1153, allocations: 11.89 kB / 0.4936 GB, free: 5.879 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001821/0.1155, allocations: 160.3 kB / 0.4937 GB, free: 5.715 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007275/0.1162, allocations: 155.5 kB / 0.4939 GB, free: 5.562 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001359/0.1176, allocations: 0.737 MB / 0.4946 GB, free: 4.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/0.1178, allocations: 179.4 kB / 0.4948 GB, free: 4.594 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002225/0.118, allocations: 103.9 kB / 0.4949 GB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00259/0.1206, allocations: 1.528 MB / 0.4963 GB, free: 2.891 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.923e-05/0.1207, allocations: 7.938 kB / 0.4964 GB, free: 2.883 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001051/0.1208, allocations: 39.97 kB / 0.4964 GB, free: 2.844 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000154/0.1209, allocations: 69.97 kB / 0.4965 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002112/0.123, allocations: 1.171 MB / 0.4976 GB, free: 1.605 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006286/0.1293, allocations: 4.769 MB / 0.5023 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002943/0.1323, allocations: 1.133 MB / 0.5034 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001332/0.1337, allocations: 0.5501 MB / 0.5039 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.943e-05/0.1337, allocations: 12.56 kB / 0.5039 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001501/0.1353, allocations: 0.7183 MB / 0.5046 GB, free: 10.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 2.966e-06/0.1353, allocations: 0 / 0.5046 GB, free: 10.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=81): time 0.007394/0.1427, allocations: 3.185 MB / 0.5077 GB, free: 6.922 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.349e-05/0.1428, allocations: 127.5 kB / 0.5078 GB, free: 6.773 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007039/0.1435, allocations: 0.5964 MB / 0.5084 GB, free: 6.168 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.533e-05/0.1436, allocations: 49.7 kB / 0.5085 GB, free: 6.113 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003297/0.144, allocations: 451.1 kB / 0.5089 GB, free: 5.664 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002916/0.1443, allocations: 280.2 kB / 0.5092 GB, free: 5.387 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003182/0.1446, allocations: 198.4 kB / 0.5094 GB, free: 5.188 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.1448, allocations: 394.8 kB / 0.5097 GB, free: 4.793 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006999/0.1455, allocations: 478 kB / 0.5102 GB, free: 4.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008875/0.1464, allocations: 0.746 MB / 0.5109 GB, free: 3.461 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001534/0.1479, allocations: 1.257 MB / 0.5122 GB, free: 2.086 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/0.1479, allocations: 4 kB / 0.5122 GB, free: 2.082 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002387/0.1503, allocations: 1.58 MB / 0.5137 GB, free: 476 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.848e-05/0.1504, allocations: 61.62 kB / 0.5138 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001841/0.1523, allocations: 1.329 MB / 0.5151 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004376/0.1527, allocations: 121.5 kB / 0.5152 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007767/0.1535, allocations: 195.7 kB / 0.5154 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002787/0.1563, allocations: 3.368 MB / 0.5186 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006969/0.157, allocations: 80.02 kB / 0.5187 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.1572, allocations: 75.94 kB / 0.5188 GB, free: 10.91 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.0005468/0.1577, allocations: 381.4 kB / 0.5192 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001973/0.1579, allocations: 75.06 kB / 0.5192 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002874/0.1608, allocations: 1.274 MB / 0.5205 GB, free: 9.148 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.446e-05/0.1608, allocations: 16 kB / 0.5205 GB, free: 9.133 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1608, allocations: 0 / 0.5205 GB, free: 9.133 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.1609, allocations: 11.92 kB / 0.5205 GB, free: 9.121 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004479/0.1653, allocations: 2.432 MB / 0.5229 GB, free: 6.602 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.1654, allocations: 0 / 0.5229 GB, free: 6.602 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007266/0.1661, allocations: 139.8 kB / 0.523 GB, free: 6.465 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001056/0.1662, allocations: 44.92 kB / 0.5231 GB, free: 6.418 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.617e-05/0.1663, allocations: 23.97 kB / 0.5231 GB, free: 6.395 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/0.1674, allocations: 1.626 MB / 0.5247 GB, free: 4.633 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.1674, allocations: 4.125 kB / 0.5247 GB, free: 4.629 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003799/0.1712, allocations: 1.92 MB / 0.5265 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004579/0.1717, allocations: 244.1 kB / 0.5268 GB, free: 2.398 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000188/0.1719, allocations: 75.94 kB / 0.5268 GB, free: 2.324 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007785/0.1727, allocations: 95.81 kB / 0.5269 GB, free: 2.23 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/0.1729, allocations: 48.66 kB / 0.527 GB, free: 2.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.769e-05/0.1729, allocations: 43.95 kB / 0.527 GB, free: 2.137 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004443/0.1734, allocations: 402.8 kB / 0.5274 GB, free: 1.746 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1734, allocations: 0 / 0.5274 GB, free: 1.746 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009083/0.1743, allocations: 232 kB / 0.5276 GB, free: 1.52 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.1839/0.3582, allocations: 2.545 MB / 0.5301 GB, free: 50.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002647/0.3609, allocations: 1.639 MB / 0.5317 GB, free: 50.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3609, allocations: 0 / 0.5317 GB, free: 50.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001228/0.3621, allocations: 0.6553 MB / 0.5324 GB, free: 49.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009397/0.3631, allocations: 175.1 kB / 0.5325 GB, free: 49.92 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/0.3751, allocations: 9.196 MB / 0.5415 GB, free: 45.35 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005697/0.3757, allocations: 1.117 MB / 0.5426 GB, free: 44.6 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006261/0.3763, allocations: 236.8 kB / 0.5428 GB, free: 44.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004242/0.3768, allocations: 328.8 kB / 0.5431 GB, free: 44.33 MB / 414.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3768, allocations: 4 kB / 0.5431 GB, free: 44.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04088/0.4177, allocations: 19.18 MB / 0.5619 GB, free: 33.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.96, allocations: 3.938 kB / 0.5619 GB, free: 33.66 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)