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/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: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001386/0.001386, allocations: 176.4 kB / 8.347 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.59/1.59, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.0007962/0.0007963, allocations: 90.45 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1741/0.1741, allocations: 38 MB / 348.1 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.962e-05/1.963e-05, allocations: 4 kB / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1156, allocations: 56.32 MB / 466.9 MB, free: 6.574 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4259/0.5415, allocations: 110.4 MB / 0.5637 GB, free: 0.5391 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.5418, allocations: 87.95 kB / 0.5638 GB, free: 464 kB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06144/0.6033, allocations: 21.65 MB / 0.585 GB, free: 10.57 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.6033, allocations: 3.938 kB / 0.585 GB, free: 10.56 MB / 427.1 MB Notification: Performance of Transformations before backend: time 4.295e-05/0.6034, allocations: 20 kB / 0.585 GB, free: 10.54 MB / 427.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.001873/0.6053, allocations: 0.9382 MB / 0.5859 GB, free: 9.555 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.6053, allocations: 8.031 kB / 0.5859 GB, free: 9.547 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006877/0.606, allocations: 126.9 kB / 0.586 GB, free: 9.422 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002878/0.6089, allocations: 1.143 MB / 0.5871 GB, free: 8.234 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.382e-05/0.609, allocations: 23.95 kB / 0.5872 GB, free: 8.211 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.6091, allocations: 36 kB / 0.5872 GB, free: 8.176 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00122/0.6103, allocations: 0.7373 MB / 0.5879 GB, free: 7.438 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.6116, allocations: 0.8987 MB / 0.5888 GB, free: 6.5 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.6117, allocations: 4 kB / 0.5888 GB, free: 6.496 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.14e-05/0.6117, allocations: 4 kB / 0.5888 GB, free: 6.492 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001497/0.6119, allocations: 65.27 kB / 0.5889 GB, free: 6.43 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005054/0.617, allocations: 3.152 MB / 0.5919 GB, free: 3.176 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.6181, allocations: 0.6978 MB / 0.5926 GB, free: 2.461 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005959/0.6187, allocations: 443.8 kB / 0.5931 GB, free: 2.023 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.991e-05/0.6187, allocations: 13.5 kB / 0.5931 GB, free: 2.012 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.6188, allocations: 43.11 kB / 0.5931 GB, free: 1.961 MB / 427.1 MB Notification: Performance of pre-optimization done (n=77): time 3.377e-06/0.6188, allocations: 0 / 0.5931 GB, free: 1.961 MB / 427.1 MB Notification: Performance of matching and sorting (n=79): time 0.004675/0.6235, allocations: 2.477 MB / 0.5955 GB, free: 15.41 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.6236, allocations: 85.67 kB / 0.5956 GB, free: 15.3 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003925/0.624, allocations: 329.1 kB / 0.5959 GB, free: 14.98 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 4.624e-05/0.624, allocations: 25.7 kB / 0.5959 GB, free: 14.95 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002334/0.6243, allocations: 351.8 kB / 0.5963 GB, free: 14.6 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002057/0.6245, allocations: 267.9 kB / 0.5965 GB, free: 14.33 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.584e-05/0.6245, allocations: 0 / 0.5965 GB, free: 14.33 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.6247, allocations: 374.8 kB / 0.5969 GB, free: 13.96 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004879/0.6252, allocations: 362 kB / 0.5972 GB, free: 13.6 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005929/0.6258, allocations: 0.5084 MB / 0.5977 GB, free: 13.04 MB / 443.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.009116/0.6349, allocations: 2.906 MB / 0.6006 GB, free: 10.11 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.6349, allocations: 0 / 0.6006 GB, free: 10.11 MB / 443.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002107/0.6371, allocations: 1.196 MB / 0.6017 GB, free: 8.883 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.6371, allocations: 11.98 kB / 0.6018 GB, free: 8.871 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.6371, allocations: 7.938 kB / 0.6018 GB, free: 8.863 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001524/0.6373, allocations: 32.84 kB / 0.6018 GB, free: 8.828 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008053/0.6381, allocations: 199.7 kB / 0.602 GB, free: 8.633 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001096/0.6392, allocations: 1.331 MB / 0.6033 GB, free: 7.184 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004952/0.6397, allocations: 27.95 kB / 0.6033 GB, free: 7.156 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.521e-05/0.6398, allocations: 35.98 kB / 0.6033 GB, free: 7.121 MB / 443.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: 21 * 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 (93): * Single equations (assignments): 89 * Array equations: 3 * 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.0001841/0.64, allocations: 125 kB / 0.6035 GB, free: 6.992 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.6401, allocations: 71.17 kB / 0.6035 GB, free: 6.922 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002039/0.6421, allocations: 1.132 MB / 0.6046 GB, free: 5.758 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.127e-05/0.6422, allocations: 27.91 kB / 0.6047 GB, free: 5.73 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.6422, allocations: 4 kB / 0.6047 GB, free: 5.727 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.6423, allocations: 3.984 kB / 0.6047 GB, free: 5.723 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003875/0.6461, allocations: 2.075 MB / 0.6067 GB, free: 3.527 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.158e-06/0.6462, allocations: 4 kB / 0.6067 GB, free: 3.523 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007111/0.6469, allocations: 164.3 kB / 0.6069 GB, free: 3.363 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001145/0.647, allocations: 40.83 kB / 0.6069 GB, free: 3.32 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.864e-05/0.6471, allocations: 12 kB / 0.6069 GB, free: 3.309 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001055/0.6481, allocations: 1.326 MB / 0.6082 GB, free: 1.867 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/0.6482, allocations: 7.938 kB / 0.6082 GB, free: 1.859 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002484/0.6506, allocations: 1.898 MB / 0.6101 GB, free: 15.75 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001729/0.6508, allocations: 140.4 kB / 0.6102 GB, free: 15.59 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.363e-05/0.6509, allocations: 7.984 kB / 0.6102 GB, free: 15.58 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003658/0.6513, allocations: 35.89 kB / 0.6102 GB, free: 15.55 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.151e-05/0.6514, allocations: 60.38 kB / 0.6103 GB, free: 15.49 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.131e-05/0.6515, allocations: 24 kB / 0.6103 GB, free: 15.46 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0002926/0.6518, allocations: 255 kB / 0.6106 GB, free: 15.21 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6518, allocations: 0 / 0.6106 GB, free: 15.21 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.0007906/0.6526, allocations: 175.9 kB / 0.6107 GB, free: 15.04 MB / 459.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 71 * Array equations: 3 * 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.0003055/0.6529, allocations: 161 kB / 0.6109 GB, free: 14.88 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.001468/0.6544, allocations: 0.9552 MB / 0.6118 GB, free: 13.91 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.6544, allocations: 8 kB / 0.6118 GB, free: 13.91 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006855/0.6551, allocations: 0.5286 MB / 0.6123 GB, free: 13.37 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006124/0.6557, allocations: 114.7 kB / 0.6125 GB, free: 13.26 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002544/0.6582, allocations: 1.657 MB / 0.6141 GB, free: 11.51 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006555/0.6589, allocations: 1.029 MB / 0.6151 GB, free: 10.45 MB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.000617/0.6595, allocations: 205.2 kB / 0.6153 GB, free: 10.25 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.6597, allocations: 51.42 kB / 0.6153 GB, free: 10.2 MB / 459.1 MB Notification: Performance of SimCode: time 4.7e-07/0.6597, allocations: 0 / 0.6153 GB, free: 10.2 MB / 459.1 MB Notification: Performance of Templates: time 0.0141/0.6738, allocations: 7.256 MB / 0.6224 GB, free: 2.953 MB / 459.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches