Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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 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: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 115.4 kB / 17.69 MB, free: 5.098 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.001428/0.001428, allocations: 191 kB / 18.63 MB, free: 4.25 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.552/1.552, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1925/0.1925, allocations: 37.99 MB / 309.8 MB, free: 5.977 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.001705/0.001705, allocations: 67.91 kB / 376.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2929, allocations: 55.25 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.006612/0.2996, allocations: 6.484 MB / 438.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004258/0.3039, allocations: 2.494 MB / 441 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006048/0.3045, allocations: 23.88 kB / 441 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001285/0.3058, allocations: 425.9 kB / 441.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001466/0.3073, allocations: 0.595 MB / 442 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001244/0.3085, allocations: 495.1 kB / 442.5 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002201/0.3108, allocations: 1.965 MB / 444.5 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001004/0.3118, allocations: 0.8571 MB / 445.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001243/0.313, allocations: 0.7673 MB / 446.1 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001299/0.3144, allocations: 0.9585 MB / 447.1 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001975/0.3146, allocations: 160 kB / 447.2 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001065/0.3156, allocations: 0.6475 MB / 447.9 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005168/0.3162, allocations: 0.6471 MB / 448.5 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000656/0.3168, allocations: 0.677 MB / 449.2 MB, free: 2.258 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001804/0.3187, allocations: 2.034 MB / 451.2 MB, free: 224 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.618e-06/0.3187, allocations: 4 kB / 451.2 MB, free: 220 kB / 318.1 MB Notification: Performance of FrontEnd: time 3.436e-06/0.3187, allocations: 3.938 kB / 451.2 MB, free: 216 kB / 318.1 MB Notification: Performance of Transformations before backend: time 3.318e-05/0.3187, allocations: 3.938 kB / 451.2 MB, free: 212 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.006309/0.3251, allocations: 1.906 MB / 453.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.393e-05/0.3251, allocations: 11.89 kB / 453.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009867/0.3261, allocations: 167.6 kB / 453.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002423/0.3286, allocations: 0.9635 MB / 454.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007859/0.3294, allocations: 0.495 MB / 454.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003062/0.3297, allocations: 111.8 kB / 454.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004183/0.3339, allocations: 2.011 MB / 456.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/0.334, allocations: 8 kB / 456.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001346/0.3341, allocations: 39.92 kB / 457 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002209/0.3343, allocations: 85.94 kB / 457 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004775/0.3391, allocations: 2.244 MB / 459.3 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01043/0.3496, allocations: 5.659 MB / 464.9 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004581/0.3542, allocations: 1.793 MB / 466.7 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002744/0.357, allocations: 1.148 MB / 467.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001055/0.3571, allocations: 16.89 kB / 467.9 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003976/0.3611, allocations: 1.394 MB / 469.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=123): time 6.772e-06/0.3611, allocations: 0 / 469.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.01327/0.3744, allocations: 5.622 MB / 474.9 MB, free: 8.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001362/0.3746, allocations: 102.1 kB / 475 MB, free: 7.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006418/0.3753, allocations: 0.49 MB / 475.5 MB, free: 7.461 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001188/0.3754, allocations: 65.67 kB / 475.6 MB, free: 7.391 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003097/0.3757, allocations: 356.7 kB / 475.9 MB, free: 7.035 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003985/0.3761, allocations: 422 kB / 476.3 MB, free: 6.617 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004417/0.3766, allocations: 230.8 kB / 476.6 MB, free: 6.387 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002159/0.3768, allocations: 398.8 kB / 476.9 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002178/0.379, allocations: 1.025 MB / 478 MB, free: 4.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002069/0.3811, allocations: 1.176 MB / 479.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003826/0.3849, allocations: 2.043 MB / 481.2 MB, free: 1.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.3849, allocations: 0 / 481.2 MB, free: 1.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01056/0.3955, allocations: 3.891 MB / 485.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001878/0.3958, allocations: 61.67 kB / 485.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.243e-05/0.3958, allocations: 4 kB / 485.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006317/0.4021, allocations: 2.063 MB / 487.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/0.4033, allocations: 195.7 kB / 487.4 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02515/0.4285, allocations: 11.31 MB / 498.7 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/0.43, allocations: 163.8 kB / 498.9 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001802/0.4302, allocations: 75.88 kB / 498.9 MB, free: 15.73 MB / 382.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: 28 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],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,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 3 * 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 {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0007735/0.431, allocations: 385.4 kB / 499.3 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002516/0.4313, allocations: 79.05 kB / 499.4 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005209/0.4365, allocations: 2.373 MB / 0.49 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.632e-05/0.4366, allocations: 23.98 kB / 0.49 GB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.4366, allocations: 4 kB / 0.49 GB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.4366, allocations: 3.984 kB / 0.49 GB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008042/0.4446, allocations: 4.094 MB / 0.494 GB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.4447, allocations: 7.984 kB / 0.494 GB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009589/0.4543, allocations: 2.017 MB / 0.496 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.029e-05/0.4543, allocations: 4 kB / 0.496 GB, free: 6.648 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002444/0.4546, allocations: 39.91 kB / 0.4961 GB, free: 6.609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.376e-05/0.4546, allocations: 11.94 kB / 0.4961 GB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.4546, allocations: 4 kB / 0.4961 GB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007911/0.4625, allocations: 3.855 MB / 0.4998 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008359/0.4634, allocations: 343.9 kB / 0.5002 GB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002412/0.4637, allocations: 91.88 kB / 0.5002 GB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/0.4649, allocations: 183.7 kB / 0.5004 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000425/0.4653, allocations: 192.7 kB / 0.5006 GB, free: 1.871 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001261/0.4655, allocations: 47.95 kB / 0.5007 GB, free: 1.824 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005451/0.466, allocations: 342.8 kB / 0.501 GB, free: 1.488 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.466, allocations: 0 / 0.501 GB, free: 1.488 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001396/0.4674, allocations: 359.9 kB / 0.5013 GB, free: 1.137 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.0005163/0.468, allocations: 216.9 kB / 0.5015 GB, free: 0.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006637/0.4746, allocations: 3.006 MB / 0.5045 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/0.4747, allocations: 3.938 kB / 0.5045 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0059/0.4806, allocations: 1.93 MB / 0.5064 GB, free: 11.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.4817, allocations: 173.8 kB / 0.5065 GB, free: 11.79 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00767/0.4894, allocations: 3.335 MB / 0.5098 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/0.4905, allocations: 1.136 MB / 0.5109 GB, free: 7.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001128/0.4916, allocations: 326.7 kB / 0.5112 GB, free: 6.906 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004004/0.4921, allocations: 75.42 kB / 0.5113 GB, free: 6.832 MB / 398.1 MB Notification: Performance of SimCode: time 1.422e-06/0.4921, allocations: 0 / 0.5113 GB, free: 6.832 MB / 398.1 MB Notification: Performance of Templates: time 0.2751/0.7671, allocations: 24.61 MB / 0.5353 GB, free: 80.54 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)