Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 104.2 kB / 17.06 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.002038/0.002039, allocations: 191 kB / 18 MB, free: 5.078 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.469/1.469, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1818/0.1818, allocations: 38.05 MB / 329.9 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 55.91 kB / 458.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4148/0.4167, allocations: 58.06 MB / 0.5041 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007555/0.4243, allocations: 6.1 MB / 0.5101 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002906/0.4272, allocations: 1.403 MB / 0.5114 GB, free: 2.531 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000388/0.4276, allocations: 27.5 kB / 0.5115 GB, free: 2.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000592/0.4282, allocations: 142.5 kB / 0.5116 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009803/0.4293, allocations: 385.9 kB / 0.512 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006043/0.4299, allocations: 195.9 kB / 0.5121 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.4311, allocations: 0.9224 MB / 0.5131 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005136/0.4317, allocations: 275.9 kB / 0.5133 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007419/0.4324, allocations: 418 kB / 0.5137 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007876/0.4332, allocations: 465.3 kB / 0.5142 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.17e-05/0.4333, allocations: 47.34 kB / 0.5142 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001288/0.4334, allocations: 51.09 kB / 0.5142 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002996/0.4338, allocations: 258.8 kB / 0.5145 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003339/0.4341, allocations: 325.9 kB / 0.5148 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009699/0.4351, allocations: 0.6731 MB / 0.5155 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.4351, allocations: 0 / 0.5155 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4351, allocations: 1.125 kB / 0.5155 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.4351, allocations: 0 / 0.5155 GB, free: 0.7109 MB / 382.1 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.001862/0.437, allocations: 0.9568 MB / 0.5164 GB, free: 36 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/0.437, allocations: 17.02 kB / 0.5164 GB, free: 28 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001926/0.4372, allocations: 69.73 kB / 0.5165 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/0.4384, allocations: 0.5533 MB / 0.517 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.082e-05/0.4385, allocations: 42 kB / 0.5171 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.4386, allocations: 48.88 kB / 0.5171 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.4398, allocations: 0.6244 MB / 0.5177 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.4399, allocations: 1.125 kB / 0.5177 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.346e-05/0.4399, allocations: 20.72 kB / 0.5177 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001177/0.44, allocations: 33.16 kB / 0.5178 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008853/0.4409, allocations: 0.5059 MB / 0.5183 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003361/0.4443, allocations: 2.222 MB / 0.5204 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009142/0.4452, allocations: 0.4965 MB / 0.5209 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000712/0.446, allocations: 351.2 kB / 0.5213 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.289e-05/0.446, allocations: 8.672 kB / 0.5213 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.219e-05/0.4461, allocations: 38.41 kB / 0.5213 GB, free: 13.31 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.524e-06/0.4461, allocations: 4 kB / 0.5213 GB, free: 13.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003591/0.4497, allocations: 1.736 MB / 0.523 GB, free: 12.4 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.4497, allocations: 87.14 kB / 0.5231 GB, free: 12.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005451/0.4503, allocations: 425.6 kB / 0.5235 GB, free: 12.1 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.067e-05/0.4504, allocations: 39.86 kB / 0.5235 GB, free: 12.05 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002412/0.4506, allocations: 296 kB / 0.5238 GB, free: 11.81 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.4508, allocations: 160.4 kB / 0.524 GB, free: 11.69 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.4509, allocations: 98.48 kB / 0.5241 GB, free: 11.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.4511, allocations: 363.8 kB / 0.5244 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003429/0.4515, allocations: 182.7 kB / 0.5246 GB, free: 11.24 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004243/0.4519, allocations: 311 kB / 0.5249 GB, free: 11.04 MB / 398.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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002855/0.4548, allocations: 1.238 MB / 0.5261 GB, free: 10.46 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4548, allocations: 0.7031 kB / 0.5261 GB, free: 10.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001251/0.4561, allocations: 0.7125 MB / 0.5268 GB, free: 10.17 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.4561, allocations: 6.531 kB / 0.5268 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.4561, allocations: 4.594 kB / 0.5268 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004235/0.4565, allocations: 137.4 kB / 0.5269 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004584/0.457, allocations: 112.7 kB / 0.527 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003254/0.4603, allocations: 2.605 MB / 0.5296 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003758/0.4607, allocations: 29.53 kB / 0.5296 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.249e-05/0.4607, allocations: 20.89 kB / 0.5296 GB, free: 8.164 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000381/0.4611, allocations: 230 kB / 0.5298 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.4612, allocations: 55.31 kB / 0.5299 GB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001198/0.4624, allocations: 0.6519 MB / 0.5305 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.789e-06/0.4624, allocations: 4.844 kB / 0.5305 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4625, allocations: 8.625 kB / 0.5305 GB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.749e-06/0.4625, allocations: 10.42 kB / 0.5306 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002305/0.4648, allocations: 1.37 MB / 0.5319 GB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.4648, allocations: 6.312 kB / 0.5319 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003544/0.4652, allocations: 79.36 kB / 0.532 GB, free: 6.891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004223/0.4656, allocations: 144.4 kB / 0.5321 GB, free: 6.824 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.709e-05/0.4656, allocations: 21.64 kB / 0.5321 GB, free: 6.809 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002743/0.4684, allocations: 2.601 MB / 0.5347 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.4684, allocations: 2.5 kB / 0.5347 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001456/0.4699, allocations: 0.9957 MB / 0.5356 GB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000155/0.47, allocations: 128.8 kB / 0.5358 GB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.874e-05/0.4701, allocations: 8.719 kB / 0.5358 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002414/0.4704, allocations: 23.61 kB / 0.5358 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.415e-05/0.4704, allocations: 32.95 kB / 0.5358 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.431e-05/0.4705, allocations: 19.2 kB / 0.5358 GB, free: 3.852 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003472/0.4708, allocations: 288.4 kB / 0.5361 GB, free: 3.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4708, allocations: 4 kB / 0.5361 GB, free: 3.676 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006883/0.4715, allocations: 144 kB / 0.5363 GB, free: 3.66 MB / 398.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000146/0.4717, allocations: 120.4 kB / 0.5364 GB, free: 3.551 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001144/0.4728, allocations: 0.6566 MB / 0.537 GB, free: 3.184 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.4729, allocations: 0 / 0.537 GB, free: 3.184 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006653/0.4735, allocations: 437.1 kB / 0.5374 GB, free: 2.914 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007293/0.4743, allocations: 142.1 kB / 0.5376 GB, free: 2.832 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002185/0.4765, allocations: 1.319 MB / 0.5389 GB, free: 1.977 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005675/0.477, allocations: 0.9287 MB / 0.5398 GB, free: 1.164 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000337/0.4774, allocations: 105.3 kB / 0.5399 GB, free: 1.113 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.4775, allocations: 45.52 kB / 0.5399 GB, free: 1.102 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4775, allocations: 0 / 0.5399 GB, free: 1.102 MB / 398.1 MB Notification: Performance of Templates: time 0.01336/0.4909, allocations: 6.859 MB / 0.5466 GB, free: 12.18 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches