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.001523/0.001523, allocations: 110.3 kB / 17.28 MB, free: 6.219 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.001662/0.001662, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.634/1.634, allocations: 222.9 MB / 241.9 MB, free: 15.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.2642/0.2642, allocations: 38.04 MB / 330.1 MB, free: 9.059 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003075/0.003075, allocations: 65.23 kB / 398.9 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1734/0.1765, allocations: 58.06 MB / 457 MB, free: 8.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.0197/0.1963, allocations: 7.794 MB / 464.8 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006963/0.2033, allocations: 2.034 MB / 466.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001671/0.205, allocations: 55.62 kB / 466.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001235/0.2063, allocations: 127.2 kB / 467 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00183/0.2082, allocations: 406.2 kB / 467.4 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001083/0.2093, allocations: 319.6 kB / 467.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002411/0.2118, allocations: 1.508 MB / 469.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000738/0.2125, allocations: 397.7 kB / 469.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001597/0.2142, allocations: 0.5995 MB / 470.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001484/0.2157, allocations: 0.6855 MB / 470.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003728/0.216, allocations: 100 kB / 471 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004042/0.2165, allocations: 96 kB / 471.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006381/0.2171, allocations: 423.1 kB / 471.5 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001194/0.2183, allocations: 470 kB / 472 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00138/0.2197, allocations: 0.9277 MB / 472.9 MB, free: 8.504 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.2197, allocations: 0 / 472.9 MB, free: 8.504 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2197, allocations: 4 kB / 472.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.158e-05/0.2198, allocations: 0 / 472.9 MB, free: 8.5 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.004634/0.2244, allocations: 1.321 MB / 474.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.237e-05/0.2245, allocations: 11.89 kB / 474.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003878/0.2249, allocations: 95.91 kB / 474.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001809/0.2267, allocations: 0.6899 MB / 475 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005591/0.2273, allocations: 342.9 kB / 475.4 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002162/0.2275, allocations: 75.89 kB / 475.4 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002833/0.2304, allocations: 1.141 MB / 476.6 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.2304, allocations: 3.938 kB / 476.6 MB, free: 4.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.319e-05/0.2305, allocations: 24 kB / 476.6 MB, free: 4.609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001557/0.2307, allocations: 41.28 kB / 476.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003122/0.2338, allocations: 1.176 MB / 477.8 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006776/0.2406, allocations: 3.492 MB / 481.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002886/0.2435, allocations: 0.9613 MB / 482.3 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002147/0.2457, allocations: 0.6825 MB / 482.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.018e-05/0.2458, allocations: 12.56 kB / 483 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001979/0.2478, allocations: 0.6811 MB / 483.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 5.55e-06/0.2478, allocations: 0 / 483.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.02331/0.2712, allocations: 5.663 MB / 489.3 MB, free: 7.668 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.259e-05/0.2713, allocations: 85.67 kB / 489.4 MB, free: 7.562 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006903/0.272, allocations: 485.7 kB / 489.9 MB, free: 7.078 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.293e-05/0.2721, allocations: 37.7 kB / 489.9 MB, free: 7.035 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003201/0.2724, allocations: 324.2 kB / 490.2 MB, free: 6.715 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002495/0.2727, allocations: 209.1 kB / 490.4 MB, free: 6.508 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003088/0.273, allocations: 126.3 kB / 490.5 MB, free: 6.379 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.2732, allocations: 366.8 kB / 490.9 MB, free: 6.012 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001177/0.2744, allocations: 0.5129 MB / 491.4 MB, free: 5.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001219/0.2756, allocations: 0.6297 MB / 492 MB, free: 4.828 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.007451/0.2831, allocations: 3.135 MB / 495.2 MB, free: 1.613 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.2831, allocations: 0 / 495.2 MB, free: 1.613 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.01022/0.2933, allocations: 2.494 MB / 497.7 MB, free: 15.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/0.2935, allocations: 53.69 kB / 497.7 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.2935, allocations: 0 / 497.7 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003634/0.2972, allocations: 1.094 MB / 498.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008268/0.298, allocations: 111.8 kB / 498.9 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02322/0.3213, allocations: 6.867 MB / 0.4939 GB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/0.3224, allocations: 83.95 kB / 0.494 GB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002257/0.3226, allocations: 47.97 kB / 0.4941 GB, free: 6.703 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.0008034/0.3234, allocations: 275.3 kB / 0.4943 GB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002267/0.3237, allocations: 55.34 kB / 0.4944 GB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008369/0.3321, allocations: 2.436 MB / 0.4968 GB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.498e-05/0.3321, allocations: 4 kB / 0.4968 GB, free: 3.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.3322, allocations: 4 kB / 0.4968 GB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.704e-05/0.3322, allocations: 11.86 kB / 0.4968 GB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0153/0.3475, allocations: 3.56 MB / 0.5003 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.251e-05/0.3476, allocations: 0 / 0.5003 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007088/0.3483, allocations: 79.89 kB / 0.5003 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3465/0.6948, allocations: 1.082 MB / 0.5014 GB, free: 57.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002138/0.6951, allocations: 20.88 kB / 0.5014 GB, free: 57.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01922/0.7143, allocations: 6.839 MB / 0.5081 GB, free: 55.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.254e-06/0.7144, allocations: 5.5 kB / 0.5081 GB, free: 55.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01484/0.7292, allocations: 3.202 MB / 0.5112 GB, free: 54.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009024/0.7302, allocations: 225.6 kB / 0.5114 GB, free: 54.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002337/0.7304, allocations: 28.53 kB / 0.5115 GB, free: 54.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001235/0.7317, allocations: 100.2 kB / 0.5116 GB, free: 54.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007586/0.7325, allocations: 176.6 kB / 0.5117 GB, free: 54.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.486e-05/0.7326, allocations: 22.25 kB / 0.5117 GB, free: 54.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006825/0.7333, allocations: 323.1 kB / 0.5121 GB, free: 54.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.7333, allocations: 4 kB / 0.5121 GB, free: 54.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001726/0.735, allocations: 223.4 kB / 0.5123 GB, free: 54.08 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.0003443/0.7354, allocations: 134.9 kB / 0.5124 GB, free: 53.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007836/0.7432, allocations: 1.843 MB / 0.5142 GB, free: 53.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.247e-06/0.7433, allocations: 384 / 0.5142 GB, free: 53.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005094/0.7484, allocations: 1.118 MB / 0.5153 GB, free: 53.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001785/0.7502, allocations: 146.6 kB / 0.5154 GB, free: 52.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00544/0.7557, allocations: 2.045 MB / 0.5174 GB, free: 51.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000846/0.7566, allocations: 0.9915 MB / 0.5184 GB, free: 51.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002764/0.7569, allocations: 52.03 kB / 0.5184 GB, free: 51.05 MB / 382.1 MB Notification: Performance of SimCode: time 1.282e-06/0.7569, allocations: 0 / 0.5184 GB, free: 51.05 MB / 382.1 MB Notification: Performance of Templates: time 0.02099/0.7779, allocations: 13.42 MB / 0.5316 GB, free: 41.31 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.mat","/var/lib/jenkins1/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