Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002008/0.002013, allocations: 189 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.044/2.044, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001044/0.001044, allocations: 86.64 kB / 261.8 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.248/0.248, allocations: 37.99 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.392e-05/2.405e-05, allocations: 0 / 409.9 MB, free: 35.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1067, allocations: 56.33 MB / 466.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4881/0.5949, allocations: 101.4 MB / 0.5543 GB, free: 8.836 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002881/0.5952, allocations: 92.89 kB / 0.5544 GB, free: 8.824 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06382/0.659, allocations: 15.54 MB / 0.5696 GB, free: 12.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.6591, allocations: 0 / 0.5696 GB, free: 12.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.049e-05/0.6591, allocations: 16 kB / 0.5696 GB, free: 12.53 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.003401/0.6625, allocations: 1.044 MB / 0.5706 GB, free: 11.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.6626, allocations: 11.97 kB / 0.5706 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002835/0.6629, allocations: 91.11 kB / 0.5707 GB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005318/0.6682, allocations: 1.213 MB / 0.5719 GB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006904/0.669, allocations: 333.3 kB / 0.5722 GB, free: 9.973 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000191/0.6692, allocations: 35.91 kB / 0.5723 GB, free: 9.938 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002157/0.6713, allocations: 0.7905 MB / 0.573 GB, free: 9.434 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001942/0.6733, allocations: 0.822 MB / 0.5738 GB, free: 8.809 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.6733, allocations: 4 kB / 0.5738 GB, free: 8.805 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.6735, allocations: 3.953 kB / 0.5738 GB, free: 8.801 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.452e-05/0.6735, allocations: 16 kB / 0.5739 GB, free: 8.785 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007824/0.6813, allocations: 3.162 MB / 0.5769 GB, free: 6.168 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/0.6827, allocations: 0.5253 MB / 0.5775 GB, free: 5.801 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009025/0.6837, allocations: 387.8 kB / 0.5778 GB, free: 5.555 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.863e-05/0.6837, allocations: 8.438 kB / 0.5778 GB, free: 5.547 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001003/0.6848, allocations: 472.2 kB / 0.5783 GB, free: 5.191 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.836e-06/0.6848, allocations: 0 / 0.5783 GB, free: 5.191 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.001681/0.6865, allocations: 0.6278 MB / 0.5789 GB, free: 4.742 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.737e-05/0.6866, allocations: 142.8 kB / 0.579 GB, free: 4.574 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004489/0.687, allocations: 285 kB / 0.5793 GB, free: 4.348 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.191e-05/0.6871, allocations: 32.64 kB / 0.5793 GB, free: 4.312 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003013/0.6875, allocations: 339.7 kB / 0.5797 GB, free: 4.031 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002268/0.6877, allocations: 169.6 kB / 0.5798 GB, free: 3.883 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6e-05/0.6878, allocations: 0 / 0.5798 GB, free: 3.883 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.6879, allocations: 336.9 kB / 0.5801 GB, free: 3.555 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007591/0.6887, allocations: 319.7 kB / 0.5804 GB, free: 3.363 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008602/0.6896, allocations: 429.8 kB / 0.5809 GB, free: 3.047 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006886/0.6903, allocations: 293.7 kB / 0.5811 GB, free: 2.855 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.6903, allocations: 0 / 0.5811 GB, free: 2.855 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001824/0.6921, allocations: 0.7273 MB / 0.5818 GB, free: 2.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.773e-05/0.6922, allocations: 49.06 kB / 0.5819 GB, free: 2.289 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.6923, allocations: 384 / 0.5819 GB, free: 2.289 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.98e-05/0.6923, allocations: 12 kB / 0.5819 GB, free: 2.277 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01225/0.7046, allocations: 1.592 MB / 0.5835 GB, free: 0.6914 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008719/0.7133, allocations: 3.953 MB / 0.5873 GB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/0.7146, allocations: 123.4 kB / 0.5874 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001314/0.7148, allocations: 50.53 kB / 0.5875 GB, free: 12.71 MB / 394.7 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 ($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.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.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): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002877/0.7151, allocations: 134.5 kB / 0.5876 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001591/0.7167, allocations: 0.6254 MB / 0.5882 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.7168, allocations: 51.41 kB / 0.5883 GB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002019/0.7189, allocations: 0.6698 MB / 0.5889 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.216e-05/0.7189, allocations: 4 kB / 0.5889 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/0.7189, allocations: 4 kB / 0.5889 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.506e-05/0.719, allocations: 3.984 kB / 0.5889 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004537/0.7236, allocations: 1.73 MB / 0.5906 GB, free: 10.19 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.308e-06/0.7236, allocations: 4.188 kB / 0.5906 GB, free: 10.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01519/0.7388, allocations: 1.834 MB / 0.5924 GB, free: 8.355 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.062e-05/0.7389, allocations: 7.953 kB / 0.5924 GB, free: 8.348 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001527/0.739, allocations: 7.984 kB / 0.5924 GB, free: 8.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-05/0.7391, allocations: 7.938 kB / 0.5924 GB, free: 8.332 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/0.7391, allocations: 8 kB / 0.5925 GB, free: 8.324 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002812/0.7419, allocations: 1.314 MB / 0.5937 GB, free: 7.32 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004835/0.7424, allocations: 207.5 kB / 0.5939 GB, free: 7.129 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001646/0.7426, allocations: 18.8 kB / 0.594 GB, free: 7.117 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/0.7439, allocations: 119.9 kB / 0.5941 GB, free: 7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003494/0.7443, allocations: 89.72 kB / 0.5942 GB, free: 6.918 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.253e-05/0.7444, allocations: 23.86 kB / 0.5942 GB, free: 6.898 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003415/0.7447, allocations: 220.3 kB / 0.5944 GB, free: 6.73 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7447, allocations: 0 / 0.5944 GB, free: 6.73 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001028/0.7458, allocations: 171.4 kB / 0.5946 GB, free: 6.566 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003421/0.7492, allocations: 2.372 MB / 0.5969 GB, free: 4.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01125/0.7605, allocations: 2.039 MB / 0.5989 GB, free: 2.742 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.7605, allocations: 0 / 0.5989 GB, free: 2.742 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005408/0.7659, allocations: 0.9501 MB / 0.5998 GB, free: 1.934 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009664/0.7669, allocations: 90.91 kB / 0.5999 GB, free: 1.863 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005419/0.7724, allocations: 1.455 MB / 0.6013 GB, free: 0.543 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007804/0.7732, allocations: 0.9474 MB / 0.6022 GB, free: 15.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006305/0.7738, allocations: 195.4 kB / 0.6024 GB, free: 15.54 MB / 410.7 MB Notification: Performance of SimCode: time 9.12e-07/0.7738, allocations: 0 / 0.6024 GB, free: 15.54 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.272/4.046, allocations: 13.43 MB / 0.6155 GB, free: 2.227 MB / 410.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)