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.001581/0.001581, allocations: 112.5 kB / 17.68 MB, free: 5.469 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.001713/0.001713, allocations: 192 kB / 18.61 MB, free: 4.543 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.38/1.38, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1727/0.1727, allocations: 37.99 MB / 309.8 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.001503/0.001503, allocations: 71.89 kB / 376.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2345, allocations: 55.24 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.006114/0.2407, allocations: 6.475 MB / 438.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002909/0.2436, allocations: 2.494 MB / 441 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002723/0.2439, allocations: 23.88 kB / 441 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009922/0.2449, allocations: 440.6 kB / 441.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008656/0.2458, allocations: 0.5912 MB / 442 MB, free: 9.438 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007378/0.2465, allocations: 491.1 kB / 442.5 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001209/0.2478, allocations: 1.961 MB / 444.5 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007342/0.2485, allocations: 0.8571 MB / 445.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000624/0.2491, allocations: 0.7713 MB / 446.1 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00096/0.2501, allocations: 0.9662 MB / 447.1 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000179/0.2503, allocations: 160 kB / 447.2 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007391/0.251, allocations: 0.6476 MB / 447.9 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004417/0.2515, allocations: 0.6432 MB / 448.5 MB, free: 2.93 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005171/0.252, allocations: 0.6731 MB / 449.2 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001247/0.2533, allocations: 2.041 MB / 451.2 MB, free: 212 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2533, allocations: 0 / 451.2 MB, free: 212 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2533, allocations: 0 / 451.2 MB, free: 212 kB / 318.1 MB Notification: Performance of Transformations before backend: time 2.177e-05/0.2533, allocations: 0 / 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.004467/0.2578, allocations: 1.902 MB / 453.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.2579, allocations: 11.89 kB / 453.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008127/0.2587, allocations: 167.6 kB / 453.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002249/0.2609, allocations: 0.9673 MB / 454.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006603/0.2616, allocations: 0.5067 MB / 454.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002654/0.2619, allocations: 111.8 kB / 454.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003726/0.2656, allocations: 2.007 MB / 456.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.529e-05/0.2657, allocations: 0 / 456.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001297/0.2658, allocations: 39.98 kB / 456.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002199/0.266, allocations: 93.94 kB / 457 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00457/0.2706, allocations: 2.24 MB / 459.3 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009362/0.28, allocations: 5.663 MB / 464.9 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004291/0.2843, allocations: 1.793 MB / 466.7 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002384/0.2867, allocations: 1.145 MB / 467.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001087/0.2868, allocations: 20.89 kB / 467.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002822/0.2897, allocations: 1.383 MB / 469.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=123): time 3.346e-06/0.2897, allocations: 0 / 469.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.01297/0.3027, allocations: 5.622 MB / 474.9 MB, free: 8.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.511e-05/0.3028, allocations: 110 kB / 475 MB, free: 7.957 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006046/0.3034, allocations: 0.494 MB / 475.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001186/0.3035, allocations: 57.7 kB / 475.6 MB, free: 7.387 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002913/0.3038, allocations: 360.7 kB / 475.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003791/0.3042, allocations: 418 kB / 476.3 MB, free: 6.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004302/0.3046, allocations: 234.8 kB / 476.5 MB, free: 6.379 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.3048, allocations: 394.7 kB / 476.9 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001959/0.3068, allocations: 1.021 MB / 477.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002022/0.3088, allocations: 1.18 MB / 479.1 MB, free: 3.742 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003735/0.3126, allocations: 2.039 MB / 481.2 MB, free: 1.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.3126, allocations: 0 / 481.2 MB, free: 1.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01037/0.323, allocations: 3.895 MB / 485.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.733e-05/0.3231, allocations: 61.67 kB / 485.1 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.3231, allocations: 4 kB / 485.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005805/0.3289, allocations: 2.07 MB / 487.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008892/0.3298, allocations: 187.7 kB / 487.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0241/0.3539, allocations: 11.32 MB / 498.7 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/0.3555, allocations: 159.8 kB / 498.9 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001726/0.3556, allocations: 75.88 kB / 498.9 MB, free: 15.71 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.0007225/0.3564, allocations: 385.4 kB / 499.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002479/0.3566, allocations: 83.05 kB / 499.4 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005113/0.3618, allocations: 2.365 MB / 0.49 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.756e-05/0.3618, allocations: 24 kB / 0.49 GB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.3618, allocations: 4 kB / 0.49 GB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.3618, allocations: 7.969 kB / 0.49 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007965/0.3698, allocations: 4.094 MB / 0.494 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.3698, allocations: 0 / 0.494 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009843/0.3797, allocations: 2.025 MB / 0.496 GB, free: 6.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.966e-05/0.3797, allocations: 8 kB / 0.496 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002186/0.38, allocations: 43.89 kB / 0.4961 GB, free: 6.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.418e-06/0.38, allocations: 4 kB / 0.4961 GB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.38, allocations: 4 kB / 0.4961 GB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007563/0.3876, allocations: 3.851 MB / 0.4998 GB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007833/0.3884, allocations: 336 kB / 0.5001 GB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002414/0.3886, allocations: 95.88 kB / 0.5002 GB, free: 2.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00132/0.3899, allocations: 187.7 kB / 0.5004 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004716/0.3904, allocations: 196.7 kB / 0.5006 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001239/0.3906, allocations: 39.97 kB / 0.5006 GB, free: 1.816 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000452/0.391, allocations: 342.8 kB / 0.501 GB, free: 1.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.391, allocations: 0 / 0.501 GB, free: 1.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001133/0.3922, allocations: 355.9 kB / 0.5013 GB, free: 1.133 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.0003912/0.3926, allocations: 220.7 kB / 0.5015 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006146/0.3987, allocations: 3.01 MB / 0.5045 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.3987, allocations: 0 / 0.5045 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005735/0.4045, allocations: 1.934 MB / 0.5063 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/0.4056, allocations: 185.4 kB / 0.5065 GB, free: 11.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007119/0.4127, allocations: 3.332 MB / 0.5098 GB, free: 8.375 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00096/0.4137, allocations: 1.14 MB / 0.5109 GB, free: 7.207 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009801/0.4147, allocations: 314.8 kB / 0.5112 GB, free: 6.895 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004111/0.4151, allocations: 79.41 kB / 0.5113 GB, free: 6.816 MB / 398.1 MB Notification: Performance of SimCode: time 1.332e-06/0.4151, allocations: 0 / 0.5113 GB, free: 6.816 MB / 398.1 MB Notification: Performance of Templates: time 0.212/0.6272, allocations: 24.62 MB / 0.5353 GB, free: 80.51 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 gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)