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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 214.1 kB / 24.52 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.508/1.508, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1885/0.1885, allocations: 38.56 MB / 353.3 MB, free: 12.32 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003422/0.003422, allocations: 59.91 kB / 493.3 MB, free: 4.715 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3128, allocations: 62.47 MB / 0.5427 GB, free: 264 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.009016/0.3219, allocations: 6.204 MB / 0.5488 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004648/0.3265, allocations: 1.803 MB / 0.5505 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000488/0.327, allocations: 38.81 kB / 0.5506 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001379/0.3284, allocations: 432.3 kB / 0.551 GB, free: 9.781 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00104/0.3294, allocations: 431 kB / 0.5514 GB, free: 9.434 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001098/0.3305, allocations: 353.3 kB / 0.5517 GB, free: 9.176 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001313/0.3318, allocations: 1.034 MB / 0.5527 GB, free: 8.594 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000637/0.3325, allocations: 417.2 kB / 0.5531 GB, free: 8.316 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007594/0.3332, allocations: 487.8 kB / 0.5536 GB, free: 8.039 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008561/0.3341, allocations: 0.6124 MB / 0.5542 GB, free: 7.676 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001212/0.3342, allocations: 65.72 kB / 0.5543 GB, free: 7.676 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005747/0.3348, allocations: 263.7 kB / 0.5545 GB, free: 7.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004103/0.3352, allocations: 380.4 kB / 0.5549 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004444/0.3356, allocations: 363.2 kB / 0.5552 GB, free: 7.109 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00134/0.337, allocations: 1.053 MB / 0.5562 GB, free: 6.363 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.337, allocations: 0 / 0.5562 GB, free: 6.363 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.337, allocations: 0 / 0.5562 GB, free: 6.363 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.337, allocations: 0 / 0.5562 GB, free: 6.363 MB / 398.1 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.002296/0.3393, allocations: 1.072 MB / 0.5573 GB, free: 5.254 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.3393, allocations: 15.98 kB / 0.5573 GB, free: 5.238 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.538e-05/0.3393, allocations: 17.5 kB / 0.5573 GB, free: 5.223 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001601/0.3395, allocations: 118.8 kB / 0.5574 GB, free: 5.098 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009205/0.3404, allocations: 172.1 kB / 0.5576 GB, free: 4.93 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.3416, allocations: 0.5478 MB / 0.5581 GB, free: 4.352 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.546e-05/0.3416, allocations: 53.44 kB / 0.5582 GB, free: 4.301 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001853/0.3418, allocations: 67.98 kB / 0.5583 GB, free: 4.234 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001682/0.3435, allocations: 1.014 MB / 0.5592 GB, free: 3.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.606e-05/0.3435, allocations: 3.938 kB / 0.5592 GB, free: 3.176 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.706e-05/0.3436, allocations: 20 kB / 0.5593 GB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002316/0.3438, allocations: 81.95 kB / 0.5593 GB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001634/0.3455, allocations: 0.9719 MB / 0.5603 GB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005245/0.3507, allocations: 3.032 MB / 0.5633 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.3519, allocations: 0.6296 MB / 0.5639 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006626/0.3526, allocations: 389.4 kB / 0.5642 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.53e-05/0.3526, allocations: 8.5 kB / 0.5642 GB, free: 13.92 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.924e-05/0.3527, allocations: 47 kB / 0.5643 GB, free: 13.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=73): time 3.146e-06/0.3527, allocations: 0 / 0.5643 GB, free: 13.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=75): time 0.004167/0.3568, allocations: 2.219 MB / 0.5665 GB, free: 11.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.24e-05/0.3569, allocations: 85.7 kB / 0.5665 GB, free: 11.51 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006643/0.3576, allocations: 453.8 kB / 0.567 GB, free: 11.06 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.687e-05/0.3576, allocations: 33.7 kB / 0.567 GB, free: 11.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003338/0.358, allocations: 364.5 kB / 0.5674 GB, free: 10.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003034/0.3583, allocations: 273.7 kB / 0.5676 GB, free: 10.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002744/0.3586, allocations: 146.6 kB / 0.5678 GB, free: 10.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002416/0.3588, allocations: 378.7 kB / 0.5681 GB, free: 9.859 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005862/0.3594, allocations: 341.8 kB / 0.5684 GB, free: 9.527 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007415/0.3601, allocations: 0.5185 MB / 0.5689 GB, free: 8.938 MB / 414.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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.005804/0.3659, allocations: 2.164 MB / 0.5711 GB, free: 6.703 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.3659, allocations: 0 / 0.5711 GB, free: 6.703 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001884/0.3678, allocations: 1.031 MB / 0.5721 GB, free: 5.664 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.3678, allocations: 8 kB / 0.5721 GB, free: 5.656 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.3679, allocations: 7.938 kB / 0.5721 GB, free: 5.648 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001739/0.368, allocations: 48.77 kB / 0.5721 GB, free: 5.598 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008264/0.3689, allocations: 183.7 kB / 0.5723 GB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/0.3703, allocations: 1.401 MB / 0.5737 GB, free: 3.898 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005318/0.3708, allocations: 35.97 kB / 0.5737 GB, free: 3.863 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.922e-05/0.3709, allocations: 28 kB / 0.5737 GB, free: 3.836 MB / 414.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[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.0004777/0.3713, allocations: 280.9 kB / 0.574 GB, free: 3.555 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001724/0.3715, allocations: 63.58 kB / 0.5741 GB, free: 3.492 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001632/0.3731, allocations: 0.8954 MB / 0.5749 GB, free: 2.586 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.87e-05/0.3732, allocations: 16 kB / 0.575 GB, free: 2.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.3732, allocations: 3.938 kB / 0.575 GB, free: 2.566 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.3732, allocations: 15.86 kB / 0.575 GB, free: 2.551 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003529/0.3767, allocations: 1.836 MB / 0.5768 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/0.3767, allocations: 8 kB / 0.5768 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007396/0.3775, allocations: 144.3 kB / 0.5769 GB, free: 468 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001196/0.3776, allocations: 44.83 kB / 0.577 GB, free: 420 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.765e-05/0.3776, allocations: 24 kB / 0.577 GB, free: 396 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001303/0.3789, allocations: 1.389 MB / 0.5783 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.766e-06/0.379, allocations: 11.98 kB / 0.5783 GB, free: 14.87 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002184/0.3811, allocations: 1.454 MB / 0.5798 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000212/0.3813, allocations: 71.58 kB / 0.5798 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.634e-05/0.3814, allocations: 19.98 kB / 0.5798 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003801/0.3818, allocations: 31.97 kB / 0.5799 GB, free: 13.22 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.3819, allocations: 64.28 kB / 0.5799 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.454e-05/0.382, allocations: 31.98 kB / 0.58 GB, free: 13.12 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004123/0.3824, allocations: 303 kB / 0.5803 GB, free: 12.83 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3824, allocations: 0 / 0.5803 GB, free: 12.83 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000832/0.3833, allocations: 187.9 kB / 0.5804 GB, free: 12.64 MB / 430.1 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.002703/0.386, allocations: 2.042 MB / 0.5824 GB, free: 10.52 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001715/0.3877, allocations: 0.9115 MB / 0.5833 GB, free: 9.594 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/0.3877, allocations: 4.375 kB / 0.5833 GB, free: 9.59 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007604/0.3884, allocations: 0.4895 MB / 0.5838 GB, free: 9.086 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.3895, allocations: 153.3 kB / 0.584 GB, free: 8.941 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/0.4003, allocations: 6.92 MB / 0.5907 GB, free: 1.672 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004971/0.4008, allocations: 416.3 kB / 0.5911 GB, free: 1.242 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000603/0.4014, allocations: 205.4 kB / 0.5913 GB, free: 1.039 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004373/0.4018, allocations: 283.3 kB / 0.5916 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of SimCode: time 1.422e-06/0.4018, allocations: 0 / 0.5916 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07343/0.4753, allocations: 15.59 MB / 0.6068 GB, free: 1.426 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/13.57, allocations: 7.156 kB / 0.6068 GB, free: 1.422 MB / 446.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.59146619506646]