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.001678/0.001678, 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.745/1.745, 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.001792/0.001792, allocations: 112.7 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.1826/0.1826, allocations: 37.91 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.724e-05/3.726e-05, allocations: 4 kB / 397.6 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2744, allocations: 53.22 MB / 450.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4784/0.7528, allocations: 97.05 MB / 0.5351 GB, free: 88.49 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005579/0.7535, allocations: 91.44 kB / 0.5352 GB, free: 88.49 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05034/0.8039, allocations: 14.35 MB / 0.5492 GB, free: 79.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.804, allocations: 0 / 0.5492 GB, free: 79.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.226e-05/0.804, allocations: 16 kB / 0.5492 GB, free: 79.93 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.001766/0.8058, allocations: 0.9636 MB / 0.5501 GB, free: 78.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.235e-05/0.8059, allocations: 8.031 kB / 0.5501 GB, free: 78.9 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001415/0.806, allocations: 110.5 kB / 0.5502 GB, free: 78.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001663/0.8062, allocations: 91.06 kB / 0.5503 GB, free: 78.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003055/0.8093, allocations: 1.184 MB / 0.5515 GB, free: 77.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001226/0.8094, allocations: 113.4 kB / 0.5516 GB, free: 77.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.8095, allocations: 67.95 kB / 0.5516 GB, free: 77.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/0.8108, allocations: 0.8085 MB / 0.5524 GB, free: 76.42 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/0.8108, allocations: 4 kB / 0.5524 GB, free: 76.42 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.982e-05/0.8109, allocations: 31.92 kB / 0.5525 GB, free: 76.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/0.8109, allocations: 16 kB / 0.5525 GB, free: 76.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008044/0.8118, allocations: 0.5478 MB / 0.553 GB, free: 75.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003491/0.8153, allocations: 2.755 MB / 0.5557 GB, free: 72.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.8163, allocations: 0.8191 MB / 0.5565 GB, free: 72.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000326/0.8166, allocations: 239.9 kB / 0.5567 GB, free: 71.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.058e-05/0.8167, allocations: 4.328 kB / 0.5567 GB, free: 71.81 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004602/0.8171, allocations: 306.3 kB / 0.557 GB, free: 71.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 4.929e-06/0.8172, allocations: 0 / 0.557 GB, free: 71.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.002215/0.8194, allocations: 1.379 MB / 0.5584 GB, free: 70.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.311e-05/0.8195, allocations: 114.8 kB / 0.5585 GB, free: 69.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004586/0.8199, allocations: 448.6 kB / 0.5589 GB, free: 69.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.789e-05/0.82, allocations: 41.69 kB / 0.559 GB, free: 69.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001873/0.8202, allocations: 359.9 kB / 0.5593 GB, free: 69.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.738e-05/0.8203, allocations: 146.1 kB / 0.5594 GB, free: 68.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.408e-05/0.8203, allocations: 12 kB / 0.5595 GB, free: 68.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.8204, allocations: 366.8 kB / 0.5598 GB, free: 68.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002615/0.8207, allocations: 197.3 kB / 0.56 GB, free: 68.33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003578/0.8211, allocations: 363 kB / 0.5603 GB, free: 67.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003421/0.8214, allocations: 291.2 kB / 0.5606 GB, free: 67.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.8214, allocations: 0 / 0.5606 GB, free: 67.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009464/0.8224, allocations: 0.8279 MB / 0.5614 GB, free: 66.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.723e-05/0.8225, allocations: 45.69 kB / 0.5615 GB, free: 66.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.8225, allocations: 8 kB / 0.5615 GB, free: 66.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002414/0.8227, allocations: 69.67 kB / 0.5615 GB, free: 66.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003586/0.8231, allocations: 111.8 kB / 0.5616 GB, free: 66.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001915/0.825, allocations: 2.833 MB / 0.5644 GB, free: 63.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.8254, allocations: 35.97 kB / 0.5644 GB, free: 63.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.43e-05/0.8255, allocations: 43.97 kB / 0.5645 GB, free: 63.33 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.0001655/0.8257, allocations: 152.8 kB / 0.5646 GB, free: 63.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.751e-05/0.8257, allocations: 59.25 kB / 0.5647 GB, free: 63.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008584/0.8266, allocations: 0.5912 MB / 0.5653 GB, free: 62.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.8266, allocations: 8 kB / 0.5653 GB, free: 62.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.8266, allocations: 7.938 kB / 0.5653 GB, free: 62.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.341e-06/0.8266, allocations: 4 kB / 0.5653 GB, free: 62.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001735/0.8284, allocations: 1.433 MB / 0.5667 GB, free: 60.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.8284, allocations: 4 kB / 0.5667 GB, free: 60.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000283/0.8287, allocations: 67.89 kB / 0.5668 GB, free: 60.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001755/0.8289, allocations: 69.55 kB / 0.5668 GB, free: 60.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.236e-05/0.829, allocations: 19.98 kB / 0.5668 GB, free: 60.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001627/0.8306, allocations: 2.833 MB / 0.5696 GB, free: 57.67 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.8306, allocations: 0 / 0.5696 GB, free: 57.67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.8317, allocations: 0.9432 MB / 0.5705 GB, free: 56.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002174/0.8319, allocations: 172.3 kB / 0.5707 GB, free: 56.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.136e-05/0.832, allocations: 31.98 kB / 0.5707 GB, free: 56.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003817/0.8324, allocations: 43.95 kB / 0.5708 GB, free: 56.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.906e-05/0.8325, allocations: 31.91 kB / 0.5708 GB, free: 56.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.893e-05/0.8325, allocations: 15.98 kB / 0.5708 GB, free: 56.35 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000387/0.8329, allocations: 353.5 kB / 0.5712 GB, free: 56.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.833, allocations: 0 / 0.5712 GB, free: 56.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007538/0.8337, allocations: 152 kB / 0.5713 GB, free: 55.86 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.001539/0.8353, allocations: 1.722 MB / 0.573 GB, free: 54.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00114/0.8364, allocations: 0.8238 MB / 0.5738 GB, free: 53.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/0.8364, allocations: 5.375 kB / 0.5738 GB, free: 53.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005548/0.837, allocations: 453.2 kB / 0.5742 GB, free: 52.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000719/0.8377, allocations: 141.8 kB / 0.5744 GB, free: 52.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002327/0.8401, allocations: 1.297 MB / 0.5756 GB, free: 51.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004708/0.8406, allocations: 0.9916 MB / 0.5766 GB, free: 50.22 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003497/0.8409, allocations: 101 kB / 0.5767 GB, free: 50.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002669/0.8412, allocations: 239.3 kB / 0.5769 GB, free: 49.89 MB / 378.7 MB Notification: Performance of SimCode: time 9.42e-07/0.8412, allocations: 0 / 0.5769 GB, free: 49.89 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02828/0.8695, allocations: 12.25 MB / 0.5889 GB, free: 37.65 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.8698, allocations: 169.7 kB / 0.589 GB, free: 37.43 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.459/3.329, allocations: 0 / 0.589 GB, free: 37.43 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)