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.001352/0.001352, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.62/1.62, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008445/0.0008445, allocations: 86.62 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1813/0.1813, allocations: 37.98 MB / 348.1 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.474e-05/1.476e-05, allocations: 0 / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1124, allocations: 56.32 MB / 467 MB, free: 6.461 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.387/0.4995, allocations: 101.4 MB / 0.555 GB, free: 9.398 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/0.4998, allocations: 95.94 kB / 0.5551 GB, free: 9.305 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04433/0.5442, allocations: 15.54 MB / 0.5703 GB, free: 9.602 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.5442, allocations: 4 kB / 0.5703 GB, free: 9.598 MB / 411.1 MB Notification: Performance of Transformations before backend: time 4.613e-05/0.5443, allocations: 16 kB / 0.5703 GB, free: 9.582 MB / 411.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.002269/0.5466, allocations: 1.046 MB / 0.5713 GB, free: 8.477 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.5466, allocations: 8.031 kB / 0.5713 GB, free: 8.469 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002081/0.5468, allocations: 91.11 kB / 0.5714 GB, free: 8.379 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003524/0.5504, allocations: 1.222 MB / 0.5726 GB, free: 7.113 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000457/0.5509, allocations: 318.9 kB / 0.5729 GB, free: 6.754 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001531/0.551, allocations: 39.91 kB / 0.573 GB, free: 6.715 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001448/0.5525, allocations: 0.7952 MB / 0.5737 GB, free: 5.918 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00136/0.5539, allocations: 0.816 MB / 0.5745 GB, free: 5.066 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.5539, allocations: 4 kB / 0.5745 GB, free: 5.062 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.914e-05/0.554, allocations: 3.953 kB / 0.5745 GB, free: 5.059 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.554, allocations: 16 kB / 0.5746 GB, free: 5.043 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00494/0.5589, allocations: 3.167 MB / 0.5777 GB, free: 1.785 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008657/0.5598, allocations: 0.5145 MB / 0.5782 GB, free: 1.254 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005778/0.5604, allocations: 386.9 kB / 0.5785 GB, free: 0.8711 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.534e-05/0.5605, allocations: 12.44 kB / 0.5785 GB, free: 0.8594 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006867/0.5612, allocations: 465 kB / 0.579 GB, free: 388 kB / 411.1 MB Notification: Performance of pre-optimization done (n=49): time 2.976e-06/0.5612, allocations: 0 / 0.579 GB, free: 388 kB / 411.1 MB Notification: Performance of matching and sorting (n=49): time 0.001149/0.5624, allocations: 0.6287 MB / 0.5796 GB, free: 15.74 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.91e-05/0.5625, allocations: 148.4 kB / 0.5797 GB, free: 15.57 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003636/0.5628, allocations: 286.2 kB / 0.58 GB, free: 15.29 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 7.028e-05/0.5629, allocations: 33.69 kB / 0.58 GB, free: 15.25 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002484/0.5632, allocations: 296.7 kB / 0.5803 GB, free: 14.95 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001571/0.5633, allocations: 161.7 kB / 0.5805 GB, free: 14.79 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.699e-05/0.5634, allocations: 0 / 0.5805 GB, free: 14.79 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.5635, allocations: 358.8 kB / 0.5808 GB, free: 14.43 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004708/0.564, allocations: 325.3 kB / 0.5811 GB, free: 14.11 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005063/0.5645, allocations: 425.4 kB / 0.5815 GB, free: 13.66 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004255/0.565, allocations: 294 kB / 0.5818 GB, free: 13.38 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.565, allocations: 4 kB / 0.5818 GB, free: 13.37 MB / 427.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001122/0.5661, allocations: 0.7521 MB / 0.5826 GB, free: 12.61 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.054e-05/0.5662, allocations: 45.69 kB / 0.5826 GB, free: 12.56 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.5662, allocations: 4 kB / 0.5826 GB, free: 12.56 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/0.5662, allocations: 8 kB / 0.5826 GB, free: 12.55 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006506/0.5727, allocations: 1.585 MB / 0.5842 GB, free: 10.96 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005193/0.578, allocations: 3.969 MB / 0.588 GB, free: 6.766 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008783/0.5789, allocations: 127.5 kB / 0.5882 GB, free: 6.641 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/0.579, allocations: 39.97 kB / 0.5882 GB, free: 6.602 MB / 427.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 ($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.0002492/0.5793, allocations: 132.4 kB / 0.5883 GB, free: 6.465 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001013/0.5803, allocations: 0.6253 MB / 0.5889 GB, free: 5.832 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.981e-05/0.5804, allocations: 43.53 kB / 0.589 GB, free: 5.789 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001077/0.5815, allocations: 0.6726 MB / 0.5896 GB, free: 5.109 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.5815, allocations: 11.94 kB / 0.5896 GB, free: 5.098 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.816e-06/0.5815, allocations: 0 / 0.5896 GB, free: 5.098 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.238e-06/0.5815, allocations: 7.984 kB / 0.5896 GB, free: 5.09 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002384/0.5839, allocations: 1.727 MB / 0.5913 GB, free: 3.289 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.584, allocations: 4 kB / 0.5913 GB, free: 3.285 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007788/0.5918, allocations: 1.838 MB / 0.5931 GB, free: 1.445 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.991e-05/0.5918, allocations: 7.953 kB / 0.5931 GB, free: 1.438 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001296/0.592, allocations: 11.98 kB / 0.5932 GB, free: 1.426 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/0.592, allocations: 7.938 kB / 0.5932 GB, free: 1.418 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.592, allocations: 4 kB / 0.5932 GB, free: 1.414 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001777/0.5938, allocations: 1.309 MB / 0.5944 GB, free: 24 kB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003305/0.5941, allocations: 208.3 kB / 0.5946 GB, free: 15.8 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.5942, allocations: 23.98 kB / 0.5947 GB, free: 15.78 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007212/0.595, allocations: 115.9 kB / 0.5948 GB, free: 15.66 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/0.5952, allocations: 95.59 kB / 0.5949 GB, free: 15.57 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.874e-05/0.5952, allocations: 19.98 kB / 0.5949 GB, free: 15.55 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.0002409/0.5955, allocations: 216.6 kB / 0.5951 GB, free: 15.34 MB / 443.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5955, allocations: 0 / 0.5951 GB, free: 15.34 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.0007218/0.5962, allocations: 167.5 kB / 0.5953 GB, free: 15.18 MB / 443.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]) * 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.002225/0.5985, allocations: 2.384 MB / 0.5976 GB, free: 12.73 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.006239/0.6047, allocations: 2.042 MB / 0.5996 GB, free: 10.67 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/0.6048, allocations: 0 / 0.5996 GB, free: 10.67 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003294/0.6081, allocations: 0.9838 MB / 0.6005 GB, free: 9.684 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008278/0.6089, allocations: 85.34 kB / 0.6006 GB, free: 9.602 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003719/0.6127, allocations: 1.405 MB / 0.602 GB, free: 8.133 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005587/0.6132, allocations: 0.9447 MB / 0.6029 GB, free: 7.164 MB / 443.1 MB Notification: Performance of simCode: alias equations: time 0.0005958/0.6139, allocations: 148.5 kB / 0.6031 GB, free: 7.016 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003461/0.6142, allocations: 199.4 kB / 0.6032 GB, free: 6.82 MB / 443.1 MB Notification: Performance of SimCode: time 7.41e-07/0.6142, allocations: 0 / 0.6032 GB, free: 6.82 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03631/0.6505, allocations: 11.39 MB / 0.6144 GB, free: 11.44 MB / 459.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002006/0.6508, allocations: 150.2 kB / 0.6145 GB, free: 11.25 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.234/2.885, allocations: 0 / 0.6145 GB, free: 11.25 MB / 459.1 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