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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.001439/0.001439, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008058/0.0008059, allocations: 82.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1546/0.1546, allocations: 37.98 MB / 353.5 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.339e-05/3.351e-05, allocations: 4 kB / 417.7 MB, free: 29.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1011, allocations: 56.32 MB / 474.1 MB, free: 4.812 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.36/0.4611, allocations: 101 MB / 0.5616 GB, free: 1.738 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.4614, allocations: 91.75 kB / 0.5617 GB, free: 1.691 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04312/0.5046, allocations: 15.29 MB / 0.5766 GB, free: 4.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.5046, allocations: 0 / 0.5766 GB, free: 4.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.345e-05/0.5047, allocations: 23.98 kB / 0.5766 GB, free: 4.547 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.001395/0.5061, allocations: 0.8003 MB / 0.5774 GB, free: 3.738 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.5061, allocations: 8.031 kB / 0.5774 GB, free: 3.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/0.5063, allocations: 71.11 kB / 0.5775 GB, free: 3.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002731/0.509, allocations: 1.073 MB / 0.5785 GB, free: 2.715 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.333e-05/0.5091, allocations: 39 kB / 0.5786 GB, free: 2.691 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.913e-05/0.5092, allocations: 49.44 kB / 0.5786 GB, free: 2.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009325/0.5101, allocations: 0.6079 MB / 0.5792 GB, free: 2.188 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.5101, allocations: 11.94 kB / 0.5792 GB, free: 2.176 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.765e-05/0.5102, allocations: 17.62 kB / 0.5792 GB, free: 2.172 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.5102, allocations: 15.94 kB / 0.5792 GB, free: 2.156 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007443/0.5109, allocations: 0.5024 MB / 0.5797 GB, free: 1.801 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003055/0.514, allocations: 2.239 MB / 0.5819 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007779/0.5148, allocations: 476.8 kB / 0.5824 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000618/0.5154, allocations: 336.9 kB / 0.5827 GB, free: 15.26 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.15e-05/0.5155, allocations: 4 kB / 0.5827 GB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.5155, allocations: 42.38 kB / 0.5827 GB, free: 15.21 MB / 394.7 MB Notification: Performance of pre-optimization done (n=45): time 3.246e-06/0.5155, allocations: 0 / 0.5827 GB, free: 15.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=47): time 0.002121/0.5176, allocations: 1.334 MB / 0.584 GB, free: 14.08 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.4e-05/0.5177, allocations: 89.14 kB / 0.5841 GB, free: 13.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003716/0.5181, allocations: 360.6 kB / 0.5845 GB, free: 13.68 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.484e-05/0.5181, allocations: 33.52 kB / 0.5845 GB, free: 13.65 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.5183, allocations: 300.6 kB / 0.5848 GB, free: 13.43 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.5185, allocations: 164.6 kB / 0.5849 GB, free: 13.29 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.699e-05/0.5185, allocations: 11.69 kB / 0.585 GB, free: 13.28 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.5186, allocations: 370 kB / 0.5853 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002606/0.5189, allocations: 177.2 kB / 0.5855 GB, free: 12.82 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003453/0.5193, allocations: 294.9 kB / 0.5858 GB, free: 12.55 MB / 394.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.001954/0.5212, allocations: 0.7477 MB / 0.5865 GB, free: 11.92 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.84e-06/0.5213, allocations: 4 kB / 0.5865 GB, free: 11.92 MB / 394.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0011/0.5224, allocations: 0.6858 MB / 0.5872 GB, free: 11.38 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.5224, allocations: 8 kB / 0.5872 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.5224, allocations: 0 / 0.5872 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003752/0.5228, allocations: 137.8 kB / 0.5873 GB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004528/0.5233, allocations: 111.3 kB / 0.5874 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002735/0.526, allocations: 2.341 MB / 0.5897 GB, free: 9.055 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003088/0.5263, allocations: 26.77 kB / 0.5897 GB, free: 9.035 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/0.5264, allocations: 19.38 kB / 0.5897 GB, free: 9.02 MB / 394.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.0001422/0.5265, allocations: 136.2 kB / 0.5899 GB, free: 8.895 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.506e-05/0.5266, allocations: 55.42 kB / 0.5899 GB, free: 8.84 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00114/0.5278, allocations: 0.6313 MB / 0.5905 GB, free: 8.383 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.034e-06/0.5278, allocations: 4 kB / 0.5905 GB, free: 8.379 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/0.5278, allocations: 15.88 kB / 0.5906 GB, free: 8.363 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.5278, allocations: 4 kB / 0.5906 GB, free: 8.359 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002094/0.5299, allocations: 1.345 MB / 0.5919 GB, free: 7.211 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.5299, allocations: 4 kB / 0.5919 GB, free: 7.207 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003527/0.5303, allocations: 75.92 kB / 0.592 GB, free: 7.133 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003847/0.5307, allocations: 139.6 kB / 0.5921 GB, free: 7.02 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.5307, allocations: 15.75 kB / 0.5921 GB, free: 7.012 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002665/0.5334, allocations: 2.336 MB / 0.5944 GB, free: 4.914 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.306e-05/0.5334, allocations: 3.953 kB / 0.5944 GB, free: 4.91 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.5349, allocations: 1.03 MB / 0.5954 GB, free: 4.043 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001558/0.535, allocations: 132.4 kB / 0.5955 GB, free: 3.895 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.063e-05/0.5351, allocations: 10.94 kB / 0.5955 GB, free: 3.891 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002447/0.5354, allocations: 19.55 kB / 0.5955 GB, free: 3.879 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.892e-05/0.5355, allocations: 35.39 kB / 0.5956 GB, free: 3.848 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.291e-05/0.5355, allocations: 19.3 kB / 0.5956 GB, free: 3.832 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003298/0.5358, allocations: 283.2 kB / 0.5959 GB, free: 3.609 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5358, allocations: 0 / 0.5959 GB, free: 3.609 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006848/0.5365, allocations: 160.2 kB / 0.596 GB, free: 3.473 MB / 394.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.0002205/0.5368, allocations: 114.3 kB / 0.5961 GB, free: 3.359 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001068/0.5378, allocations: 0.6359 MB / 0.5967 GB, free: 2.848 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5379, allocations: 0 / 0.5967 GB, free: 2.848 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006247/0.5385, allocations: 424.4 kB / 0.5972 GB, free: 2.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006147/0.5391, allocations: 122.5 kB / 0.5973 GB, free: 2.406 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001858/0.541, allocations: 1.02 MB / 0.5983 GB, free: 1.473 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005771/0.5416, allocations: 0.9474 MB / 0.5992 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004121/0.542, allocations: 108.7 kB / 0.5993 GB, free: 416 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.5421, allocations: 46.55 kB / 0.5993 GB, free: 372 kB / 394.7 MB Notification: Performance of SimCode: time 1.182e-06/0.5421, allocations: 0 / 0.5993 GB, free: 372 kB / 394.7 MB Notification: Performance of Templates: time 0.01277/0.5549, allocations: 6.344 MB / 0.6055 GB, free: 10.04 MB / 410.7 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","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches