Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_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.0008398/0.0008398, allocations: 95.73 kB / 16.3 MB, free: 6.461 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.001012/0.001012, allocations: 180.7 kB / 17.2 MB, free: 6.34 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.218/1.218, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2769/0.2769, allocations: 38.08 MB / 330.3 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000312/0.0003121, allocations: 8 kB / 400 MB, free: 9.289 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2493, allocations: 59.16 MB / 459.1 MB, free: 30 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.005646/0.255, allocations: 6.429 MB / 465.6 MB, free: 25.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003941/0.259, allocations: 2.621 MB / 468.2 MB, free: 23.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005133/0.2595, allocations: 47.34 kB / 468.2 MB, free: 23.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004549/0.26, allocations: 169.1 kB / 468.4 MB, free: 23.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001238/0.2612, allocations: 490.1 kB / 468.9 MB, free: 23.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.2623, allocations: 427.5 kB / 469.3 MB, free: 23.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001193/0.2635, allocations: 1.031 MB / 470.3 MB, free: 22.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001178/0.2647, allocations: 0.8359 MB / 471.1 MB, free: 22.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008584/0.2656, allocations: 0.569 MB / 471.7 MB, free: 21.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000999/0.2666, allocations: 0.7364 MB / 472.5 MB, free: 21.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001599/0.2668, allocations: 68.66 kB / 472.5 MB, free: 21.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009687/0.2677, allocations: 0.5036 MB / 473 MB, free: 21.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006654/0.2684, allocations: 0.5187 MB / 473.5 MB, free: 21.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002947/0.2687, allocations: 225.1 kB / 473.8 MB, free: 21.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001423/0.2701, allocations: 1.537 MB / 475.3 MB, free: 20.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.2702, allocations: 0 / 475.3 MB, free: 20.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2702, allocations: 0 / 475.3 MB, free: 20.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.462e-05/0.2702, allocations: 0 / 475.3 MB, free: 20.67 MB / 350.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.003918/0.2741, allocations: 1.725 MB / 477 MB, free: 19.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.2741, allocations: 13.12 kB / 477 MB, free: 19.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000719/0.2749, allocations: 168.7 kB / 477.2 MB, free: 19.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002109/0.277, allocations: 0.9246 MB / 478.1 MB, free: 18.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005085/0.2775, allocations: 0.5167 MB / 478.6 MB, free: 18.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002194/0.2777, allocations: 104.4 kB / 478.7 MB, free: 18.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003705/0.2815, allocations: 2.099 MB / 480.8 MB, free: 17.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.703e-05/0.2815, allocations: 6.438 kB / 480.8 MB, free: 17.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001268/0.2816, allocations: 31.66 kB / 480.9 MB, free: 17.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001959/0.2818, allocations: 96.64 kB / 481 MB, free: 17.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004356/0.2862, allocations: 2.407 MB / 483.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007701/0.2939, allocations: 5.779 MB / 489.2 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003961/0.2979, allocations: 1.949 MB / 491.1 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.739e-05/0.298, allocations: 12.98 kB / 491.1 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0024/0.3004, allocations: 1.477 MB / 492.6 MB, free: 5.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=123): time 3.516e-06/0.3004, allocations: 3.938 kB / 492.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.01195/0.3124, allocations: 6.542 MB / 499.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.888e-05/0.3125, allocations: 110 kB / 499.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006051/0.3131, allocations: 498 kB / 499.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.3132, allocations: 61.69 kB / 499.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002655/0.3135, allocations: 360.6 kB / 0.4884 GB, free: 14.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000328/0.3138, allocations: 414.1 kB / 0.4888 GB, free: 13.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.193e-05/0.3139, allocations: 20 kB / 0.4888 GB, free: 13.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.3141, allocations: 398.7 kB / 0.4892 GB, free: 13.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001954/0.316, allocations: 1.08 MB / 0.4903 GB, free: 12.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002036/0.3181, allocations: 1.227 MB / 0.4915 GB, free: 11.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002041/0.3201, allocations: 1.12 MB / 0.4926 GB, free: 9.953 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3201, allocations: 3.938 kB / 0.4926 GB, free: 9.949 MB / 366.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01104/0.3312, allocations: 4.475 MB / 0.4969 GB, free: 5.434 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.282e-05/0.3313, allocations: 63.7 kB / 0.497 GB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.3313, allocations: 4 kB / 0.497 GB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006236/0.3375, allocations: 2.244 MB / 0.4992 GB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008561/0.3384, allocations: 191.7 kB / 0.4994 GB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02625/0.3647, allocations: 13.71 MB / 0.5128 GB, free: 4.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/0.3662, allocations: 208 kB / 0.513 GB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001802/0.3664, allocations: 79.88 kB / 0.513 GB, free: 4.641 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 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[6],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.t0[1],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 99 * Array equations: 3 * Algorithm blocks: 7 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 21} Notification: Performance of prepare postOptimizeDAE: time 0.0007297/0.3671, allocations: 375.7 kB / 0.5134 GB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000209/0.3673, allocations: 79.06 kB / 0.5135 GB, free: 4.188 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005414/0.3728, allocations: 2.66 MB / 0.5161 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.468e-05/0.3728, allocations: 23.98 kB / 0.5161 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3728, allocations: 11.95 kB / 0.5161 GB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.3728, allocations: 3.984 kB / 0.5161 GB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00813/0.381, allocations: 4.408 MB / 0.5204 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.381, allocations: 0 / 0.5204 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0116/0.3926, allocations: 2.853 MB / 0.5232 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001522/0.3928, allocations: 28.84 kB / 0.5232 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000283/0.3931, allocations: 35.97 kB / 0.5233 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009957/0.3941, allocations: 1.396 MB / 0.5246 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.3941, allocations: 4 kB / 0.5246 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008197/0.4023, allocations: 4.351 MB / 0.5289 GB, free: 4.012 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007322/0.4031, allocations: 347.9 kB / 0.5292 GB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002334/0.4033, allocations: 88.12 kB / 0.5293 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001346/0.4047, allocations: 243.7 kB / 0.5295 GB, free: 3.328 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003727/0.405, allocations: 196.6 kB / 0.5297 GB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.4052, allocations: 39.97 kB / 0.5298 GB, free: 3.098 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000411/0.4056, allocations: 338.8 kB / 0.5301 GB, free: 2.766 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4056, allocations: 0 / 0.5301 GB, free: 2.766 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001187/0.4068, allocations: 363.9 kB / 0.5304 GB, free: 2.41 MB / 398.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): 95 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003508/0.4071, allocations: 215.2 kB / 0.5306 GB, free: 2.195 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006817/0.414, allocations: 3.954 MB / 0.5345 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.414, allocations: 0 / 0.5345 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006169/0.4201, allocations: 2.413 MB / 0.5369 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008239/0.421, allocations: 149.9 kB / 0.537 GB, free: 11.55 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006516/0.4275, allocations: 3.795 MB / 0.5407 GB, free: 7.703 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008246/0.4284, allocations: 1.171 MB / 0.5418 GB, free: 6.508 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009852/0.4294, allocations: 310.8 kB / 0.5421 GB, free: 6.199 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003495/0.4297, allocations: 75.41 kB / 0.5422 GB, free: 6.125 MB / 414.1 MB Notification: Performance of SimCode: time 7.22e-07/0.4297, allocations: 0 / 0.5422 GB, free: 6.125 MB / 414.1 MB Notification: Performance of Templates: time 0.03649/0.4662, allocations: 25.37 MB / 0.567 GB, free: 12.84 MB / 446.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1) Environment - environmentSimulation: