Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.InverterToGrid,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.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,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.InverterToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000688/0.0006881, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.0007422/0.0007422, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.175/1.175, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.156/0.156, allocations: 38.08 MB / 330.8 MB, free: 8.523 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002807/0.0002806, allocations: 8 kB / 400.7 MB, free: 34.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08647/0.08676, allocations: 59.16 MB / 459.9 MB, free: 7.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.007068/0.09386, allocations: 7.361 MB / 467.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003177/0.09707, allocations: 2.018 MB / 469.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006469/0.09774, allocations: 51.62 kB / 469.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004832/0.09824, allocations: 131.1 kB / 469.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009143/0.09917, allocations: 406.3 kB / 469.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000647/0.09983, allocations: 315.6 kB / 470.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001742/0.1016, allocations: 2.003 MB / 472.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004027/0.102, allocations: 324.2 kB / 472.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007871/0.1028, allocations: 497.9 kB / 472.9 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009213/0.1037, allocations: 0.6231 MB / 473.6 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001735/0.1039, allocations: 44 kB / 473.6 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001849/0.1041, allocations: 44 kB / 473.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003798/0.1045, allocations: 367 kB / 474 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004995/0.105, allocations: 431.7 kB / 474.4 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008069/0.1058, allocations: 1.109 MB / 475.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1058, allocations: 0 / 475.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1058, allocations: 0 / 475.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.1059, allocations: 0 / 475.5 MB, free: 7.316 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002315/0.1082, allocations: 1.173 MB / 476.7 MB, free: 6.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.1082, allocations: 8.031 kB / 476.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001992/0.1084, allocations: 95.91 kB / 476.8 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/0.1096, allocations: 0.6938 MB / 477.5 MB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004195/0.11, allocations: 359 kB / 477.9 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001412/0.1102, allocations: 64 kB / 477.9 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002402/0.1126, allocations: 1.208 MB / 479.1 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.1126, allocations: 0 / 479.1 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.094e-05/0.1127, allocations: 28 kB / 479.2 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001324/0.1129, allocations: 37.28 kB / 479.2 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002794/0.1157, allocations: 1.293 MB / 480.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005046/0.1207, allocations: 3.551 MB / 484 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002488/0.1232, allocations: 1.055 MB / 485.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00161/0.1249, allocations: 0.745 MB / 485.8 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.273e-05/0.1249, allocations: 8.547 kB / 485.9 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001513/0.1264, allocations: 0.7397 MB / 486.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 2.144e-06/0.1264, allocations: 3.938 kB / 486.6 MB, free: 11.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.02047/0.1469, allocations: 6.983 MB / 493.6 MB, free: 4.859 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.984e-05/0.147, allocations: 89.61 kB / 493.7 MB, free: 4.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005235/0.1475, allocations: 469.8 kB / 494.1 MB, free: 4.281 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.356e-05/0.1476, allocations: 49.69 kB / 494.2 MB, free: 4.227 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002417/0.1479, allocations: 320.2 kB / 494.5 MB, free: 3.906 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001973/0.1481, allocations: 205.1 kB / 494.7 MB, free: 3.703 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.1482, allocations: 69.67 kB / 494.8 MB, free: 3.629 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.1483, allocations: 366.8 kB / 495.1 MB, free: 3.262 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001139/0.1495, allocations: 0.552 MB / 495.7 MB, free: 2.711 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001185/0.1507, allocations: 0.6765 MB / 496.3 MB, free: 1.988 MB / 366.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.006953/0.1576, allocations: 3.383 MB / 499.7 MB, free: 14.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.1577, allocations: 4 kB / 499.7 MB, free: 14.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008043/0.1657, allocations: 3.053 MB / 0.491 GB, free: 11.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.187e-05/0.1658, allocations: 52.03 kB / 0.491 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.1658, allocations: 0 / 0.491 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002467/0.1683, allocations: 1.188 MB / 0.4922 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004792/0.1688, allocations: 115.7 kB / 0.4923 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0156/0.1844, allocations: 7.157 MB / 0.4993 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008094/0.1853, allocations: 116 kB / 0.4994 GB, free: 2.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.1854, allocations: 44.05 kB / 0.4995 GB, free: 2.652 MB / 382.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[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004643/0.1859, allocations: 275.4 kB / 0.4997 GB, free: 2.371 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.186, allocations: 63.23 kB / 0.4998 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1843/0.3703, allocations: 3.002 MB / 0.5027 GB, free: 56.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/0.3704, allocations: 7.594 kB / 0.5027 GB, free: 56.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.3704, allocations: 7.844 kB / 0.5027 GB, free: 56.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.969e-05/0.3704, allocations: 2.812 kB / 0.5027 GB, free: 56.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01051/0.3809, allocations: 4.14 MB / 0.5068 GB, free: 56.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.381, allocations: 1.562 kB / 0.5068 GB, free: 56.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003472/0.3813, allocations: 78.69 kB / 0.5068 GB, free: 56.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002583/0.3839, allocations: 1.192 MB / 0.508 GB, free: 56.13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.243e-05/0.384, allocations: 17.12 kB / 0.508 GB, free: 56.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01509/0.3991, allocations: 7.121 MB / 0.515 GB, free: 53.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.3991, allocations: 2.875 kB / 0.515 GB, free: 53.6 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009539/0.4087, allocations: 3.842 MB / 0.5187 GB, free: 52.69 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003283/0.409, allocations: 220.1 kB / 0.5189 GB, free: 52.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001426/0.4092, allocations: 35.59 kB / 0.519 GB, free: 52.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007609/0.41, allocations: 128 kB / 0.5191 GB, free: 52.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004306/0.4104, allocations: 167.9 kB / 0.5193 GB, free: 52.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.947e-05/0.4105, allocations: 24.23 kB / 0.5193 GB, free: 52.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003501/0.4108, allocations: 326.5 kB / 0.5196 GB, free: 52.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4108, allocations: 0 / 0.5196 GB, free: 52.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008779/0.4117, allocations: 224.4 kB / 0.5198 GB, free: 52.18 MB / 382.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: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001999/0.4119, allocations: 142.7 kB / 0.5199 GB, free: 52.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004283/0.4162, allocations: 1.946 MB / 0.5218 GB, free: 51.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.4162, allocations: 4 kB / 0.5219 GB, free: 51.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003021/0.4193, allocations: 1.27 MB / 0.5231 GB, free: 50.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009359/0.4202, allocations: 152.7 kB / 0.5232 GB, free: 50.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002574/0.4228, allocations: 2.065 MB / 0.5253 GB, free: 48.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.4232, allocations: 0.9931 MB / 0.5262 GB, free: 47.17 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000346/0.4236, allocations: 125.8 kB / 0.5263 GB, free: 47.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.4237, allocations: 47.42 kB / 0.5264 GB, free: 47 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4237, allocations: 4 kB / 0.5264 GB, free: 46.99 MB / 382.1 MB Notification: Performance of Templates: time 0.01789/0.4416, allocations: 15.49 MB / 0.5415 GB, free: 31.6 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches