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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001919/0.001919, allocations: 178.6 kB / 8.352 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.642/1.642, allocations: 194.3 MB / 203.1 MB, free: 13.02 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.001764/0.001764, allocations: 127.9 kB / 248.1 MB, free: 24 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1794/0.1794, allocations: 37.94 MB / 330.9 MB, free: 2.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.153e-05/2.156e-05, allocations: 4 kB / 390.5 MB, free: 6.996 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2884, allocations: 53.22 MB / 443.7 MB, free: 17.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.4141, allocations: 96.39 MB / 0.5274 GB, free: 1.133 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.4144, allocations: 87.95 kB / 0.5275 GB, free: 1.047 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2861/0.7005, allocations: 14.21 MB / 0.5414 GB, free: 88.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.7005, allocations: 3.938 kB / 0.5414 GB, free: 88.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.096e-05/0.7006, allocations: 19.91 kB / 0.5414 GB, free: 88.04 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.001489/0.7021, allocations: 0.9557 MB / 0.5423 GB, free: 87.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.7022, allocations: 12.03 kB / 0.5423 GB, free: 87.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.7023, allocations: 83.06 kB / 0.5424 GB, free: 86.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002697/0.705, allocations: 1.182 MB / 0.5436 GB, free: 85.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.176e-05/0.7051, allocations: 93.41 kB / 0.5437 GB, free: 85.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.218e-05/0.7052, allocations: 51.91 kB / 0.5437 GB, free: 85.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007671/0.706, allocations: 0.5062 MB / 0.5442 GB, free: 85.06 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009269/0.7069, allocations: 0.7247 MB / 0.5449 GB, free: 84.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.707, allocations: 3.984 kB / 0.5449 GB, free: 84.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.739e-05/0.707, allocations: 3.938 kB / 0.5449 GB, free: 84.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.7071, allocations: 16 kB / 0.5449 GB, free: 84.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003016/0.7101, allocations: 2.614 MB / 0.5475 GB, free: 81.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008842/0.711, allocations: 0.7913 MB / 0.5483 GB, free: 80.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003437/0.7113, allocations: 258.2 kB / 0.5485 GB, free: 80.45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.7114, allocations: 8.234 kB / 0.5485 GB, free: 80.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003536/0.7117, allocations: 294.3 kB / 0.5488 GB, free: 80.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.225e-06/0.7117, allocations: 4 kB / 0.5488 GB, free: 80.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001652/0.7134, allocations: 1.179 MB / 0.55 GB, free: 78.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.644e-05/0.7135, allocations: 114.8 kB / 0.5501 GB, free: 78.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003756/0.7138, allocations: 373 kB / 0.5504 GB, free: 78.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.013e-05/0.7139, allocations: 33.7 kB / 0.5505 GB, free: 78.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002092/0.7141, allocations: 371.3 kB / 0.5508 GB, free: 77.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.343e-05/0.7142, allocations: 138.2 kB / 0.5509 GB, free: 77.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.173e-05/0.7142, allocations: 0 / 0.5509 GB, free: 77.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.648e-05/0.7143, allocations: 366.7 kB / 0.5513 GB, free: 77.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002197/0.7146, allocations: 181.3 kB / 0.5515 GB, free: 77.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002755/0.7148, allocations: 345.9 kB / 0.5518 GB, free: 76.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002688/0.7151, allocations: 232.6 kB / 0.552 GB, free: 76.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.7151, allocations: 4 kB / 0.552 GB, free: 76.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007567/0.7159, allocations: 0.6132 MB / 0.5526 GB, free: 76.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.103e-05/0.716, allocations: 49.69 kB / 0.5527 GB, free: 75.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.716, allocations: 4 kB / 0.5527 GB, free: 75.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001673/0.7161, allocations: 48.83 kB / 0.5527 GB, free: 75.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004143/0.7166, allocations: 112.2 kB / 0.5528 GB, free: 75.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008978/0.7175, allocations: 1.416 MB / 0.5542 GB, free: 74.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003318/0.7178, allocations: 28.05 kB / 0.5542 GB, free: 74.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.001e-05/0.7179, allocations: 39.97 kB / 0.5543 GB, free: 74.21 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 (68): * Single equations (assignments): 66 * 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: 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 prepare postOptimizeDAE: time 0.0001434/0.718, allocations: 140.7 kB / 0.5544 GB, free: 74.07 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005548/0.7186, allocations: 445.7 kB / 0.5548 GB, free: 73.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.534e-05/0.7187, allocations: 55.41 kB / 0.5549 GB, free: 73.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006317/0.7193, allocations: 459.4 kB / 0.5553 GB, free: 73.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.7193, allocations: 4 kB / 0.5553 GB, free: 73.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.7193, allocations: 0 / 0.5553 GB, free: 73.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.7194, allocations: 4 kB / 0.5553 GB, free: 73.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001405/0.7208, allocations: 1.229 MB / 0.5565 GB, free: 71.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.7208, allocations: 0 / 0.5565 GB, free: 71.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003027/0.7211, allocations: 67.89 kB / 0.5566 GB, free: 71.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001196/0.7212, allocations: 48.81 kB / 0.5566 GB, free: 71.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/0.7213, allocations: 12.05 kB / 0.5567 GB, free: 71.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007952/0.7221, allocations: 1.404 MB / 0.558 GB, free: 70.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.7221, allocations: 4.156 kB / 0.558 GB, free: 70.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008/0.7229, allocations: 0.797 MB / 0.5588 GB, free: 69.33 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001578/0.7231, allocations: 168.4 kB / 0.559 GB, free: 69.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.54e-05/0.7231, allocations: 23.98 kB / 0.559 GB, free: 69.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003566/0.7235, allocations: 39.95 kB / 0.559 GB, free: 69.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.759e-05/0.7236, allocations: 27.89 kB / 0.5591 GB, free: 69.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-05/0.7236, allocations: 23.98 kB / 0.5591 GB, free: 69.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002275/0.7239, allocations: 278.9 kB / 0.5593 GB, free: 68.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7239, allocations: 0 / 0.5593 GB, free: 68.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005736/0.7244, allocations: 132 kB / 0.5595 GB, free: 68.63 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 (44): * Single equations (assignments): 36 * 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: 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.001073/0.7255, allocations: 1.56 MB / 0.561 GB, free: 67.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007948/0.7263, allocations: 0.6748 MB / 0.5617 GB, free: 66.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.165e-06/0.7263, allocations: 0 / 0.5617 GB, free: 66.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003586/0.7267, allocations: 317.5 kB / 0.562 GB, free: 66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005998/0.7273, allocations: 106.8 kB / 0.5621 GB, free: 65.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001917/0.7292, allocations: 1.231 MB / 0.5633 GB, free: 64.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003674/0.7296, allocations: 0.9874 MB / 0.5642 GB, free: 63.59 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003044/0.7299, allocations: 108.6 kB / 0.5643 GB, free: 63.49 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002344/0.7302, allocations: 227.4 kB / 0.5645 GB, free: 63.27 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.7302, allocations: 0 / 0.5645 GB, free: 63.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02932/0.7595, allocations: 10.45 MB / 0.5747 GB, free: 52.82 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001416/0.7597, allocations: 135.4 kB / 0.5749 GB, free: 52.63 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.303/3.063, allocations: 0 / 0.5749 GB, free: 52.63 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)