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.0007814/0.0007815, allocations: 95.12 kB / 16.65 MB, free: 6.598 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.0007937/0.000794, allocations: 181.6 kB / 17.56 MB, free: 6.203 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.302/1.302, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2424/0.2424, allocations: 38.09 MB / 330.8 MB, free: 8.523 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004014/0.0004015, allocations: 8.812 kB / 400.7 MB, free: 34.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1013, allocations: 59.16 MB / 459.9 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.008397/0.1097, allocations: 6.913 MB / 466.8 MB, free: 116 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004319/0.1141, allocations: 1.773 MB / 468.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000976/0.1151, allocations: 43.69 kB / 468.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006246/0.1157, allocations: 115.2 kB / 468.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001087/0.1168, allocations: 362.4 kB / 469.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005627/0.1174, allocations: 167.8 kB / 469.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001487/0.1189, allocations: 1.383 MB / 470.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003913/0.1193, allocations: 229.5 kB / 470.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007055/0.12, allocations: 334.3 kB / 471.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008546/0.1209, allocations: 474.4 kB / 471.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.121, allocations: 24 kB / 471.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001511/0.1212, allocations: 28 kB / 471.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002682/0.1215, allocations: 239.3 kB / 471.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003731/0.1218, allocations: 324 kB / 472.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005944/0.1224, allocations: 0.6265 MB / 472.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1225, allocations: 0 / 472.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1225, allocations: 0 / 472.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.16e-05/0.1225, allocations: 0 / 472.9 MB, free: 10.02 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001685/0.1242, allocations: 0.8551 MB / 473.7 MB, free: 9.109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.1242, allocations: 8.031 kB / 473.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001457/0.1244, allocations: 64.19 kB / 473.8 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008919/0.1253, allocations: 0.5219 MB / 474.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.364e-05/0.1254, allocations: 41.12 kB / 474.3 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.1255, allocations: 55.89 kB / 474.4 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000982/0.1265, allocations: 0.621 MB / 475 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.1265, allocations: 7.938 kB / 475 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.208e-05/0.1265, allocations: 20 kB / 475.1 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/0.1267, allocations: 32.97 kB / 475.1 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008282/0.1275, allocations: 0.5074 MB / 475.6 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003031/0.1305, allocations: 2.241 MB / 477.8 MB, free: 4.816 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008643/0.1314, allocations: 0.4892 MB / 478.3 MB, free: 4.309 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005979/0.132, allocations: 337.6 kB / 478.7 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.1321, allocations: 4 kB / 478.7 MB, free: 3.969 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.1321, allocations: 46.5 kB / 478.7 MB, free: 3.914 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.693e-06/0.1321, allocations: 0 / 478.7 MB, free: 3.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.003443/0.1356, allocations: 1.753 MB / 480.5 MB, free: 2.086 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/0.1356, allocations: 89.05 kB / 480.5 MB, free: 1.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004371/0.1361, allocations: 413.9 kB / 480.9 MB, free: 1.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.457e-05/0.1361, allocations: 33.7 kB / 481 MB, free: 1.531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002135/0.1363, allocations: 296.4 kB / 481.3 MB, free: 1.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/0.1365, allocations: 165.6 kB / 481.4 MB, free: 1.074 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.785e-05/0.1366, allocations: 45.7 kB / 481.5 MB, free: 1.023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1367, allocations: 374.8 kB / 481.8 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002818/0.137, allocations: 181 kB / 482 MB, free: 484 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003638/0.1374, allocations: 307.6 kB / 482.3 MB, free: 128 kB / 350.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.002603/0.14, allocations: 1.241 MB / 483.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.14, allocations: 0 / 483.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001182/0.1412, allocations: 0.7148 MB / 484.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.1412, allocations: 12.03 kB / 484.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.1412, allocations: 4 kB / 484.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003817/0.1416, allocations: 132.8 kB / 484.4 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004384/0.1421, allocations: 115.8 kB / 484.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002805/0.1449, allocations: 2.389 MB / 486.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003293/0.1452, allocations: 24.02 kB / 486.9 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.515e-05/0.1453, allocations: 20 kB / 487 MB, free: 11.25 MB / 366.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: 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.0003023/0.1456, allocations: 225.7 kB / 487.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.504e-05/0.1457, allocations: 47.38 kB / 487.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001106/0.1468, allocations: 0.6658 MB / 487.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.1468, allocations: 4 kB / 487.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1468, allocations: 4 kB / 487.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.1468, allocations: 3.984 kB / 487.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002015/0.1488, allocations: 1.381 MB / 489.3 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.1489, allocations: 4.031 kB / 489.3 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003333/0.1492, allocations: 71.91 kB / 489.4 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003934/0.1496, allocations: 144.7 kB / 489.5 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.254e-05/0.1497, allocations: 15.98 kB / 489.5 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002493/0.1522, allocations: 2.376 MB / 491.9 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.1522, allocations: 3.938 kB / 491.9 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/0.1536, allocations: 0.9847 MB / 492.9 MB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001107/0.1537, allocations: 124.5 kB / 493 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.101e-05/0.1538, allocations: 20.03 kB / 493 MB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.154, allocations: 11.98 kB / 493 MB, free: 4.879 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.244e-05/0.1541, allocations: 39.95 kB / 493.1 MB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.749e-05/0.1541, allocations: 15.94 kB / 493.1 MB, free: 4.824 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002861/0.1544, allocations: 295.1 kB / 493.4 MB, free: 4.535 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1544, allocations: 0 / 493.4 MB, free: 4.535 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005945/0.155, allocations: 144 kB / 493.5 MB, free: 4.395 MB / 366.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.0001401/0.1552, allocations: 117.1 kB / 493.6 MB, free: 4.273 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.1563, allocations: 0.6531 MB / 494.3 MB, free: 3.605 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.1563, allocations: 0 / 494.3 MB, free: 3.605 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006257/0.1569, allocations: 442.6 kB / 494.7 MB, free: 3.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008153/0.1577, allocations: 132.6 kB / 494.9 MB, free: 3.035 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/0.1599, allocations: 1.629 MB / 496.5 MB, free: 1.355 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005151/0.1604, allocations: 0.9294 MB / 497.4 MB, free: 408 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000325/0.1607, allocations: 108.7 kB / 497.5 MB, free: 300 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.1609, allocations: 39.42 kB / 497.6 MB, free: 260 kB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1609, allocations: 0 / 497.6 MB, free: 260 kB / 366.1 MB Notification: Performance of Templates: time 0.01119/0.1721, allocations: 6.398 MB / 0.4921 GB, free: 9.918 MB / 382.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