Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001097, allocations: 109.5 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 186.5 kB / 17.42 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.428/1.428, allocations: 205.1 MB / 223.3 MB, free: 12.4 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1644/0.1644, allocations: 37.99 MB / 308.6 MB, free: 6.219 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 72.28 kB / 374.7 MB, free: 3.984 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2573, allocations: 55.24 MB / 430 MB, free: 19.74 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.00655/0.2639, allocations: 7.007 MB / 437 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002674/0.2666, allocations: 1.929 MB / 438.9 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004521/0.2671, allocations: 47.69 kB / 439 MB, free: 10.72 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005191/0.2676, allocations: 119.2 kB / 439.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000704/0.2684, allocations: 334.5 kB / 439.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005257/0.2689, allocations: 275.7 kB / 439.7 MB, free: 10 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001138/0.2701, allocations: 1.66 MB / 441.3 MB, free: 8.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003487/0.2704, allocations: 322.9 kB / 441.6 MB, free: 8.023 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005365/0.271, allocations: 446.3 kB / 442.1 MB, free: 7.586 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005489/0.2715, allocations: 0.5568 MB / 442.6 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.367e-05/0.2716, allocations: 48 kB / 442.7 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.2718, allocations: 52 kB / 442.7 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000254/0.272, allocations: 303.2 kB / 443 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003038/0.2723, allocations: 374.3 kB / 443.4 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006006/0.2729, allocations: 1.009 MB / 444.4 MB, free: 5.254 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.273, allocations: 0 / 444.4 MB, free: 5.254 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.273, allocations: 0 / 444.4 MB, free: 5.254 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.273, allocations: 4 kB / 444.4 MB, free: 5.25 MB / 318.1 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.002308/0.2753, allocations: 1.196 MB / 445.6 MB, free: 3.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.2753, allocations: 11.98 kB / 445.6 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001373/0.2755, allocations: 110.7 kB / 445.7 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.2757, allocations: 84.09 kB / 445.8 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.2768, allocations: 0.6238 MB / 446.4 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003587/0.2772, allocations: 339.2 kB / 446.8 MB, free: 2.734 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.2773, allocations: 67.89 kB / 446.8 MB, free: 2.668 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001904/0.2792, allocations: 1.042 MB / 447.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.2792, allocations: 0 / 447.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.187e-05/0.2793, allocations: 24 kB / 447.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.2793, allocations: 12 kB / 447.9 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002148/0.2815, allocations: 1.093 MB / 449 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004868/0.2864, allocations: 3.213 MB / 452.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002002/0.2884, allocations: 0.7451 MB / 453 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001341/0.2897, allocations: 0.5343 MB / 453.5 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.082e-05/0.2898, allocations: 4.438 kB / 453.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001368/0.2912, allocations: 0.6186 MB / 454.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.144e-06/0.2912, allocations: 0 / 454.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.003684/0.2949, allocations: 1.374 MB / 455.5 MB, free: 9.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.364e-05/0.295, allocations: 140.5 kB / 455.6 MB, free: 9.652 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004114/0.2954, allocations: 397.8 kB / 456 MB, free: 9.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.779e-05/0.2955, allocations: 41.64 kB / 456 MB, free: 9.203 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002164/0.2957, allocations: 292.3 kB / 456.3 MB, free: 8.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/0.2958, allocations: 169.6 kB / 456.5 MB, free: 8.742 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000197/0.296, allocations: 118.2 kB / 456.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.2962, allocations: 362.8 kB / 457 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009217/0.2971, allocations: 448.9 kB / 457.4 MB, free: 7.812 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.2982, allocations: 0.5553 MB / 458 MB, free: 7.227 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001753/0.2999, allocations: 0.8896 MB / 458.9 MB, free: 6.293 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.2999, allocations: 3.938 kB / 458.9 MB, free: 6.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002207/0.3022, allocations: 1.093 MB / 460 MB, free: 5.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.195e-05/0.3022, allocations: 49.69 kB / 460 MB, free: 5.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.3023, allocations: 4.219 kB / 460 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.3023, allocations: 8 kB / 460 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005054/0.3073, allocations: 1.108 MB / 461.1 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006729/0.3141, allocations: 4.371 MB / 465.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007458/0.3149, allocations: 107.4 kB / 465.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.758e-05/0.315, allocations: 48 kB / 465.6 MB, free: 15.22 MB / 350.1 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 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1) * 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 (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003836/0.3154, allocations: 239.5 kB / 465.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.791e-05/0.3155, allocations: 51.44 kB / 465.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00244/0.3179, allocations: 0.9887 MB / 466.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/0.3179, allocations: 4 kB / 466.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.3179, allocations: 4 kB / 466.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.318, allocations: 11.92 kB / 466.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003792/0.3218, allocations: 2.121 MB / 469.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.3218, allocations: 4 kB / 469.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006159/0.3279, allocations: 1.287 MB / 470.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.114e-05/0.328, allocations: 4 kB / 470.4 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.231e-05/0.328, allocations: 15.98 kB / 470.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.905e-06/0.3281, allocations: 7.938 kB / 470.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3281, allocations: 4 kB / 470.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003783/0.3319, allocations: 1.691 MB / 472.1 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003206/0.3322, allocations: 204.4 kB / 472.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/0.3323, allocations: 31.98 kB / 472.3 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006276/0.3329, allocations: 87.88 kB / 472.4 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002229/0.3332, allocations: 87.94 kB / 472.5 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.166e-05/0.3332, allocations: 19.98 kB / 472.5 MB, free: 8.211 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002937/0.3335, allocations: 279.1 kB / 472.8 MB, free: 7.941 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3335, allocations: 0 / 472.8 MB, free: 7.941 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006992/0.3342, allocations: 179.6 kB / 472.9 MB, free: 7.766 MB / 350.1 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]) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00407/0.3383, allocations: 2.268 MB / 475.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006968/0.3453, allocations: 2.082 MB / 477.3 MB, free: 3.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.3453, allocations: 0 / 477.3 MB, free: 3.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003318/0.3487, allocations: 0.9603 MB / 478.2 MB, free: 2.387 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009218/0.3496, allocations: 137 kB / 478.4 MB, free: 2.258 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01159/0.3612, allocations: 6.817 MB / 485.2 MB, free: 11.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005765/0.3618, allocations: 0.9293 MB / 486.1 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005979/0.3624, allocations: 152.6 kB / 486.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003456/0.3628, allocations: 195.4 kB / 486.5 MB, free: 9.945 MB / 366.1 MB Notification: Performance of SimCode: time 2.395e-06/0.3628, allocations: 0 / 486.5 MB, free: 9.945 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02709/0.3899, allocations: 12.8 MB / 499.3 MB, free: 13.15 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001995/0.3901, allocations: 241.4 kB / 499.5 MB, free: 12.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.053/2.443, allocations: 0 / 499.5 MB, free: 12.89 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)