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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 106.1 kB / 17.06 MB, free: 6 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.001085/0.001085, allocations: 191 kB / 18 MB, free: 5.086 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.498/1.498, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1801/0.1801, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001394, allocations: 67.89 kB / 458.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4241/0.4255, allocations: 58.05 MB / 0.5041 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.0071/0.4326, allocations: 6.488 MB / 0.5104 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003409/0.4361, allocations: 1.869 MB / 0.5123 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004985/0.4366, allocations: 33.06 kB / 0.5123 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001232/0.4378, allocations: 452.2 kB / 0.5127 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009293/0.4388, allocations: 420.3 kB / 0.5131 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001001/0.4398, allocations: 354.5 kB / 0.5135 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001262/0.4411, allocations: 1.027 MB / 0.5145 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000731/0.4418, allocations: 0.4974 MB / 0.515 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007856/0.4426, allocations: 468.7 kB / 0.5154 GB, free: 452 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008402/0.4435, allocations: 0.574 MB / 0.516 GB, free: 236 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001165/0.4436, allocations: 66.06 kB / 0.516 GB, free: 236 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006169/0.4442, allocations: 259.9 kB / 0.5163 GB, free: 172 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004746/0.4447, allocations: 376.2 kB / 0.5166 GB, free: 36 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005529/0.4453, allocations: 422.3 kB / 0.517 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00146/0.4467, allocations: 1.039 MB / 0.518 GB, free: 15.4 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.716e-06/0.4468, allocations: 0 / 0.518 GB, free: 15.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.4468, allocations: 1.531 kB / 0.518 GB, free: 15.4 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.4468, allocations: 0 / 0.518 GB, free: 15.4 MB / 398.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.002046/0.4488, allocations: 1.121 MB / 0.5191 GB, free: 14.65 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.4489, allocations: 13.8 kB / 0.5192 GB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006963/0.4496, allocations: 133.2 kB / 0.5193 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.4507, allocations: 0.6096 MB / 0.5199 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.782e-05/0.4507, allocations: 52.62 kB / 0.5199 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001992/0.4509, allocations: 70.17 kB / 0.52 GB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.4526, allocations: 1.011 MB / 0.521 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.4526, allocations: 9.125 kB / 0.521 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.702e-05/0.4527, allocations: 22.41 kB / 0.521 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002015/0.4529, allocations: 76.55 kB / 0.5211 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.4545, allocations: 0.9725 MB / 0.522 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005212/0.4597, allocations: 3.257 MB / 0.5252 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.461, allocations: 0.6913 MB / 0.5259 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007631/0.4617, allocations: 429.9 kB / 0.5263 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.451e-05/0.4618, allocations: 11.64 kB / 0.5263 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.534e-05/0.4619, allocations: 38.59 kB / 0.5264 GB, free: 10.99 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 3.066e-06/0.4619, allocations: 0 / 0.5264 GB, free: 10.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=75): time 0.00432/0.4662, allocations: 2.438 MB / 0.5287 GB, free: 9.703 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.493e-05/0.4663, allocations: 84.48 kB / 0.5288 GB, free: 9.609 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000559/0.4669, allocations: 440.4 kB / 0.5292 GB, free: 9.402 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.273e-05/0.4669, allocations: 44.33 kB / 0.5293 GB, free: 9.355 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000259/0.4672, allocations: 354.7 kB / 0.5296 GB, free: 9.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002356/0.4674, allocations: 260.3 kB / 0.5299 GB, free: 8.867 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002465/0.4677, allocations: 153.6 kB / 0.53 GB, free: 8.781 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.4679, allocations: 379.5 kB / 0.5304 GB, free: 8.418 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005464/0.4684, allocations: 338.6 kB / 0.5307 GB, free: 8.262 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007236/0.4692, allocations: 0.5211 MB / 0.5312 GB, free: 7.871 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.005459/0.4746, allocations: 2.242 MB / 0.5334 GB, free: 6.594 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.4746, allocations: 1 kB / 0.5334 GB, free: 6.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00204/0.4767, allocations: 1.098 MB / 0.5345 GB, free: 5.992 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.4767, allocations: 7.688 kB / 0.5345 GB, free: 5.992 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.4768, allocations: 4.906 kB / 0.5345 GB, free: 5.992 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001802/0.4769, allocations: 39.33 kB / 0.5345 GB, free: 5.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008085/0.4778, allocations: 195.8 kB / 0.5347 GB, free: 5.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001353/0.4791, allocations: 1.497 MB / 0.5362 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005612/0.4797, allocations: 35.94 kB / 0.5362 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.612e-05/0.4798, allocations: 36.2 kB / 0.5362 GB, free: 4.379 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[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 (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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005123/0.4803, allocations: 278.2 kB / 0.5365 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001393/0.4804, allocations: 61.12 kB / 0.5366 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001622/0.4821, allocations: 0.9706 MB / 0.5375 GB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-05/0.4821, allocations: 17.72 kB / 0.5375 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.4821, allocations: 1.219 kB / 0.5375 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.4821, allocations: 7.922 kB / 0.5375 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003527/0.4857, allocations: 2 MB / 0.5395 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.288e-06/0.4857, allocations: 8.219 kB / 0.5395 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006988/0.4864, allocations: 151.1 kB / 0.5396 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001398/0.4866, allocations: 41.45 kB / 0.5397 GB, free: 2.102 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.168e-05/0.4866, allocations: 23 kB / 0.5397 GB, free: 2.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001376/0.488, allocations: 1.493 MB / 0.5412 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-05/0.488, allocations: 13.44 kB / 0.5412 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002585/0.4906, allocations: 1.534 MB / 0.5427 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002944/0.4909, allocations: 135.4 kB / 0.5428 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.969e-05/0.491, allocations: 22.31 kB / 0.5428 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003846/0.4914, allocations: 29.97 kB / 0.5428 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.4916, allocations: 66.98 kB / 0.5429 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.794e-05/0.4916, allocations: 23.53 kB / 0.5429 GB, free: 15.37 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003863/0.492, allocations: 298.6 kB / 0.5432 GB, free: 15.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.492, allocations: 0 / 0.5432 GB, free: 15.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009373/0.493, allocations: 186.5 kB / 0.5434 GB, free: 15.16 MB / 414.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 (75): * Single equations (assignments): 71 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003438/0.4933, allocations: 167.3 kB / 0.5436 GB, free: 15.02 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001702/0.495, allocations: 0.9621 MB / 0.5445 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.4951, allocations: 4.375 kB / 0.5445 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007847/0.4959, allocations: 0.5287 MB / 0.545 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009075/0.4968, allocations: 142.8 kB / 0.5451 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003114/0.4999, allocations: 1.97 MB / 0.5471 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007126/0.5006, allocations: 1.02 MB / 0.5481 GB, free: 10.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005769/0.5012, allocations: 209.3 kB / 0.5483 GB, free: 10.06 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/0.5014, allocations: 55.42 kB / 0.5483 GB, free: 10.01 MB / 414.1 MB Notification: Performance of SimCode: time 1.873e-06/0.5014, allocations: 0 / 0.5483 GB, free: 10.01 MB / 414.1 MB Notification: Performance of Templates: time 0.01587/0.5173, allocations: 8.187 MB / 0.5563 GB, free: 1.875 MB / 414.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches