Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001756/0.001763, allocations: 186.5 kB / 17.27 MB, free: 4.48 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.635/1.635, allocations: 205.1 MB / 223.1 MB, free: 8.488 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.00106/0.00106, allocations: 103.3 kB / 270.5 MB, free: 8.434 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1864/0.1864, allocations: 38.01 MB / 355.8 MB, free: 2.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009873/0.0009873, allocations: 55.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2744, allocations: 55.23 MB / 477.1 MB, free: 9.918 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.008946/0.2834, allocations: 7.74 MB / 484.8 MB, free: 4.434 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004461/0.2879, allocations: 2.305 MB / 487.1 MB, free: 2.812 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009535/0.2889, allocations: 52.88 kB / 487.2 MB, free: 2.793 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001367/0.2903, allocations: 426.2 kB / 487.6 MB, free: 2.543 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001207/0.2915, allocations: 378.9 kB / 488 MB, free: 2.336 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001226/0.2927, allocations: 318.7 kB / 488.3 MB, free: 2.18 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002295/0.295, allocations: 1.501 MB / 489.8 MB, free: 1.695 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008159/0.2959, allocations: 454.3 kB / 490.2 MB, free: 1.512 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009357/0.2968, allocations: 406.5 kB / 490.6 MB, free: 1.344 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001057/0.2979, allocations: 0.5883 MB / 491.2 MB, free: 1.152 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.298, allocations: 43.97 kB / 491.3 MB, free: 1.152 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006399/0.2987, allocations: 267.5 kB / 491.5 MB, free: 1.082 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000384/0.2991, allocations: 361.3 kB / 491.9 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004464/0.2995, allocations: 396.8 kB / 492.3 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001174/0.3007, allocations: 1.007 MB / 493.3 MB, free: 384 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3007, allocations: 1.219 kB / 493.3 MB, free: 384 kB / 314.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.3007, allocations: 0 / 493.3 MB, free: 384 kB / 314.7 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.3007, allocations: 0 / 493.3 MB, free: 384 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.00234/0.3031, allocations: 1.122 MB / 494.4 MB, free: 15.63 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.3031, allocations: 8.844 kB / 494.4 MB, free: 15.63 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007311/0.3039, allocations: 129.3 kB / 494.5 MB, free: 15.58 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.305, allocations: 0.5748 MB / 495.1 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.306e-05/0.3051, allocations: 52.64 kB / 495.2 MB, free: 15.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001688/0.3053, allocations: 70.14 kB / 495.2 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/0.3069, allocations: 1.018 MB / 496.2 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.307, allocations: 1.406 kB / 496.2 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-05/0.3071, allocations: 23.7 kB / 496.3 MB, free: 14.71 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002239/0.3073, allocations: 70.89 kB / 496.3 MB, free: 14.7 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001647/0.3089, allocations: 0.9778 MB / 497.3 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005335/0.3143, allocations: 3.28 MB / 0.4889 GB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.3155, allocations: 0.6793 MB / 0.4895 GB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006524/0.3162, allocations: 423.1 kB / 0.4899 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.856e-05/0.3162, allocations: 15.77 kB / 0.4899 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.537e-05/0.3163, allocations: 46.28 kB / 0.49 GB, free: 11.21 MB / 330.7 MB Notification: Performance of pre-optimization done (n=73): time 4.098e-06/0.3163, allocations: 0.8125 kB / 0.49 GB, free: 11.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=75): time 0.004215/0.3205, allocations: 2.425 MB / 0.4924 GB, free: 9.734 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/0.3206, allocations: 88.28 kB / 0.4924 GB, free: 9.637 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000501/0.3211, allocations: 445.6 kB / 0.4929 GB, free: 9.367 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.607e-05/0.3211, allocations: 40.44 kB / 0.4929 GB, free: 9.324 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000228/0.3214, allocations: 355.4 kB / 0.4932 GB, free: 9.008 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001985/0.3216, allocations: 260.6 kB / 0.4935 GB, free: 8.781 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002567/0.3219, allocations: 154.8 kB / 0.4936 GB, free: 8.688 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.322, allocations: 382.9 kB / 0.494 GB, free: 8.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000515/0.3225, allocations: 338.7 kB / 0.4943 GB, free: 8.168 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006542/0.3232, allocations: 0.518 MB / 0.4948 GB, free: 7.785 MB / 330.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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.005112/0.3283, allocations: 2.241 MB / 0.497 GB, free: 6.504 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.3283, allocations: 1.469 kB / 0.497 GB, free: 6.504 MB / 330.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001672/0.33, allocations: 1.103 MB / 0.4981 GB, free: 5.398 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.3301, allocations: 8 kB / 0.4981 GB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.3301, allocations: 8.062 kB / 0.4981 GB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001473/0.3302, allocations: 44.83 kB / 0.4982 GB, free: 5.336 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007538/0.331, allocations: 195.6 kB / 0.4983 GB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001119/0.3321, allocations: 1.386 MB / 0.4997 GB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005768/0.3327, allocations: 39.88 kB / 0.4997 GB, free: 3.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.979e-05/0.3328, allocations: 35.94 kB / 0.4998 GB, free: 3.547 MB / 330.7 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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (95): * Single equations (assignments): 92 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005718/0.3334, allocations: 277.5 kB / 0.5 GB, free: 3.266 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001883/0.3336, allocations: 63.19 kB / 0.5001 GB, free: 3.203 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001604/0.3352, allocations: 0.9701 MB / 0.501 GB, free: 2.203 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.64e-05/0.3352, allocations: 19.98 kB / 0.5011 GB, free: 2.184 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3353, allocations: 0 / 0.5011 GB, free: 2.184 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.3353, allocations: 3.984 kB / 0.5011 GB, free: 2.18 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003352/0.3386, allocations: 2.009 MB / 0.503 GB, free: 44 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/0.3387, allocations: 4 kB / 0.503 GB, free: 40 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006892/0.3394, allocations: 151.8 kB / 0.5032 GB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001231/0.3395, allocations: 40.77 kB / 0.5032 GB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-05/0.3396, allocations: 20 kB / 0.5032 GB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/0.3407, allocations: 1.386 MB / 0.5046 GB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.774e-06/0.3407, allocations: 11.94 kB / 0.5046 GB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009028/0.3498, allocations: 5.71 MB / 0.5102 GB, free: 8.328 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001665/0.35, allocations: 140.3 kB / 0.5103 GB, free: 8.172 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.307e-05/0.35, allocations: 23.94 kB / 0.5103 GB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003502/0.3504, allocations: 35.97 kB / 0.5104 GB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.3505, allocations: 64.36 kB / 0.5104 GB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.842e-05/0.3506, allocations: 24 kB / 0.5104 GB, free: 8.027 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003674/0.351, allocations: 299.1 kB / 0.5107 GB, free: 7.734 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.351, allocations: 0 / 0.5107 GB, free: 7.734 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001146/0.3521, allocations: 244 kB / 0.511 GB, free: 7.496 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],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 (75): * Single equations (assignments): 71 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003213/0.3525, allocations: 163 kB / 0.5111 GB, free: 7.328 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001733/0.3542, allocations: 0.9459 MB / 0.512 GB, free: 6.371 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.3542, allocations: 0 / 0.512 GB, free: 6.371 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007291/0.355, allocations: 0.5309 MB / 0.5126 GB, free: 5.832 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009012/0.3559, allocations: 130.5 kB / 0.5127 GB, free: 5.703 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004552/0.3605, allocations: 2.778 MB / 0.5154 GB, free: 2.82 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006793/0.3611, allocations: 1.044 MB / 0.5164 GB, free: 1.75 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000714/0.3619, allocations: 217.3 kB / 0.5166 GB, free: 1.535 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002109/0.3621, allocations: 59.42 kB / 0.5167 GB, free: 1.477 MB / 346.7 MB Notification: Performance of SimCode: time 1.343e-06/0.3621, allocations: 4 kB / 0.5167 GB, free: 1.473 MB / 346.7 MB Notification: Performance of Templates: time 0.01523/0.3773, allocations: 9.115 MB / 0.5256 GB, free: 8.375 MB / 362.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches