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 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.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.001825/0.001825, allocations: 108.2 kB / 17.74 MB, free: 5.359 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.001858/0.001858, allocations: 185.4 kB / 18.67 MB, free: 4.438 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.378/1.378, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1781/0.1781, allocations: 37.98 MB / 309.9 MB, free: 5.961 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.001565/0.001565, allocations: 72.47 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09702/0.09859, allocations: 55.24 MB / 487.8 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.007735/0.1064, allocations: 5.971 MB / 493.8 MB, free: 2.348 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002848/0.1092, allocations: 1.594 MB / 495.3 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004522/0.1097, allocations: 23.88 kB / 495.4 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005635/0.1103, allocations: 134.9 kB / 495.5 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009943/0.1113, allocations: 366.1 kB / 495.9 MB, free: 236 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007135/0.1121, allocations: 311.6 kB / 496.2 MB, free: 15.92 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001536/0.1136, allocations: 1.348 MB / 497.5 MB, free: 14.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005202/0.1142, allocations: 368.6 kB / 497.9 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009414/0.1151, allocations: 0.5489 MB / 498.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009665/0.1161, allocations: 0.5414 MB / 499 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002497/0.1164, allocations: 88 kB / 499.1 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002642/0.1166, allocations: 96 kB / 499.1 MB, free: 12.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004354/0.1171, allocations: 351.2 kB / 499.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005551/0.1176, allocations: 414.3 kB / 499.9 MB, free: 12.19 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001086/0.1187, allocations: 1.055 MB / 0.4892 GB, free: 11.13 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1187, allocations: 0 / 0.4892 GB, free: 11.13 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1188, allocations: 0 / 0.4892 GB, free: 11.13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.189e-05/0.1188, allocations: 0 / 0.4892 GB, free: 11.13 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002981/0.1218, allocations: 1.199 MB / 0.4904 GB, free: 9.867 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.1218, allocations: 11.89 kB / 0.4904 GB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001995/0.122, allocations: 88.09 kB / 0.4905 GB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001495/0.1235, allocations: 0.6551 MB / 0.4911 GB, free: 9.074 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004591/0.124, allocations: 339.4 kB / 0.4914 GB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.1242, allocations: 59.94 kB / 0.4915 GB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002276/0.1265, allocations: 1.046 MB / 0.4925 GB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.026e-05/0.1265, allocations: 4 kB / 0.4925 GB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.888e-05/0.1266, allocations: 23.98 kB / 0.4925 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.1266, allocations: 19.98 kB / 0.4926 GB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002624/0.1292, allocations: 1.085 MB / 0.4936 GB, free: 6.422 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004885/0.1341, allocations: 3.201 MB / 0.4967 GB, free: 3.121 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002106/0.1362, allocations: 0.749 MB / 0.4975 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001341/0.1376, allocations: 0.526 MB / 0.498 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.781e-05/0.1377, allocations: 8.422 kB / 0.498 GB, free: 1.816 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001414/0.1391, allocations: 0.6225 MB / 0.4986 GB, free: 1.164 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.595e-06/0.1391, allocations: 0 / 0.4986 GB, free: 1.164 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003802/0.1429, allocations: 1.374 MB / 0.4999 GB, free: 15.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.8e-05/0.143, allocations: 140.5 kB / 0.5001 GB, free: 15.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004109/0.1434, allocations: 393.8 kB / 0.5005 GB, free: 15.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.047e-05/0.1435, allocations: 37.7 kB / 0.5005 GB, free: 15.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000206/0.1437, allocations: 296.4 kB / 0.5008 GB, free: 14.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.1439, allocations: 157.7 kB / 0.5009 GB, free: 14.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002188/0.1441, allocations: 114.2 kB / 0.501 GB, free: 14.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1442, allocations: 358.8 kB / 0.5014 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/0.1453, allocations: 460.9 kB / 0.5018 GB, free: 13.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/0.1463, allocations: 0.5522 MB / 0.5024 GB, free: 13.21 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001883/0.1482, allocations: 0.8895 MB / 0.5032 GB, free: 12.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.1483, allocations: 4 kB / 0.5032 GB, free: 12.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00234/0.1506, allocations: 1.086 MB / 0.5043 GB, free: 11.17 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.516e-05/0.1507, allocations: 57.62 kB / 0.5043 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.1507, allocations: 7.938 kB / 0.5044 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.1507, allocations: 4 kB / 0.5044 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005549/0.1563, allocations: 1.108 MB / 0.5054 GB, free: 9.988 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007767/0.1641, allocations: 4.701 MB / 0.51 GB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007247/0.1648, allocations: 111.4 kB / 0.5101 GB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.663e-05/0.1649, allocations: 35.97 kB / 0.5102 GB, free: 4.863 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.0004193/0.1653, allocations: 251.4 kB / 0.5104 GB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.646e-05/0.1654, allocations: 51.38 kB / 0.5105 GB, free: 4.559 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002562/0.168, allocations: 0.9848 MB / 0.5114 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.168, allocations: 11.94 kB / 0.5114 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.168, allocations: 0 / 0.5114 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003816/0.1684, allocations: 208.3 kB / 0.5116 GB, free: 3.332 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.1685, allocations: 27.98 kB / 0.5117 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006175/0.1692, allocations: 87.88 kB / 0.5117 GB, free: 3.219 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00022/0.1694, allocations: 96.22 kB / 0.5118 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007929/0.1773, allocations: 2.423 MB / 0.5142 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003889/0.1812, allocations: 1.878 MB / 0.516 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001252/0.1825, allocations: 0.5343 MB / 0.5166 GB, free: 14.26 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002837/0.1828, allocations: 271.2 kB / 0.5168 GB, free: 13.99 MB / 414.1 MB Notification: Performance of Backend: time 3.51e-07/0.1828, allocations: 0 / 0.5168 GB, free: 13.99 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006584/0.1894, allocations: 1.722 MB / 0.5185 GB, free: 12.25 MB / 414.1 MB Notification: Performance of SimCode: time 0.002318/0.1918, allocations: 1.662 MB / 0.5201 GB, free: 10.54 MB / 414.1 MB Notification: Performance of Templates: time 0.01708/0.2089, allocations: 10.47 MB / 0.5303 GB, free: 52 kB / 414.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)