Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.Elementary.Inverter,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_cpp_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.3+maint.om/package.mo): time 0.002168/0.002168, allocations: 182.1 kB / 15.76 MB, free: 6.344 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.972/1.972, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001136/0.001136, allocations: 94.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2613/0.2613, allocations: 38.05 MB / 356.5 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004473/0.0004473, allocations: 8 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1071, allocations: 56.33 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4784/0.5855, allocations: 102.2 MB / 0.5677 GB, free: 13.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003183/0.5859, allocations: 95.08 kB / 0.5678 GB, free: 13.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06204/0.6479, allocations: 14.38 MB / 0.5819 GB, free: 1.066 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.648, allocations: 4 kB / 0.5819 GB, free: 1.062 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.926e-05/0.648, allocations: 20 kB / 0.5819 GB, free: 1.043 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.002833/0.6509, allocations: 1.04 MB / 0.5829 GB, free: 15.99 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.6509, allocations: 8.031 kB / 0.5829 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002397/0.6512, allocations: 112.6 kB / 0.583 GB, free: 15.9 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002395/0.6514, allocations: 90.92 kB / 0.5831 GB, free: 15.81 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004942/0.6564, allocations: 1.192 MB / 0.5843 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001665/0.6566, allocations: 118.6 kB / 0.5844 GB, free: 14.67 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001996/0.6568, allocations: 64.94 kB / 0.5844 GB, free: 14.62 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002564/0.6594, allocations: 0.871 MB / 0.5853 GB, free: 13.94 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.918e-05/0.6595, allocations: 0 / 0.5853 GB, free: 13.94 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/0.6596, allocations: 31.2 kB / 0.5853 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.699e-05/0.6596, allocations: 16 kB / 0.5853 GB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002266/0.6619, allocations: 0.6075 MB / 0.5859 GB, free: 13.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006387/0.6683, allocations: 2.754 MB / 0.5886 GB, free: 11.11 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002954/0.6713, allocations: 0.921 MB / 0.5895 GB, free: 10.24 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.864e-05/0.6714, allocations: 4.391 kB / 0.5895 GB, free: 10.24 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001198/0.6726, allocations: 351.8 kB / 0.5899 GB, free: 9.945 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 3.417e-06/0.6726, allocations: 0 / 0.5899 GB, free: 9.945 MB / 394.7 MB Notification: Performance of matching and sorting (n=42): time 0.006956/0.6796, allocations: 1.969 MB / 0.5918 GB, free: 8.145 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.936e-05/0.6797, allocations: 118.3 kB / 0.5919 GB, free: 8.008 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008316/0.6806, allocations: 453.4 kB / 0.5923 GB, free: 7.645 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.875e-05/0.6807, allocations: 41.95 kB / 0.5924 GB, free: 7.605 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003484/0.681, allocations: 394.1 kB / 0.5927 GB, free: 7.297 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001866/0.6812, allocations: 142.1 kB / 0.5929 GB, free: 7.176 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.213e-05/0.6813, allocations: 14.06 kB / 0.5929 GB, free: 7.172 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.6815, allocations: 335.6 kB / 0.5932 GB, free: 6.844 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005528/0.682, allocations: 210.3 kB / 0.5934 GB, free: 6.707 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006617/0.6827, allocations: 363.9 kB / 0.5938 GB, free: 6.352 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006863/0.6834, allocations: 288.8 kB / 0.594 GB, free: 6.156 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.6834, allocations: 8 kB / 0.594 GB, free: 6.148 MB / 394.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001815/0.6853, allocations: 0.7921 MB / 0.5948 GB, free: 5.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.723e-05/0.6854, allocations: 52.12 kB / 0.5949 GB, free: 5.449 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.6854, allocations: 11.94 kB / 0.5949 GB, free: 5.438 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003474/0.6857, allocations: 62.38 kB / 0.5949 GB, free: 5.379 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008/0.6866, allocations: 107.1 kB / 0.595 GB, free: 5.277 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003034/0.6896, allocations: 2.857 MB / 0.5978 GB, free: 2.297 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007332/0.6904, allocations: 42.19 kB / 0.5979 GB, free: 2.266 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.6905, allocations: 43.17 kB / 0.5979 GB, free: 2.227 MB / 394.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 () * 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 (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.0006134/0.6911, allocations: 284.3 kB / 0.5982 GB, free: 1.996 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.6913, allocations: 59.3 kB / 0.5982 GB, free: 1.938 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00244/0.6937, allocations: 0.6918 MB / 0.5989 GB, free: 1.363 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.878e-06/0.6938, allocations: 4 kB / 0.5989 GB, free: 1.359 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.6938, allocations: 4 kB / 0.5989 GB, free: 1.355 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.6938, allocations: 3.984 kB / 0.5989 GB, free: 1.352 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004075/0.6979, allocations: 1.549 MB / 0.6004 GB, free: 8 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.6979, allocations: 0 / 0.6004 GB, free: 8 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005966/0.6985, allocations: 60.09 kB / 0.6005 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003203/0.6989, allocations: 68.84 kB / 0.6006 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.77e-05/0.699, allocations: 11.61 kB / 0.6006 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002963/0.7019, allocations: 2.851 MB / 0.6034 GB, free: 12.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.702, allocations: 0 / 0.6034 GB, free: 12.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003597/0.7056, allocations: 1.094 MB / 0.6044 GB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003702/0.706, allocations: 171.6 kB / 0.6046 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001765/0.7062, allocations: 30.86 kB / 0.6046 GB, free: 11.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007001/0.7069, allocations: 47.27 kB / 0.6047 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.707, allocations: 35.14 kB / 0.6047 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.861e-05/0.7071, allocations: 15.48 kB / 0.6047 GB, free: 11.68 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006266/0.7077, allocations: 351.3 kB / 0.605 GB, free: 11.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7077, allocations: 0 / 0.605 GB, free: 11.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000952/0.7087, allocations: 165.1 kB / 0.6052 GB, free: 11.27 MB / 410.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]) * Number of clocked states: 0 () * 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.004029/0.7127, allocations: 1.868 MB / 0.607 GB, free: 9.543 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002484/0.7153, allocations: 0.8887 MB / 0.6079 GB, free: 8.785 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.7153, allocations: 0 / 0.6079 GB, free: 8.785 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001526/0.7169, allocations: 0.502 MB / 0.6084 GB, free: 8.32 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.7181, allocations: 130.3 kB / 0.6085 GB, free: 8.227 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0109/0.729, allocations: 7.618 MB / 0.6159 GB, free: 1.07 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000826/0.7298, allocations: 0.9866 MB / 0.6169 GB, free: 88 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004819/0.7303, allocations: 231.5 kB / 0.6171 GB, free: 20 kB / 410.7 MB Notification: Performance of SimCode: time 1.001e-06/0.7304, allocations: 0 / 0.6171 GB, free: 20 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.194/3.925, allocations: 16.27 MB / 0.633 GB, free: 15.88 MB / 442.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)