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.001682/0.001682, allocations: 111.1 kB / 17.74 MB, free: 5.312 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.001777/0.001777, allocations: 188.2 kB / 18.67 MB, free: 4.391 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.362/1.362, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.177/0.177, allocations: 38.04 MB / 330.6 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 63.89 kB / 458.8 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3384, allocations: 58.05 MB / 0.5048 GB, free: 7.781 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007223/0.3457, allocations: 6.091 MB / 0.5107 GB, free: 3.547 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002559/0.3483, allocations: 1.417 MB / 0.5121 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004366/0.3487, allocations: 27.81 kB / 0.5121 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005466/0.3493, allocations: 133.3 kB / 0.5122 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009419/0.3503, allocations: 384.6 kB / 0.5126 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006186/0.3509, allocations: 195.7 kB / 0.5128 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001303/0.3522, allocations: 0.9211 MB / 0.5137 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004305/0.3527, allocations: 277.7 kB / 0.514 GB, free: 1.637 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007946/0.3535, allocations: 418.5 kB / 0.5144 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008183/0.3543, allocations: 460.4 kB / 0.5148 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.953e-05/0.3544, allocations: 47.34 kB / 0.5148 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001486/0.3546, allocations: 48.09 kB / 0.5149 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003238/0.3549, allocations: 265.8 kB / 0.5151 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003423/0.3552, allocations: 322.4 kB / 0.5155 GB, free: 1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008834/0.3561, allocations: 0.6644 MB / 0.5161 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3561, allocations: 1.125 kB / 0.5161 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.3561, allocations: 4.703 kB / 0.5161 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.374e-05/0.3562, allocations: 0 / 0.5161 GB, free: 0.7383 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.001842/0.358, allocations: 0.9574 MB / 0.517 GB, free: 64 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.3581, allocations: 13.33 kB / 0.5171 GB, free: 60 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001643/0.3582, allocations: 68.31 kB / 0.5171 GB, free: 24 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001182/0.3594, allocations: 0.5587 MB / 0.5177 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.228e-05/0.3595, allocations: 40.19 kB / 0.5177 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.3596, allocations: 53.12 kB / 0.5178 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001242/0.3609, allocations: 0.6283 MB / 0.5184 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.3609, allocations: 1.25 kB / 0.5184 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.734e-05/0.361, allocations: 20.91 kB / 0.5184 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001208/0.3611, allocations: 34.17 kB / 0.5184 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000879/0.362, allocations: 0.5042 MB / 0.5189 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003366/0.3654, allocations: 2.221 MB / 0.5211 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009242/0.3663, allocations: 497 kB / 0.5216 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000708/0.367, allocations: 356.2 kB / 0.5219 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.132e-05/0.3671, allocations: 7.766 kB / 0.5219 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.621e-05/0.3671, allocations: 43.67 kB / 0.5219 GB, free: 13.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.234e-06/0.3671, allocations: 3.938 kB / 0.522 GB, free: 13.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003651/0.3708, allocations: 1.744 MB / 0.5237 GB, free: 12.42 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.756e-05/0.3709, allocations: 86.78 kB / 0.5237 GB, free: 12.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005279/0.3714, allocations: 425.3 kB / 0.5241 GB, free: 12.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/0.3714, allocations: 31.64 kB / 0.5242 GB, free: 12.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002212/0.3717, allocations: 300.3 kB / 0.5245 GB, free: 11.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.3718, allocations: 164.3 kB / 0.5246 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001598/0.372, allocations: 98.42 kB / 0.5247 GB, free: 11.65 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.3722, allocations: 360.6 kB / 0.5251 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003/0.3725, allocations: 186.6 kB / 0.5252 GB, free: 11.26 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000377/0.3729, allocations: 311.1 kB / 0.5255 GB, free: 11.05 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.002749/0.3756, allocations: 1.233 MB / 0.5267 GB, free: 10.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.3756, allocations: 1.594 kB / 0.5267 GB, free: 10.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001295/0.3769, allocations: 0.7118 MB / 0.5274 GB, free: 10.19 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.377, allocations: 10.22 kB / 0.5274 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.377, allocations: 3.125 kB / 0.5274 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004118/0.3774, allocations: 135 kB / 0.5276 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000476/0.3779, allocations: 112.7 kB / 0.5277 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003124/0.381, allocations: 2.61 MB / 0.5302 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004355/0.3815, allocations: 25.06 kB / 0.5303 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.955e-05/0.3815, allocations: 20.52 kB / 0.5303 GB, free: 8.191 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.0003828/0.3819, allocations: 234.8 kB / 0.5305 GB, free: 8.016 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.444e-05/0.382, allocations: 55.44 kB / 0.5305 GB, free: 7.984 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00121/0.3832, allocations: 0.6503 MB / 0.5312 GB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.3833, allocations: 6.75 kB / 0.5312 GB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-05/0.3833, allocations: 2.562 kB / 0.5312 GB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.3833, allocations: 6.328 kB / 0.5312 GB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002344/0.3856, allocations: 1.369 MB / 0.5325 GB, free: 6.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.3857, allocations: 5.109 kB / 0.5325 GB, free: 6.926 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003518/0.386, allocations: 72.28 kB / 0.5326 GB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004101/0.3864, allocations: 147.8 kB / 0.5327 GB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.76e-05/0.3865, allocations: 13.69 kB / 0.5328 GB, free: 6.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00288/0.3894, allocations: 2.625 MB / 0.5353 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.3894, allocations: 1.312 kB / 0.5353 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001472/0.3909, allocations: 0.9896 MB / 0.5363 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.3911, allocations: 127.7 kB / 0.5364 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.136e-05/0.3911, allocations: 17.69 kB / 0.5364 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002683/0.3914, allocations: 19.3 kB / 0.5365 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.995e-05/0.3915, allocations: 40.95 kB / 0.5365 GB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.992e-05/0.3915, allocations: 10.22 kB / 0.5365 GB, free: 3.855 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003729/0.3919, allocations: 292.9 kB / 0.5368 GB, free: 3.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3919, allocations: 0 / 0.5368 GB, free: 3.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007442/0.3927, allocations: 143.5 kB / 0.5369 GB, free: 3.664 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.0001509/0.3928, allocations: 121.1 kB / 0.537 GB, free: 3.555 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.394, allocations: 0.6569 MB / 0.5377 GB, free: 3.188 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.394, allocations: 0 / 0.5377 GB, free: 3.188 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006736/0.3947, allocations: 445 kB / 0.5381 GB, free: 2.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007865/0.3955, allocations: 139 kB / 0.5382 GB, free: 2.832 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002238/0.3978, allocations: 1.376 MB / 0.5396 GB, free: 1.922 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005556/0.3983, allocations: 0.9277 MB / 0.5405 GB, free: 1.109 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.3985, allocations: 44.06 kB / 0.5405 GB, free: 1.102 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3985, allocations: 0 / 0.5405 GB, free: 1.102 MB / 398.1 MB Notification: Performance of Templates: time 0.01274/0.4112, allocations: 9.189 MB / 0.5495 GB, free: 9.762 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mat","/var/lib/jenkins1/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