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.0008361/0.0008363, allocations: 91.2 kB / 16.3 MB, free: 5.992 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.0008503/0.0008504, allocations: 183.5 kB / 17.19 MB, free: 5.906 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.244/1.244, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2821/0.2821, allocations: 38.08 MB / 330.3 MB, free: 14.18 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003013/0.0003013, allocations: 8 kB / 400.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3006, allocations: 59.16 MB / 459.2 MB, free: 30.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.006392/0.307, allocations: 6.608 MB / 465.8 MB, free: 25.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003856/0.3109, allocations: 2.157 MB / 468 MB, free: 23.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007531/0.3117, allocations: 52.19 kB / 468 MB, free: 23.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000524/0.3122, allocations: 162.5 kB / 468.2 MB, free: 23.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001275/0.3135, allocations: 390.8 kB / 468.6 MB, free: 23.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001355/0.3148, allocations: 348.9 kB / 468.9 MB, free: 23.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001146/0.316, allocations: 0.5484 MB / 469.5 MB, free: 23.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001132/0.3171, allocations: 0.6436 MB / 470.1 MB, free: 22.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007159/0.3179, allocations: 335.9 kB / 470.4 MB, free: 22.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006841/0.3186, allocations: 414.4 kB / 470.8 MB, free: 22.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.899e-05/0.3187, allocations: 34.78 kB / 470.9 MB, free: 22.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000579/0.3193, allocations: 181.2 kB / 471 MB, free: 22.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003573/0.3196, allocations: 308.4 kB / 471.3 MB, free: 22.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002/0.3198, allocations: 160 kB / 471.5 MB, free: 22.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001/0.3208, allocations: 0.7598 MB / 472.3 MB, free: 22.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.3209, allocations: 0 / 472.3 MB, free: 22.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3209, allocations: 0 / 472.3 MB, free: 22.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.3209, allocations: 0 / 472.3 MB, free: 22.09 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.001947/0.3228, allocations: 0.9951 MB / 473.3 MB, free: 21.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.807e-05/0.3229, allocations: 12.88 kB / 473.3 MB, free: 21.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000134/0.323, allocations: 120.2 kB / 473.4 MB, free: 21.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006918/0.3237, allocations: 129.5 kB / 473.5 MB, free: 21.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.3248, allocations: 0.559 MB / 474.1 MB, free: 20.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.898e-05/0.3248, allocations: 52.53 kB / 474.1 MB, free: 20.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/0.325, allocations: 66.94 kB / 474.2 MB, free: 20.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.3265, allocations: 1.003 MB / 475.2 MB, free: 20.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.3266, allocations: 5.312 kB / 475.2 MB, free: 20.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.266e-05/0.3266, allocations: 25.5 kB / 475.2 MB, free: 20.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002194/0.3269, allocations: 77.03 kB / 475.3 MB, free: 20.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001447/0.3283, allocations: 0.9664 MB / 476.3 MB, free: 20.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004513/0.3329, allocations: 3.276 MB / 479.5 MB, free: 17.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.3339, allocations: 0.696 MB / 480.2 MB, free: 17.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.571e-05/0.334, allocations: 12.8 kB / 480.2 MB, free: 17.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.334, allocations: 38.62 kB / 480.3 MB, free: 17.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.765e-06/0.334, allocations: 0 / 480.3 MB, free: 17.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=75): time 0.003474/0.3375, allocations: 2.564 MB / 482.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.859e-05/0.3376, allocations: 92.03 kB / 482.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000456/0.338, allocations: 434.5 kB / 483.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.472e-05/0.3381, allocations: 40.78 kB / 483.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.3382, allocations: 365.9 kB / 483.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.3384, allocations: 257.7 kB / 484 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.52e-05/0.3384, allocations: 14.59 kB / 484 MB, free: 14.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.263e-05/0.3385, allocations: 379.2 kB / 484.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003967/0.3389, allocations: 341.1 kB / 484.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004368/0.3394, allocations: 0.5069 MB / 485.2 MB, free: 13.29 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.003222/0.3426, allocations: 1.386 MB / 486.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.3426, allocations: 4 kB / 486.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001233/0.3439, allocations: 1.094 MB / 487.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.3439, allocations: 10.5 kB / 487.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.3439, allocations: 4 kB / 487.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001093/0.344, allocations: 32.84 kB / 487.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006954/0.3447, allocations: 199.7 kB / 488 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006692/0.3454, allocations: 1.338 MB / 489.3 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004464/0.3459, allocations: 35.97 kB / 489.3 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.538e-05/0.3459, allocations: 35.98 kB / 489.4 MB, free: 8.977 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 (96): * Single equations (assignments): 93 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003528/0.3463, allocations: 287.8 kB / 489.6 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.3464, allocations: 63.23 kB / 489.7 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001103/0.3475, allocations: 0.9465 MB / 490.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.261e-05/0.3475, allocations: 19.98 kB / 490.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3476, allocations: 4 kB / 490.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.3476, allocations: 0 / 490.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002484/0.3501, allocations: 1.985 MB / 492.7 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.3501, allocations: 7.953 kB / 492.7 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006164/0.3507, allocations: 163.8 kB / 492.8 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.062e-05/0.3508, allocations: 33.41 kB / 492.9 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.199e-05/0.3508, allocations: 23.98 kB / 492.9 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005577/0.3514, allocations: 1.331 MB / 494.2 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3514, allocations: 4 kB / 494.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/0.3528, allocations: 1.736 MB / 496 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.353, allocations: 140.2 kB / 496.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.948e-05/0.3531, allocations: 24.05 kB / 496.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003319/0.3534, allocations: 32.09 kB / 496.2 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.624e-05/0.3535, allocations: 60.39 kB / 496.2 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.142e-05/0.3535, allocations: 31.98 kB / 496.2 MB, free: 1.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002415/0.3538, allocations: 295.1 kB / 496.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3538, allocations: 0 / 496.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006796/0.3545, allocations: 188 kB / 496.7 MB, free: 1.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (76): * Single equations (assignments): 72 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002804/0.3573, allocations: 3.627 MB / 0.4886 GB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.3589, allocations: 0.9343 MB / 0.4895 GB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.3589, allocations: 3.938 kB / 0.4895 GB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006181/0.3595, allocations: 0.5192 MB / 0.49 GB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007097/0.3602, allocations: 121.8 kB / 0.4902 GB, free: 11.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007168/0.3674, allocations: 8.592 MB / 0.4985 GB, free: 2.859 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005441/0.368, allocations: 1.029 MB / 0.4995 GB, free: 1.805 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005717/0.3685, allocations: 205.3 kB / 0.4997 GB, free: 1.602 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000361/0.3689, allocations: 279.3 kB / 0.5 GB, free: 1.328 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3689, allocations: 0 / 0.5 GB, free: 1.328 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02902/0.398, allocations: 13.66 MB / 0.5133 GB, free: 3.902 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002014/0.3982, allocations: 210.1 kB / 0.5135 GB, free: 3.664 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.831/2.229, allocations: 6.531 kB / 0.5136 GB, free: 3.66 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