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.0006115/0.0006114, allocations: 90.69 kB / 16.65 MB, free: 6.348 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.0008706/0.0008707, allocations: 177.8 kB / 17.56 MB, free: 5.949 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.199/1.199, allocations: 205.4 MB / 223.7 MB, free: 13.05 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1609/0.1609, allocations: 38.05 MB / 310.1 MB, free: 5.988 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.0005126/0.0005126, allocations: 19.11 kB / 377.3 MB, free: 2.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2072, allocations: 56.31 MB / 433.6 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.00536/0.2126, allocations: 6.583 MB / 440.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002433/0.215, allocations: 1.906 MB / 442.1 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005664/0.2156, allocations: 43.69 kB / 442.1 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000373/0.216, allocations: 115.2 kB / 442.2 MB, free: 9.973 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006171/0.2166, allocations: 338.5 kB / 442.6 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000464/0.2171, allocations: 279.7 kB / 442.8 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000935/0.2181, allocations: 1.664 MB / 444.5 MB, free: 7.699 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003124/0.2184, allocations: 302.9 kB / 444.8 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000407/0.2188, allocations: 442.2 kB / 445.2 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004832/0.2193, allocations: 0.514 MB / 445.7 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.064e-05/0.2194, allocations: 40 kB / 445.8 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.02e-05/0.2195, allocations: 40 kB / 445.8 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002081/0.2197, allocations: 287.3 kB / 446.1 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002527/0.2199, allocations: 379.9 kB / 446.5 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005373/0.2205, allocations: 0.9851 MB / 447.5 MB, free: 4.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2205, allocations: 0 / 447.5 MB, free: 4.727 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2205, allocations: 0 / 447.5 MB, free: 4.727 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.2205, allocations: 0 / 447.5 MB, free: 4.727 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.001807/0.2223, allocations: 1.075 MB / 448.5 MB, free: 3.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.2224, allocations: 15.97 kB / 448.6 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001116/0.2225, allocations: 114.6 kB / 448.7 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.2226, allocations: 88.09 kB / 448.7 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008834/0.2235, allocations: 0.6199 MB / 449.4 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003151/0.2238, allocations: 351.2 kB / 449.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.224, allocations: 63.98 kB / 449.8 MB, free: 2.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001826/0.2258, allocations: 1.101 MB / 450.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.2258, allocations: 3.938 kB / 450.9 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.562e-05/0.2259, allocations: 24 kB / 450.9 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.2259, allocations: 19.98 kB / 450.9 MB, free: 1.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002292/0.2282, allocations: 1.202 MB / 452.1 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004269/0.2325, allocations: 3.271 MB / 455.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002098/0.2346, allocations: 0.831 MB / 456.2 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00135/0.236, allocations: 0.5929 MB / 456.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.413e-05/0.236, allocations: 4.438 kB / 456.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001453/0.2375, allocations: 0.685 MB / 457.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.405e-06/0.2375, allocations: 0 / 457.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.00385/0.2413, allocations: 1.565 MB / 459.1 MB, free: 8.766 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.415e-05/0.2414, allocations: 140.5 kB / 459.2 MB, free: 8.598 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003958/0.2418, allocations: 397.8 kB / 459.6 MB, free: 8.195 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.759e-05/0.2419, allocations: 37.7 kB / 459.6 MB, free: 8.152 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.2421, allocations: 292.3 kB / 459.9 MB, free: 7.859 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/0.2422, allocations: 165.6 kB / 460.1 MB, free: 7.695 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.266e-05/0.2423, allocations: 57.69 kB / 460.1 MB, free: 7.633 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.2424, allocations: 358.8 kB / 460.5 MB, free: 7.273 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001015/0.2435, allocations: 0.497 MB / 461 MB, free: 6.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001077/0.2445, allocations: 0.6069 MB / 461.6 MB, free: 6.129 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001913/0.2465, allocations: 0.9834 MB / 462.6 MB, free: 5.102 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.2465, allocations: 0 / 462.6 MB, free: 5.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002301/0.2488, allocations: 1.187 MB / 463.8 MB, free: 3.902 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.175e-05/0.2488, allocations: 53.69 kB / 463.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.2489, allocations: 4 kB / 463.8 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.2489, allocations: 8 kB / 463.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006216/0.2551, allocations: 1.596 MB / 465.4 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007495/0.2626, allocations: 4.828 MB / 470.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007202/0.2634, allocations: 139.4 kB / 470.4 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.611e-05/0.2635, allocations: 35.97 kB / 470.4 MB, free: 12.97 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.0004387/0.2639, allocations: 251.4 kB / 470.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.439e-05/0.264, allocations: 47.44 kB / 470.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002727/0.2667, allocations: 1.11 MB / 471.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/0.2667, allocations: 4 kB / 471.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/0.2668, allocations: 3.938 kB / 471.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.2668, allocations: 11.92 kB / 471.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003906/0.2707, allocations: 2.246 MB / 474.1 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.2707, allocations: 4 kB / 474.1 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007538/0.2782, allocations: 1.846 MB / 475.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-05/0.2783, allocations: 4 kB / 475.9 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.2784, allocations: 19.98 kB / 476 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-05/0.2784, allocations: 4 kB / 476 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.2784, allocations: 4 kB / 476 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004183/0.2826, allocations: 1.883 MB / 477.9 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002653/0.2829, allocations: 204.4 kB / 478.1 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.86e-05/0.283, allocations: 27.98 kB / 478.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006964/0.2837, allocations: 123.9 kB / 478.2 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002011/0.2839, allocations: 91.84 kB / 478.3 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.339e-05/0.284, allocations: 19.98 kB / 478.3 MB, free: 4.922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000265/0.2842, allocations: 271.1 kB / 478.6 MB, free: 4.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.413e-06/0.2842, allocations: 0 / 478.6 MB, free: 4.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000608/0.2849, allocations: 183.5 kB / 478.8 MB, free: 4.48 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.004428/0.2893, allocations: 2.463 MB / 481.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.008029/0.2973, allocations: 2.636 MB / 483.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.82e-06/0.2974, allocations: 0 / 483.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003795/0.3012, allocations: 1.199 MB / 485.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008824/0.3021, allocations: 133 kB / 485.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01147/0.3136, allocations: 7.178 MB / 492.4 MB, free: 6.613 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004584/0.3141, allocations: 0.9332 MB / 493.3 MB, free: 5.652 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005827/0.3147, allocations: 156.6 kB / 493.4 MB, free: 5.496 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003327/0.315, allocations: 191.4 kB / 493.6 MB, free: 5.309 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.315, allocations: 0 / 493.6 MB, free: 5.309 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.081/2.396, allocations: 12.65 MB / 0.4944 GB, free: 8.703 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002611/2.397, allocations: 236.7 kB / 0.4946 GB, free: 8.445 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.041/4.437, allocations: 0 / 0.4946 GB, free: 8.445 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)