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/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008682/0.0008687, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.0009839/0.000984, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 223.3 MB / 241.2 MB, free: 5.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.347/0.347, allocations: 38.08 MB / 330.4 MB, free: 14.11 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004629/0.000463, allocations: 8 kB / 400.2 MB, free: 9.105 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3412, allocations: 59.16 MB / 459.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.005498/0.3467, allocations: 6.228 MB / 465.6 MB, free: 25.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002662/0.3494, allocations: 1.795 MB / 467.4 MB, free: 24.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004609/0.3499, allocations: 40.62 kB / 467.4 MB, free: 24.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004526/0.3504, allocations: 148.3 kB / 467.5 MB, free: 24.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000866/0.3513, allocations: 397.4 kB / 467.9 MB, free: 24.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007424/0.352, allocations: 290.5 kB / 468.2 MB, free: 24.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001474/0.3535, allocations: 1.372 MB / 469.6 MB, free: 23.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003998/0.3539, allocations: 262.9 kB / 469.8 MB, free: 23.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007378/0.3547, allocations: 442.5 kB / 470.3 MB, free: 23.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009032/0.3556, allocations: 0.5097 MB / 470.8 MB, free: 23.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.701e-05/0.3557, allocations: 38.75 kB / 470.8 MB, free: 23.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.3558, allocations: 38.81 kB / 470.9 MB, free: 23.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003529/0.3562, allocations: 294.2 kB / 471.1 MB, free: 23.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001736/0.3564, allocations: 151.5 kB / 471.3 MB, free: 23.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009476/0.3573, allocations: 0.8125 MB / 472.1 MB, free: 22.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3573, allocations: 0 / 472.1 MB, free: 22.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3573, allocations: 1.891 kB / 472.1 MB, free: 22.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.538e-05/0.3574, allocations: 0 / 472.1 MB, free: 22.88 MB / 350.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.002266/0.3596, allocations: 1.086 MB / 473.2 MB, free: 22.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.3597, allocations: 9.344 kB / 473.2 MB, free: 22.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000158/0.3599, allocations: 108.3 kB / 473.3 MB, free: 22.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001653/0.36, allocations: 82 kB / 473.4 MB, free: 22.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.3611, allocations: 0.6229 MB / 474 MB, free: 21.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003511/0.3615, allocations: 348.1 kB / 474.3 MB, free: 21.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.3616, allocations: 59.88 kB / 474.4 MB, free: 21.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/0.3636, allocations: 1.094 MB / 475.5 MB, free: 20.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.3636, allocations: 1.25 kB / 475.5 MB, free: 20.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.31e-05/0.3637, allocations: 25.11 kB / 475.5 MB, free: 20.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.3638, allocations: 18 kB / 475.5 MB, free: 20.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002546/0.3663, allocations: 1.203 MB / 476.7 MB, free: 20.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004296/0.3706, allocations: 3.261 MB / 480 MB, free: 17.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002056/0.3727, allocations: 0.8385 MB / 480.8 MB, free: 17.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00137/0.3741, allocations: 0.5965 MB / 481.4 MB, free: 16.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.238e-05/0.3742, allocations: 5.5 kB / 481.4 MB, free: 16.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001371/0.3755, allocations: 0.6724 MB / 482.1 MB, free: 16.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.344e-06/0.3755, allocations: 3.938 kB / 482.1 MB, free: 16.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003393/0.3789, allocations: 1.556 MB / 483.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.379, allocations: 152.5 kB / 483.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003666/0.3794, allocations: 385.8 kB / 484.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.851e-05/0.3795, allocations: 37.7 kB / 484.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/0.3796, allocations: 304.1 kB / 484.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.3798, allocations: 161.7 kB / 484.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.069e-05/0.3798, allocations: 12 kB / 484.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.658e-05/0.3799, allocations: 358.8 kB / 485.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008711/0.3808, allocations: 492.9 kB / 485.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009073/0.3817, allocations: 0.5874 MB / 486.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/0.3828, allocations: 0.4957 MB / 486.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.3828, allocations: 0 / 486.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003278/0.3861, allocations: 1.156 MB / 487.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.152e-05/0.3862, allocations: 53.69 kB / 487.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.3862, allocations: 7.984 kB / 487.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.511e-05/0.3863, allocations: 4 kB / 487.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008516/0.3948, allocations: 1.592 MB / 489.4 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00982/0.4047, allocations: 4.825 MB / 494.3 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.406, allocations: 139.4 kB / 494.4 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/0.4062, allocations: 39.97 kB / 494.4 MB, free: 3.992 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 ($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.0006585/0.4069, allocations: 251.3 kB / 494.7 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.407, allocations: 47.44 kB / 494.7 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003529/0.4105, allocations: 1.114 MB / 495.8 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.4106, allocations: 8 kB / 495.9 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.4106, allocations: 0 / 495.9 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/0.4106, allocations: 0 / 495.9 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005279/0.4159, allocations: 2.249 MB / 498.1 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/0.4159, allocations: 4 kB / 498.1 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01031/0.4262, allocations: 1.842 MB / 499.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.648e-05/0.4263, allocations: 4 kB / 499.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001486/0.4265, allocations: 19.88 kB / 500 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.08e-05/0.4265, allocations: 4 kB / 500 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.4265, allocations: 3.938 kB / 500 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006195/0.4327, allocations: 1.875 MB / 0.4901 GB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005727/0.4333, allocations: 204.4 kB / 0.4903 GB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001823/0.4335, allocations: 27.98 kB / 0.4903 GB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.4345, allocations: 131.8 kB / 0.4904 GB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003231/0.4349, allocations: 95.77 kB / 0.4905 GB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.501e-05/0.435, allocations: 16 kB / 0.4905 GB, free: 11.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005351/0.4355, allocations: 267.1 kB / 0.4908 GB, free: 11.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4355, allocations: 0 / 0.4908 GB, free: 11.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001189/0.4367, allocations: 179.6 kB / 0.491 GB, free: 11.52 MB / 366.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 (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.004995/0.4417, allocations: 2.452 MB / 0.4934 GB, free: 9.016 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007369/0.4491, allocations: 2.621 MB / 0.4959 GB, free: 6.383 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/0.4492, allocations: 3.938 kB / 0.4959 GB, free: 6.379 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003484/0.4527, allocations: 1.202 MB / 0.4971 GB, free: 5.176 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009382/0.4536, allocations: 127.8 kB / 0.4972 GB, free: 5.055 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008619/0.4623, allocations: 4.788 MB / 0.5019 GB, free: 160 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005307/0.4628, allocations: 0.9254 MB / 0.5028 GB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000642/0.4635, allocations: 156.6 kB / 0.503 GB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003813/0.4639, allocations: 199.4 kB / 0.5031 GB, free: 14.86 MB / 382.1 MB Notification: Performance of SimCode: time 1.192e-06/0.4639, allocations: 4 kB / 0.5031 GB, free: 14.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02655/0.4904, allocations: 12.71 MB / 0.5156 GB, free: 2.402 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001894/0.4907, allocations: 235.3 kB / 0.5158 GB, free: 2.152 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.147/2.638, allocations: 7.312 kB / 0.5158 GB, free: 2.148 MB / 382.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) Environment - environmentSimulation: 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