Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 108.6 kB / 17.06 MB, free: 6.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.001277/0.001278, allocations: 200.1 kB / 18 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1879/0.1879, allocations: 38.03 MB / 329.9 MB, free: 8.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 71.83 kB / 458.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3773, allocations: 58.05 MB / 0.5041 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.006051/0.3834, allocations: 5.964 MB / 0.5099 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002331/0.3858, allocations: 1.559 MB / 0.5114 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002902/0.3861, allocations: 26.47 kB / 0.5115 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004482/0.3865, allocations: 134.6 kB / 0.5116 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007234/0.3873, allocations: 371.1 kB / 0.5119 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006135/0.3879, allocations: 318.2 kB / 0.5123 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001354/0.3893, allocations: 1.341 MB / 0.5136 GB, free: 1.605 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004647/0.3897, allocations: 370.5 kB / 0.5139 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008165/0.3906, allocations: 0.55 MB / 0.5145 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007346/0.3913, allocations: 0.5471 MB / 0.515 GB, free: 1.016 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001417/0.3915, allocations: 94.34 kB / 0.5151 GB, free: 1.012 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001588/0.3916, allocations: 92.28 kB / 0.5152 GB, free: 1.012 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003527/0.392, allocations: 343.1 kB / 0.5155 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003959/0.3924, allocations: 412.9 kB / 0.5159 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001184/0.3936, allocations: 1.052 MB / 0.5169 GB, free: 256 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3936, allocations: 0 / 0.5169 GB, free: 256 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3936, allocations: 0.625 kB / 0.5169 GB, free: 256 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.536e-05/0.3936, allocations: 0 / 0.5169 GB, free: 256 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002696/0.3963, allocations: 1.199 MB / 0.5181 GB, free: 15.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.3964, allocations: 9.625 kB / 0.5181 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001955/0.3966, allocations: 82.12 kB / 0.5182 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/0.3979, allocations: 0.6655 MB / 0.5188 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004484/0.3983, allocations: 335.5 kB / 0.5191 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/0.3985, allocations: 63.58 kB / 0.5192 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002451/0.4009, allocations: 1.043 MB / 0.5202 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.401, allocations: 0 / 0.5202 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9e-05/0.4011, allocations: 26.42 kB / 0.5202 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.4011, allocations: 18.83 kB / 0.5203 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002802/0.4039, allocations: 1.089 MB / 0.5213 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005431/0.4093, allocations: 3.195 MB / 0.5244 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0023/0.4117, allocations: 0.748 MB / 0.5252 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001538/0.4132, allocations: 0.5333 MB / 0.5257 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.246e-05/0.4133, allocations: 8.859 kB / 0.5257 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001565/0.4149, allocations: 0.6322 MB / 0.5263 GB, free: 11.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.675e-06/0.4149, allocations: 0 / 0.5263 GB, free: 11.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.00402/0.4189, allocations: 1.365 MB / 0.5277 GB, free: 10.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.679e-05/0.419, allocations: 146 kB / 0.5278 GB, free: 10.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004802/0.4195, allocations: 392 kB / 0.5282 GB, free: 10.26 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.868e-05/0.4196, allocations: 39.83 kB / 0.5282 GB, free: 10.22 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002472/0.4198, allocations: 293.4 kB / 0.5285 GB, free: 9.957 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001762/0.42, allocations: 159.2 kB / 0.5286 GB, free: 9.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/0.4203, allocations: 118.7 kB / 0.5288 GB, free: 9.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.4204, allocations: 358.4 kB / 0.5291 GB, free: 9.402 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.4215, allocations: 455.5 kB / 0.5295 GB, free: 9.184 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/0.4227, allocations: 0.558 MB / 0.5301 GB, free: 8.832 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00235/0.4251, allocations: 0.8896 MB / 0.5309 GB, free: 8.305 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.4251, allocations: 3.938 kB / 0.5309 GB, free: 8.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002589/0.4277, allocations: 1.081 MB / 0.532 GB, free: 7.746 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.215e-05/0.4278, allocations: 55.53 kB / 0.5321 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.689e-06/0.4278, allocations: 3 kB / 0.5321 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.311e-05/0.4278, allocations: 5.562 kB / 0.5321 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006216/0.4341, allocations: 1.111 MB / 0.5331 GB, free: 7.266 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008487/0.4426, allocations: 4.707 MB / 0.5377 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.4436, allocations: 112.4 kB / 0.5379 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.4437, allocations: 33.61 kB / 0.5379 GB, free: 3.277 MB / 398.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: 14 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005513/0.4443, allocations: 249 kB / 0.5381 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.4444, allocations: 55.66 kB / 0.5382 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002777/0.4472, allocations: 0.983 MB / 0.5391 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.4472, allocations: 9.703 kB / 0.5391 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.4472, allocations: 1.188 kB / 0.5391 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.4472, allocations: 6.266 kB / 0.5392 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004121/0.4514, allocations: 2.13 MB / 0.5412 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.4514, allocations: 5.062 kB / 0.5412 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006994/0.4584, allocations: 1.284 MB / 0.5425 GB, free: 416 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.668e-06/0.4584, allocations: 4 kB / 0.5425 GB, free: 412 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-05/0.4585, allocations: 15.98 kB / 0.5425 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.091e-06/0.4585, allocations: 4 kB / 0.5425 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.4585, allocations: 4 kB / 0.5425 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00399/0.4625, allocations: 1.697 MB / 0.5442 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003038/0.4628, allocations: 208.3 kB / 0.5444 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/0.4629, allocations: 31.98 kB / 0.5444 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007014/0.4636, allocations: 87.88 kB / 0.5445 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002121/0.4639, allocations: 103.7 kB / 0.5446 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-05/0.4639, allocations: 19.98 kB / 0.5446 GB, free: 14.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002935/0.4642, allocations: 267.2 kB / 0.5449 GB, free: 13.92 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4642, allocations: 0 / 0.5449 GB, free: 13.92 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006824/0.4649, allocations: 175.7 kB / 0.545 GB, free: 13.75 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * 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 (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001668/0.4651, allocations: 123.1 kB / 0.5451 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007608/0.4727, allocations: 2.082 MB / 0.5472 GB, free: 11.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4727, allocations: 0 / 0.5472 GB, free: 11.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003678/0.4764, allocations: 0.9642 MB / 0.5481 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002148/0.4786, allocations: 129.4 kB / 0.5482 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003591/0.4822, allocations: 1.582 MB / 0.5498 GB, free: 8.805 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004642/0.4827, allocations: 0.929 MB / 0.5507 GB, free: 7.848 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005255/0.4832, allocations: 160.6 kB / 0.5508 GB, free: 7.688 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001904/0.4834, allocations: 47.42 kB / 0.5509 GB, free: 7.641 MB / 414.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4834, allocations: 4 kB / 0.5509 GB, free: 7.637 MB / 414.1 MB Notification: Performance of Templates: time 0.01418/0.4976, allocations: 8.747 MB / 0.5594 GB, free: 14.96 MB / 430.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)