Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001744/0.001744, allocations: 182 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.526/1.526, allocations: 194.3 MB / 208.4 MB, free: 6.707 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001644/0.001644, allocations: 124.6 kB / 253.5 MB, free: 9.586 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1601/0.1601, allocations: 37.92 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.261e-05/3.271e-05, allocations: 3.984 kB / 397.5 MB, free: 1.043 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2937, allocations: 53.22 MB / 450.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3549/0.6487, allocations: 97.05 MB / 0.535 GB, free: 88.51 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002839/0.649, allocations: 91.91 kB / 0.5351 GB, free: 88.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03686/0.6859, allocations: 14.35 MB / 0.5491 GB, free: 79.97 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.6859, allocations: 4 kB / 0.5491 GB, free: 79.97 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.169e-05/0.686, allocations: 12 kB / 0.5491 GB, free: 79.96 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001346/0.6873, allocations: 0.9597 MB / 0.55 GB, free: 78.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.6874, allocations: 8.031 kB / 0.55 GB, free: 78.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.6875, allocations: 83.06 kB / 0.5501 GB, free: 78.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002599/0.6901, allocations: 1.184 MB / 0.5513 GB, free: 77.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.841e-05/0.6902, allocations: 113.4 kB / 0.5514 GB, free: 77.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.535e-05/0.6903, allocations: 64 kB / 0.5514 GB, free: 77.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.6914, allocations: 0.8163 MB / 0.5522 GB, free: 76.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.6914, allocations: 4 kB / 0.5522 GB, free: 76.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.223e-05/0.6915, allocations: 24 kB / 0.5523 GB, free: 76.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.6915, allocations: 16 kB / 0.5523 GB, free: 76.53 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000707/0.6922, allocations: 0.5594 MB / 0.5528 GB, free: 75.97 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002806/0.695, allocations: 2.751 MB / 0.5555 GB, free: 73.11 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008845/0.6959, allocations: 0.8113 MB / 0.5563 GB, free: 72.21 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002775/0.6962, allocations: 242.3 kB / 0.5565 GB, free: 71.97 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.6962, allocations: 4.328 kB / 0.5565 GB, free: 71.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000354/0.6966, allocations: 302.3 kB / 0.5568 GB, free: 71.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.164e-06/0.6966, allocations: 0 / 0.5568 GB, free: 71.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001737/0.6983, allocations: 1.372 MB / 0.5582 GB, free: 70.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.6984, allocations: 122.7 kB / 0.5583 GB, free: 70.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003937/0.6988, allocations: 456.5 kB / 0.5587 GB, free: 69.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.6988, allocations: 33.7 kB / 0.5587 GB, free: 69.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/0.699, allocations: 363.8 kB / 0.5591 GB, free: 69.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.511e-05/0.6991, allocations: 142.1 kB / 0.5592 GB, free: 69.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.268e-05/0.6991, allocations: 12 kB / 0.5592 GB, free: 69.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.395e-05/0.6992, allocations: 370.8 kB / 0.5596 GB, free: 68.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002406/0.6994, allocations: 197.3 kB / 0.5598 GB, free: 68.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000288/0.6997, allocations: 359 kB / 0.5601 GB, free: 68.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.7, allocations: 295.1 kB / 0.5604 GB, free: 67.76 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.7001, allocations: 0 / 0.5604 GB, free: 67.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008698/0.7009, allocations: 0.824 MB / 0.5612 GB, free: 66.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.186e-05/0.701, allocations: 57.77 kB / 0.5613 GB, free: 66.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.701, allocations: 4 kB / 0.5613 GB, free: 66.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001966/0.7012, allocations: 65.69 kB / 0.5613 GB, free: 66.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003642/0.7016, allocations: 115.8 kB / 0.5614 GB, free: 66.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/0.703, allocations: 2.833 MB / 0.5642 GB, free: 63.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003397/0.7034, allocations: 35.98 kB / 0.5642 GB, free: 63.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.47e-05/0.7035, allocations: 43.91 kB / 0.5643 GB, free: 63.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.modulator.t0) * Number of discrete 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 (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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001254/0.7036, allocations: 156.8 kB / 0.5644 GB, free: 63.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.102e-05/0.7037, allocations: 59.25 kB / 0.5645 GB, free: 63.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007551/0.7044, allocations: 0.5874 MB / 0.5651 GB, free: 62.63 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.7044, allocations: 4 kB / 0.5651 GB, free: 62.63 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.7045, allocations: 15.89 kB / 0.5651 GB, free: 62.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.7045, allocations: 3.984 kB / 0.5651 GB, free: 62.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001542/0.706, allocations: 1.433 MB / 0.5665 GB, free: 61.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.706, allocations: 4 kB / 0.5665 GB, free: 61.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002693/0.7063, allocations: 59.91 kB / 0.5665 GB, free: 61.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001549/0.7065, allocations: 65.66 kB / 0.5666 GB, free: 60.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.489e-05/0.7065, allocations: 19.98 kB / 0.5666 GB, free: 60.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001312/0.7078, allocations: 2.837 MB / 0.5694 GB, free: 57.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.7079, allocations: 3.984 kB / 0.5694 GB, free: 57.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009026/0.7088, allocations: 0.9393 MB / 0.5703 GB, free: 56.81 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001983/0.709, allocations: 172.3 kB / 0.5705 GB, free: 56.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.507e-05/0.7091, allocations: 27.98 kB / 0.5705 GB, free: 56.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003823/0.7095, allocations: 51.94 kB / 0.5706 GB, free: 56.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.419e-05/0.7095, allocations: 31.86 kB / 0.5706 GB, free: 56.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-05/0.7096, allocations: 19.98 kB / 0.5706 GB, free: 56.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000314/0.7099, allocations: 349.5 kB / 0.5709 GB, free: 56.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.7099, allocations: 4 kB / 0.5709 GB, free: 56.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000634/0.7105, allocations: 152 kB / 0.5711 GB, free: 56.01 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001697/0.7107, allocations: 131.1 kB / 0.5712 GB, free: 55.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009723/0.7117, allocations: 0.8275 MB / 0.572 GB, free: 55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.7117, allocations: 0 / 0.572 GB, free: 55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004821/0.7122, allocations: 453.9 kB / 0.5725 GB, free: 54.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006373/0.7128, allocations: 138 kB / 0.5726 GB, free: 54.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.7144, allocations: 1.129 MB / 0.5737 GB, free: 53.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003507/0.7147, allocations: 0.9915 MB / 0.5747 GB, free: 52.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003011/0.715, allocations: 104.9 kB / 0.5748 GB, free: 52.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.898e-05/0.7151, allocations: 43.44 kB / 0.5748 GB, free: 52.07 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.7151, allocations: 0 / 0.5748 GB, free: 52.07 MB / 378.7 MB Notification: Performance of Templates: time 0.01043/0.7256, allocations: 6.746 MB / 0.5814 GB, free: 45.33 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)