Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_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.001009/0.00101, allocations: 180.6 kB / 16.39 MB, free: 5.758 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.245/1.245, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0009606/0.0009605, allocations: 93.3 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1673/0.1673, allocations: 38.06 MB / 357.2 MB, free: 1.875 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002776/0.0002776, allocations: 8 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2341, allocations: 56.32 MB / 480.4 MB, free: 9.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1164/0.3506, allocations: 102.1 MB / 0.5689 GB, free: 272 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/0.3509, allocations: 95.94 kB / 0.569 GB, free: 176 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04226/0.3931, allocations: 15.7 MB / 0.5843 GB, free: 292 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3932, allocations: 0 / 0.5843 GB, free: 292 kB / 410.7 MB Notification: Performance of Transformations before backend: time 4.161e-05/0.3932, allocations: 19.94 kB / 0.5843 GB, free: 272 kB / 410.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.002598/0.3958, allocations: 1.113 MB / 0.5854 GB, free: 15.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.3959, allocations: 12.03 kB / 0.5854 GB, free: 15.07 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000247/0.3961, allocations: 106.5 kB / 0.5855 GB, free: 14.96 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002038/0.3963, allocations: 87.11 kB / 0.5856 GB, free: 14.88 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003297/0.3996, allocations: 1.243 MB / 0.5868 GB, free: 13.59 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004269/0.4001, allocations: 342.9 kB / 0.5871 GB, free: 13.21 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.4002, allocations: 67.92 kB / 0.5872 GB, free: 13.14 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002201/0.4024, allocations: 1.103 MB / 0.5883 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.4025, allocations: 0 / 0.5883 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.948e-05/0.4026, allocations: 31.94 kB / 0.5883 GB, free: 11.97 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.66e-05/0.4026, allocations: 12 kB / 0.5883 GB, free: 11.96 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002653/0.4052, allocations: 1.194 MB / 0.5895 GB, free: 10.76 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005121/0.4104, allocations: 3.26 MB / 0.5927 GB, free: 7.402 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002127/0.4125, allocations: 0.8548 MB / 0.5935 GB, free: 6.531 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.206e-05/0.4126, allocations: 12.42 kB / 0.5935 GB, free: 6.52 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001444/0.414, allocations: 0.6851 MB / 0.5942 GB, free: 5.809 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.885e-06/0.4141, allocations: 0 / 0.5942 GB, free: 5.809 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.003759/0.4178, allocations: 1.554 MB / 0.5957 GB, free: 4.25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.415e-05/0.4179, allocations: 144.5 kB / 0.5959 GB, free: 4.078 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004158/0.4183, allocations: 341 kB / 0.5962 GB, free: 3.734 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.53e-05/0.4184, allocations: 37.7 kB / 0.5962 GB, free: 3.691 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002108/0.4186, allocations: 300.2 kB / 0.5965 GB, free: 3.395 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.4188, allocations: 161.8 kB / 0.5967 GB, free: 3.234 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.921e-05/0.4188, allocations: 12 kB / 0.5967 GB, free: 3.223 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.419, allocations: 366.8 kB / 0.597 GB, free: 2.855 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009958/0.42, allocations: 492.9 kB / 0.5975 GB, free: 2.375 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.421, allocations: 0.5835 MB / 0.5981 GB, free: 1.746 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/0.422, allocations: 0.4957 MB / 0.5985 GB, free: 1.246 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.4221, allocations: 0 / 0.5985 GB, free: 1.246 MB / 426.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002424/0.4245, allocations: 1.16 MB / 0.5997 GB, free: 72 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.063e-05/0.4246, allocations: 51.7 kB / 0.5997 GB, free: 16 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.4246, allocations: 4.219 kB / 0.5997 GB, free: 12 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.4246, allocations: 8 kB / 0.5997 GB, free: 4 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005644/0.4303, allocations: 1.588 MB / 0.6013 GB, free: 14.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007779/0.4381, allocations: 4.977 MB / 0.6061 GB, free: 9.176 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007913/0.4389, allocations: 143.3 kB / 0.6063 GB, free: 9.035 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/0.439, allocations: 43.92 kB / 0.6063 GB, free: 8.992 MB / 442.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 () * 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): 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.000475/0.4395, allocations: 247.4 kB / 0.6066 GB, free: 8.738 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001294/0.4397, allocations: 55.36 kB / 0.6066 GB, free: 8.684 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002608/0.4423, allocations: 1.106 MB / 0.6077 GB, free: 7.574 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.4423, allocations: 8 kB / 0.6077 GB, free: 7.566 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.4423, allocations: 0 / 0.6077 GB, free: 7.566 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/0.4423, allocations: 3.984 kB / 0.6077 GB, free: 7.562 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003948/0.4463, allocations: 2.207 MB / 0.6099 GB, free: 5.281 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.4463, allocations: 3.938 kB / 0.6099 GB, free: 5.277 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006528/0.4528, allocations: 1.838 MB / 0.6117 GB, free: 3.438 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-05/0.4529, allocations: 7.953 kB / 0.6117 GB, free: 3.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.477e-05/0.453, allocations: 15.98 kB / 0.6117 GB, free: 3.414 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.453, allocations: 4 kB / 0.6117 GB, free: 3.41 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.453, allocations: 4 kB / 0.6117 GB, free: 3.406 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004004/0.457, allocations: 1.958 MB / 0.6136 GB, free: 1.375 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00039/0.4574, allocations: 200.4 kB / 0.6138 GB, free: 1.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001395/0.4576, allocations: 43.94 kB / 0.6138 GB, free: 1.117 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007141/0.4583, allocations: 119.9 kB / 0.6139 GB, free: 1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002096/0.4585, allocations: 91.83 kB / 0.614 GB, free: 0.9102 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.178e-05/0.4586, allocations: 20 kB / 0.6141 GB, free: 0.8906 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003136/0.4589, allocations: 267.1 kB / 0.6143 GB, free: 0.6328 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4589, allocations: 0 / 0.6143 GB, free: 0.6328 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006721/0.4596, allocations: 183.6 kB / 0.6145 GB, free: 464 kB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (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.004313/0.4639, allocations: 2.959 MB / 0.6174 GB, free: 13.42 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006326/0.4702, allocations: 2.437 MB / 0.6198 GB, free: 10.97 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4702, allocations: 0 / 0.6198 GB, free: 10.97 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0033/0.4736, allocations: 1.195 MB / 0.6209 GB, free: 9.773 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006309/0.4742, allocations: 122.1 kB / 0.621 GB, free: 9.656 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008456/0.4827, allocations: 6.574 MB / 0.6275 GB, free: 2.953 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005136/0.4832, allocations: 0.9488 MB / 0.6284 GB, free: 1.973 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0005632/0.4838, allocations: 156.6 kB / 0.6285 GB, free: 1.82 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003163/0.4841, allocations: 195.4 kB / 0.6287 GB, free: 1.629 MB / 458.7 MB Notification: Performance of SimCode: time 5.01e-07/0.4841, allocations: 0 / 0.6287 GB, free: 1.629 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02497/0.5091, allocations: 12.81 MB / 0.6412 GB, free: 4.875 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002117/0.5093, allocations: 220.8 kB / 0.6414 GB, free: 4.633 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.094/2.603, allocations: 0 / 0.6414 GB, free: 4.633 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad_res.mat does not exist to compare? outputFormat=mat