Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.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.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",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.001078/0.001078, allocations: 94.62 kB / 16.32 MB, free: 6.008 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.001298/0.001298, allocations: 184.8 kB / 17.21 MB, free: 5.902 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.43/1.43, allocations: 223.2 MB / 241.2 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3027/0.3027, allocations: 38.07 MB / 330.4 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003247/0.0003247, allocations: 8 kB / 400.2 MB, free: 9.211 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.327, allocations: 59.17 MB / 459.3 MB, free: 30.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.007331/0.3344, allocations: 6.887 MB / 466.2 MB, free: 25.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005422/0.3399, allocations: 2.14 MB / 468.4 MB, free: 23.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007702/0.3407, allocations: 47.84 kB / 468.4 MB, free: 23.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006384/0.3413, allocations: 174.7 kB / 468.6 MB, free: 23.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001369/0.3427, allocations: 479.7 kB / 469 MB, free: 23.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001411/0.3441, allocations: 356.4 kB / 469.4 MB, free: 23.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002172/0.3463, allocations: 1.195 MB / 470.6 MB, free: 22.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001244/0.3476, allocations: 0.6389 MB / 471.2 MB, free: 22.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009055/0.3485, allocations: 379.4 kB / 471.6 MB, free: 22.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001013/0.3495, allocations: 0.5607 MB / 472.2 MB, free: 21.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.646e-05/0.3496, allocations: 34.75 kB / 472.2 MB, free: 21.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006919/0.3503, allocations: 193.9 kB / 472.4 MB, free: 21.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004703/0.3508, allocations: 340.5 kB / 472.7 MB, free: 21.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002274/0.351, allocations: 168.1 kB / 472.9 MB, free: 21.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001173/0.3522, allocations: 0.7607 MB / 473.6 MB, free: 21.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.3522, allocations: 0.7031 kB / 473.6 MB, free: 21.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3522, allocations: 0 / 473.6 MB, free: 21.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.3523, allocations: 0 / 473.6 MB, free: 21.56 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.00203/0.3543, allocations: 0.9962 MB / 474.6 MB, free: 20.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.3544, allocations: 9.625 kB / 474.6 MB, free: 20.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000176/0.3545, allocations: 116.1 kB / 474.8 MB, free: 20.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007122/0.3553, allocations: 128.8 kB / 474.9 MB, free: 20.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009834/0.3563, allocations: 0.5596 MB / 475.4 MB, free: 20.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.491e-05/0.3563, allocations: 56.11 kB / 475.5 MB, free: 20.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001679/0.3565, allocations: 70.14 kB / 475.6 MB, free: 20.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.358, allocations: 1.012 MB / 476.6 MB, free: 19.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.421e-05/0.3581, allocations: 0 / 476.6 MB, free: 19.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.001e-05/0.3581, allocations: 26.88 kB / 476.6 MB, free: 19.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000199/0.3583, allocations: 70.11 kB / 476.7 MB, free: 19.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001506/0.3599, allocations: 0.9721 MB / 477.6 MB, free: 19.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004514/0.3644, allocations: 3.286 MB / 480.9 MB, free: 16.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.3655, allocations: 0.6727 MB / 481.6 MB, free: 16.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000617/0.3661, allocations: 429 kB / 482 MB, free: 16.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.341e-05/0.3662, allocations: 16.38 kB / 482 MB, free: 16.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.3662, allocations: 37.88 kB / 482.1 MB, free: 16.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.785e-06/0.3662, allocations: 0 / 482.1 MB, free: 16.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=75): time 0.004312/0.3705, allocations: 2.432 MB / 484.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.223e-05/0.3706, allocations: 81.67 kB / 484.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004059/0.371, allocations: 441.8 kB / 485 MB, free: 13.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.905e-05/0.3711, allocations: 41.83 kB / 485.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/0.3712, allocations: 359.5 kB / 485.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000161/0.3714, allocations: 260.3 kB / 485.7 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.574e-05/0.3714, allocations: 16 kB / 485.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.275e-05/0.3715, allocations: 370.8 kB / 486 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004105/0.372, allocations: 337.8 kB / 486.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004527/0.3724, allocations: 0.5107 MB / 486.9 MB, free: 11.79 MB / 350.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.00327/0.3757, allocations: 1.397 MB / 488.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.3757, allocations: 4 kB / 488.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001407/0.3771, allocations: 1.102 MB / 489.4 MB, free: 9.234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.3772, allocations: 4 kB / 489.4 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.3772, allocations: 8 kB / 489.4 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000141/0.3773, allocations: 40.83 kB / 489.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006542/0.378, allocations: 191.7 kB / 489.6 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008588/0.3788, allocations: 1.386 MB / 491 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000488/0.3794, allocations: 47.8 kB / 491.1 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.335e-05/0.3794, allocations: 28 kB / 491.1 MB, free: 7.395 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: ind.i[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 92 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004414/0.3799, allocations: 281.5 kB / 491.4 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.38, allocations: 63.23 kB / 491.4 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001235/0.3812, allocations: 0.966 MB / 492.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.07e-05/0.3813, allocations: 12.14 kB / 492.4 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3813, allocations: 8 kB / 492.4 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.3813, allocations: 7.969 kB / 492.4 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002656/0.384, allocations: 1.998 MB / 494.4 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.384, allocations: 4 kB / 494.4 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005697/0.3846, allocations: 156.4 kB / 494.6 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001016/0.3847, allocations: 36.84 kB / 494.6 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.663e-05/0.3847, allocations: 23.98 kB / 494.6 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007103/0.3854, allocations: 1.386 MB / 496 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.3855, allocations: 7.938 kB / 496 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001527/0.387, allocations: 1.51 MB / 497.5 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001611/0.3872, allocations: 148.3 kB / 497.7 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.005e-05/0.3872, allocations: 24.12 kB / 497.7 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003292/0.3876, allocations: 35.95 kB / 497.7 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.387e-05/0.3877, allocations: 56.39 kB / 497.8 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.69e-05/0.3877, allocations: 31.98 kB / 497.8 MB, free: 232 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003405/0.3881, allocations: 299.1 kB / 498.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3881, allocations: 0 / 498.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000806/0.3889, allocations: 184 kB / 498.3 MB, free: 15.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002457/0.3914, allocations: 2.102 MB / 0.4887 GB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.3931, allocations: 0.9384 MB / 0.4896 GB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.3931, allocations: 0 / 0.4896 GB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006892/0.3938, allocations: 0.5186 MB / 0.4901 GB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009512/0.3947, allocations: 140.5 kB / 0.4902 GB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008103/0.4028, allocations: 5.141 MB / 0.4952 GB, free: 6.578 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007409/0.4036, allocations: 1.017 MB / 0.4962 GB, free: 5.535 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000703/0.4044, allocations: 201.4 kB / 0.4964 GB, free: 5.336 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004686/0.4048, allocations: 275.3 kB / 0.4967 GB, free: 5.07 MB / 366.1 MB Notification: Performance of SimCode: time 1.393e-06/0.4048, allocations: 0 / 0.4967 GB, free: 5.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03311/0.438, allocations: 13.74 MB / 0.5101 GB, free: 7.57 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002148/0.4382, allocations: 215.3 kB / 0.5103 GB, free: 7.336 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.168/2.606, allocations: 0 / 0.5103 GB, free: 7.336 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat does not exist to compare? outputFormat=mat