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.001456/0.001462, allocations: 109.2 kB / 16.51 MB, free: 6.707 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.001435/0.001435, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.394/1.394, allocations: 222.9 MB / 241.1 MB, free: 15.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1741/0.1741, allocations: 38.04 MB / 329.3 MB, free: 9.059 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 67.28 kB / 398.1 MB, free: 34.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1192, allocations: 58.05 MB / 456.2 MB, free: 8.555 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.01273/0.132, allocations: 7.802 MB / 464 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00524/0.1373, allocations: 2.03 MB / 466 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008069/0.1381, allocations: 55.62 kB / 466 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006608/0.1388, allocations: 135.1 kB / 466.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001227/0.1401, allocations: 410.2 kB / 466.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.1411, allocations: 319.6 kB / 466.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002749/0.1439, allocations: 1.999 MB / 468.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007553/0.1447, allocations: 332.2 kB / 469.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00125/0.1459, allocations: 0.5136 MB / 469.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001489/0.1474, allocations: 0.6582 MB / 470.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001937/0.1477, allocations: 60 kB / 470.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002495/0.1479, allocations: 52 kB / 470.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006555/0.1486, allocations: 375 kB / 470.9 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007299/0.1494, allocations: 422 kB / 471.3 MB, free: 9.379 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001658/0.151, allocations: 1.133 MB / 472.4 MB, free: 8.242 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1511, allocations: 0 / 472.4 MB, free: 8.242 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1511, allocations: 0 / 472.4 MB, free: 8.242 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.1511, allocations: 0 / 472.4 MB, free: 8.242 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.004682/0.1558, allocations: 1.309 MB / 473.7 MB, free: 6.871 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.1559, allocations: 16.03 kB / 473.7 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003254/0.1562, allocations: 95.91 kB / 473.8 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00239/0.1586, allocations: 0.6937 MB / 474.5 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008078/0.1594, allocations: 343 kB / 474.9 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002241/0.1597, allocations: 71.89 kB / 474.9 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004308/0.164, allocations: 1.145 MB / 476.1 MB, free: 4.387 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.637e-05/0.1641, allocations: 0 / 476.1 MB, free: 4.387 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001546/0.1642, allocations: 32 kB / 476.1 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002027/0.1645, allocations: 37.28 kB / 476.1 MB, free: 4.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00526/0.1697, allocations: 1.18 MB / 477.3 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00966/0.1794, allocations: 3.488 MB / 480.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004684/0.1841, allocations: 0.9689 MB / 481.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003194/0.1874, allocations: 0.6826 MB / 482.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.191e-05/0.1875, allocations: 4.562 kB / 482.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003012/0.1905, allocations: 0.6888 MB / 483.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 4.669e-06/0.1906, allocations: 0 / 483.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.03655/0.2271, allocations: 5.663 MB / 488.8 MB, free: 7.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.2273, allocations: 85.67 kB / 488.9 MB, free: 7.305 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/0.2283, allocations: 477.8 kB / 489.4 MB, free: 6.828 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001654/0.2285, allocations: 41.7 kB / 489.4 MB, free: 6.781 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000422/0.229, allocations: 324.2 kB / 489.7 MB, free: 6.457 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003598/0.2293, allocations: 197.1 kB / 489.9 MB, free: 6.262 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004177/0.2298, allocations: 138.3 kB / 490 MB, free: 6.121 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002102/0.23, allocations: 370.8 kB / 490.4 MB, free: 5.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001934/0.232, allocations: 0.5051 MB / 490.9 MB, free: 5.246 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00211/0.2341, allocations: 0.6219 MB / 491.5 MB, free: 4.578 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.01227/0.2464, allocations: 3.135 MB / 494.7 MB, free: 1.363 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.2464, allocations: 0 / 494.7 MB, free: 1.363 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.01007/0.2565, allocations: 2.494 MB / 497.2 MB, free: 14.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.003e-05/0.2566, allocations: 53.84 kB / 497.2 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/0.2566, allocations: 4 kB / 497.2 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002437/0.2591, allocations: 1.09 MB / 498.3 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005491/0.2596, allocations: 107.8 kB / 498.4 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.015/0.2746, allocations: 6.305 MB / 0.4929 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008307/0.2755, allocations: 83.95 kB / 0.493 GB, free: 7.074 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/0.2756, allocations: 51.89 kB / 0.493 GB, free: 7.023 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 system: 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.0005274/0.2762, allocations: 275.4 kB / 0.4933 GB, free: 6.742 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001602/0.2763, allocations: 59.25 kB / 0.4933 GB, free: 6.684 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007603/0.284, allocations: 2.425 MB / 0.4957 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/0.284, allocations: 12 kB / 0.4957 GB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.284, allocations: 3.938 kB / 0.4957 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-05/0.284, allocations: 3.984 kB / 0.4957 GB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009892/0.2939, allocations: 3.564 MB / 0.4992 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.208e-05/0.294, allocations: 0 / 0.4992 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004316/0.2944, allocations: 79.84 kB / 0.4993 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.219/0.5134, allocations: 1.085 MB / 0.5003 GB, free: 57.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001492/0.5136, allocations: 17.11 kB / 0.5004 GB, free: 57.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01406/0.5277, allocations: 6.265 MB / 0.5065 GB, free: 55.31 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.5277, allocations: 3.078 kB / 0.5065 GB, free: 55.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009012/0.5367, allocations: 3.2 MB / 0.5096 GB, free: 54.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003597/0.5371, allocations: 223.6 kB / 0.5098 GB, free: 54.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001329/0.5372, allocations: 32.98 kB / 0.5099 GB, free: 54.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007376/0.538, allocations: 100.3 kB / 0.5099 GB, free: 54.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004356/0.5384, allocations: 166.1 kB / 0.5101 GB, free: 54.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.801e-05/0.5385, allocations: 22.95 kB / 0.5101 GB, free: 54.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004252/0.5389, allocations: 329.6 kB / 0.5104 GB, free: 54.22 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5389, allocations: 0 / 0.5104 GB, free: 54.22 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008232/0.5398, allocations: 229.2 kB / 0.5107 GB, free: 54.2 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.000156/0.5399, allocations: 134.6 kB / 0.5108 GB, free: 54.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004035/0.544, allocations: 1.72 MB / 0.5125 GB, free: 53.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.544, allocations: 0 / 0.5125 GB, free: 53.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002941/0.5469, allocations: 1.105 MB / 0.5135 GB, free: 53.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009051/0.5479, allocations: 148 kB / 0.5137 GB, free: 53.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003316/0.5512, allocations: 1.969 MB / 0.5156 GB, free: 52.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005897/0.5518, allocations: 0.9939 MB / 0.5166 GB, free: 51.28 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004698/0.5523, allocations: 128.8 kB / 0.5167 GB, free: 51.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.5524, allocations: 45.03 kB / 0.5167 GB, free: 51.25 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5524, allocations: 0 / 0.5167 GB, free: 51.25 MB / 382.1 MB Notification: Performance of Templates: time 0.02221/0.5746, allocations: 15.65 MB / 0.532 GB, free: 39.97 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile (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) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches