Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00179/0.00179, allocations: 179.6 kB / 8.352 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.751/1.751, allocations: 194.3 MB / 203.1 MB, free: 12.95 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001879/0.001879, allocations: 119.3 kB / 248.1 MB, free: 15.95 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1804/0.1804, allocations: 37.93 MB / 330.9 MB, free: 2.625 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.921e-05/1.923e-05, allocations: 4 kB / 390.5 MB, free: 6.973 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.308, allocations: 53.23 MB / 443.7 MB, free: 17.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1347/0.4428, allocations: 95.26 MB / 0.5263 GB, free: 2.344 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002949/0.4431, allocations: 91.94 kB / 0.5264 GB, free: 2.254 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3115/0.7546, allocations: 15.12 MB / 0.5412 GB, free: 86.17 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.7546, allocations: 0 / 0.5412 GB, free: 86.17 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.306e-05/0.7547, allocations: 15.62 kB / 0.5412 GB, free: 86.16 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001272/0.756, allocations: 0.8059 MB / 0.542 GB, free: 85.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.756, allocations: 10.34 kB / 0.542 GB, free: 85.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.7561, allocations: 68.97 kB / 0.542 GB, free: 85.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002312/0.7585, allocations: 1.062 MB / 0.5431 GB, free: 84.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.452e-05/0.7585, allocations: 14.66 kB / 0.5431 GB, free: 84.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.252e-05/0.7586, allocations: 33.78 kB / 0.5431 GB, free: 84.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006626/0.7593, allocations: 473.2 kB / 0.5436 GB, free: 84.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000705/0.76, allocations: 0.5568 MB / 0.5441 GB, free: 84.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.76, allocations: 3.969 kB / 0.5441 GB, free: 84.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.207e-05/0.76, allocations: 0 / 0.5441 GB, free: 84.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.7601, allocations: 11.69 kB / 0.5441 GB, free: 84.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002559/0.7626, allocations: 2.149 MB / 0.5462 GB, free: 82.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006309/0.7633, allocations: 453.2 kB / 0.5467 GB, free: 81.63 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004974/0.7638, allocations: 325.5 kB / 0.547 GB, free: 81.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.6e-05/0.7638, allocations: 4 kB / 0.547 GB, free: 81.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/0.7639, allocations: 39.28 kB / 0.547 GB, free: 81.26 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 4.068e-06/0.7639, allocations: 0 / 0.547 GB, free: 81.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.002259/0.7662, allocations: 1.26 MB / 0.5483 GB, free: 79.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.7662, allocations: 81.11 kB / 0.5483 GB, free: 79.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003246/0.7665, allocations: 329.2 kB / 0.5486 GB, free: 79.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.7666, allocations: 25.7 kB / 0.5487 GB, free: 79.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.7667, allocations: 296.3 kB / 0.549 GB, free: 79.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.7668, allocations: 153.7 kB / 0.5491 GB, free: 79.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.046e-05/0.7669, allocations: 3.938 kB / 0.5491 GB, free: 79.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.767, allocations: 366.8 kB / 0.5495 GB, free: 78.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002167/0.7672, allocations: 165.1 kB / 0.5496 GB, free: 78.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002598/0.7675, allocations: 294.6 kB / 0.5499 GB, free: 78.17 MB / 378.7 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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/0.7691, allocations: 0.7176 MB / 0.5506 GB, free: 77.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.7692, allocations: 4 kB / 0.5506 GB, free: 77.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0009361/0.7701, allocations: 0.6328 MB / 0.5512 GB, free: 76.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.7701, allocations: 8 kB / 0.5512 GB, free: 76.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.7702, allocations: 4 kB / 0.5512 GB, free: 76.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003594/0.7705, allocations: 132.8 kB / 0.5514 GB, free: 76.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004129/0.7709, allocations: 111.8 kB / 0.5515 GB, free: 76.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002169/0.7731, allocations: 2.257 MB / 0.5537 GB, free: 74.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005034/0.7737, allocations: 12.03 kB / 0.5537 GB, free: 74.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.7737, allocations: 23.98 kB / 0.5537 GB, free: 74.13 MB / 378.7 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[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * Array equations: 0 * 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 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002002/0.7739, allocations: 122.5 kB / 0.5538 GB, free: 74.01 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008133/0.7747, allocations: 0.5362 MB / 0.5543 GB, free: 73.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.371e-05/0.7748, allocations: 51.34 kB / 0.5544 GB, free: 73.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009288/0.7758, allocations: 0.584 MB / 0.555 GB, free: 72.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.7758, allocations: 16.05 kB / 0.555 GB, free: 72.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.7758, allocations: 4 kB / 0.555 GB, free: 72.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.7758, allocations: 3.984 kB / 0.555 GB, free: 72.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001744/0.7775, allocations: 1.233 MB / 0.5562 GB, free: 71.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.7776, allocations: 7.984 kB / 0.5562 GB, free: 71.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003228/0.7779, allocations: 71.84 kB / 0.5563 GB, free: 71.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003312/0.7782, allocations: 140.8 kB / 0.5564 GB, free: 71.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.17e-05/0.7783, allocations: 8 kB / 0.5564 GB, free: 71.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001884/0.7802, allocations: 2.239 MB / 0.5586 GB, free: 68.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.7802, allocations: 0 / 0.5586 GB, free: 68.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.7812, allocations: 0.9833 MB / 0.5596 GB, free: 67.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/0.7814, allocations: 124.5 kB / 0.5597 GB, free: 67.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.188e-05/0.7814, allocations: 8 kB / 0.5597 GB, free: 67.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/0.7817, allocations: 15.92 kB / 0.5597 GB, free: 67.69 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.071e-05/0.7817, allocations: 43.95 kB / 0.5597 GB, free: 67.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.744e-05/0.7818, allocations: 19.94 kB / 0.5598 GB, free: 67.63 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002191/0.782, allocations: 247 kB / 0.56 GB, free: 67.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.782, allocations: 0 / 0.56 GB, free: 67.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006568/0.7827, allocations: 139.9 kB / 0.5601 GB, free: 67.25 MB / 378.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[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * 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 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001316/0.784, allocations: 1.953 MB / 0.562 GB, free: 65.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009667/0.785, allocations: 0.592 MB / 0.5626 GB, free: 64.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.785, allocations: 0.9375 kB / 0.5626 GB, free: 64.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005398/0.7855, allocations: 397.7 kB / 0.563 GB, free: 64.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006977/0.7863, allocations: 97.83 kB / 0.5631 GB, free: 64.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002107/0.7884, allocations: 1.127 MB / 0.5642 GB, free: 62.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.7888, allocations: 0.9409 MB / 0.5651 GB, free: 61.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003386/0.7891, allocations: 96.62 kB / 0.5652 GB, free: 61.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002452/0.7895, allocations: 211.2 kB / 0.5654 GB, free: 61.68 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.7895, allocations: 3.938 kB / 0.5654 GB, free: 61.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03134/0.8208, allocations: 10.2 MB / 0.5754 GB, free: 51.48 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002417/0.8212, allocations: 149.3 kB / 0.5755 GB, free: 51.28 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.231/3.052, allocations: 0 / 0.5755 GB, free: 51.28 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)