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.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.001327/0.001327, 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.001507/0.001507, allocations: 212.6 kB / 24.51 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.502/1.502, allocations: 230.6 MB / 258.3 MB, free: 7.973 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.2045/0.2045, allocations: 38.54 MB / 353.2 MB, free: 12.36 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.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_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.002361/0.002361, allocations: 70.86 kB / 493.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3733/0.3757, allocations: 62.46 MB / 0.5427 GB, free: 268 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.01044/0.3861, allocations: 5.823 MB / 0.5484 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003324/0.3894, allocations: 1.362 MB / 0.5497 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004448/0.3899, allocations: 39.72 kB / 0.5498 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000611/0.3905, allocations: 136.7 kB / 0.5499 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001029/0.3915, allocations: 390.9 kB / 0.5503 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005688/0.3921, allocations: 196 kB / 0.5504 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001155/0.3933, allocations: 0.9205 MB / 0.5513 GB, free: 9.633 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004059/0.3937, allocations: 174 kB / 0.5515 GB, free: 9.527 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007496/0.3944, allocations: 428.6 kB / 0.5519 GB, free: 9.285 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008015/0.3952, allocations: 0.4889 MB / 0.5524 GB, free: 9 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.048e-05/0.3953, allocations: 50.53 kB / 0.5524 GB, free: 8.996 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001296/0.3954, allocations: 48.5 kB / 0.5525 GB, free: 8.996 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003028/0.3957, allocations: 266.8 kB / 0.5527 GB, free: 8.824 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003448/0.3961, allocations: 264.3 kB / 0.553 GB, free: 8.672 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009341/0.397, allocations: 0.6842 MB / 0.5537 GB, free: 8.215 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.397, allocations: 5.031 kB / 0.5537 GB, free: 8.211 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.397, allocations: 0 / 0.5537 GB, free: 8.211 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.394e-05/0.397, allocations: 0 / 0.5537 GB, free: 8.211 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002023/0.3991, allocations: 0.8893 MB / 0.5545 GB, free: 7.535 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.3991, allocations: 14.42 kB / 0.5546 GB, free: 7.531 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.416e-05/0.3991, allocations: 12.53 kB / 0.5546 GB, free: 7.531 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001122/0.3992, allocations: 92.55 kB / 0.5547 GB, free: 7.449 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.3994, allocations: 74.03 kB / 0.5547 GB, free: 7.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009924/0.4003, allocations: 0.4894 MB / 0.5552 GB, free: 7.039 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.895e-05/0.4004, allocations: 36.34 kB / 0.5552 GB, free: 7.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.796e-05/0.4005, allocations: 52.33 kB / 0.5553 GB, free: 7 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.4015, allocations: 0.6251 MB / 0.5559 GB, free: 6.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.4015, allocations: 1.031 kB / 0.5559 GB, free: 6.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.446e-05/0.4016, allocations: 24.28 kB / 0.5559 GB, free: 6.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001131/0.4017, allocations: 34.69 kB / 0.556 GB, free: 6.562 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008397/0.4025, allocations: 0.5086 MB / 0.5564 GB, free: 6.086 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003373/0.4059, allocations: 2.073 MB / 0.5585 GB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009702/0.4069, allocations: 469.1 kB / 0.5589 GB, free: 3.449 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006956/0.4076, allocations: 333.5 kB / 0.5592 GB, free: 3.121 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.594e-05/0.4076, allocations: 11.95 kB / 0.5592 GB, free: 3.109 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.4077, allocations: 34.56 kB / 0.5593 GB, free: 3.066 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.355e-06/0.4077, allocations: 0 / 0.5593 GB, free: 3.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003706/0.4114, allocations: 1.6 MB / 0.5608 GB, free: 1.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.06e-05/0.4114, allocations: 81.11 kB / 0.5609 GB, free: 1.332 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005105/0.4119, allocations: 421.8 kB / 0.5613 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.166e-05/0.412, allocations: 37.7 kB / 0.5614 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002375/0.4122, allocations: 301 kB / 0.5616 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.4124, allocations: 170.5 kB / 0.5618 GB, free: 408 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.4125, allocations: 98.3 kB / 0.5619 GB, free: 304 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002176/0.4128, allocations: 362.8 kB / 0.5623 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003134/0.4131, allocations: 181.2 kB / 0.5624 GB, free: 15.76 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004762/0.4135, allocations: 316.6 kB / 0.5627 GB, free: 15.4 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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002824/0.4164, allocations: 1.159 MB / 0.5639 GB, free: 14.19 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.4164, allocations: 4 kB / 0.5639 GB, free: 14.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001356/0.4177, allocations: 0.703 MB / 0.5645 GB, free: 13.47 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.4177, allocations: 11.94 kB / 0.5646 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.4178, allocations: 8.469 kB / 0.5646 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004168/0.4182, allocations: 140.7 kB / 0.5647 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004813/0.4187, allocations: 111.8 kB / 0.5648 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003279/0.4219, allocations: 2.476 MB / 0.5672 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004133/0.4224, allocations: 28.03 kB / 0.5673 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.513e-05/0.4224, allocations: 23.98 kB / 0.5673 GB, free: 10.56 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[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.0003806/0.4228, allocations: 225.5 kB / 0.5675 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.469e-05/0.4229, allocations: 55.62 kB / 0.5675 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001221/0.4241, allocations: 0.6503 MB / 0.5682 GB, free: 9.621 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.4241, allocations: 4 kB / 0.5682 GB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.4241, allocations: 7.938 kB / 0.5682 GB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.4241, allocations: 0 / 0.5682 GB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/0.4264, allocations: 1.24 MB / 0.5694 GB, free: 8.301 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/0.4264, allocations: 7.938 kB / 0.5694 GB, free: 8.293 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003687/0.4268, allocations: 75.89 kB / 0.5695 GB, free: 8.219 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004259/0.4272, allocations: 140.7 kB / 0.5696 GB, free: 8.078 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.012e-05/0.4272, allocations: 20.16 kB / 0.5696 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00316/0.4304, allocations: 2.5 MB / 0.5721 GB, free: 5.441 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.4304, allocations: 3.938 kB / 0.5721 GB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001573/0.432, allocations: 0.9925 MB / 0.573 GB, free: 4.406 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.4321, allocations: 47.67 kB / 0.5731 GB, free: 4.359 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.335e-05/0.4322, allocations: 15.97 kB / 0.5731 GB, free: 4.344 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002753/0.4325, allocations: 19.98 kB / 0.5731 GB, free: 4.324 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.882e-05/0.4326, allocations: 35.92 kB / 0.5732 GB, free: 4.289 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.582e-05/0.4326, allocations: 20 kB / 0.5732 GB, free: 4.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003739/0.433, allocations: 291.1 kB / 0.5735 GB, free: 3.988 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.433, allocations: 0 / 0.5735 GB, free: 3.988 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006901/0.4337, allocations: 147.9 kB / 0.5736 GB, free: 3.844 MB / 414.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.001945/0.4356, allocations: 1.541 MB / 0.5751 GB, free: 2.258 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.4369, allocations: 0.6321 MB / 0.5757 GB, free: 1.609 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.4369, allocations: 1.031 kB / 0.5757 GB, free: 1.609 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007127/0.4376, allocations: 430.3 kB / 0.5761 GB, free: 1.176 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008082/0.4384, allocations: 135.4 kB / 0.5763 GB, free: 1.051 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007844/0.4462, allocations: 5.133 MB / 0.5813 GB, free: 11.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004459/0.4467, allocations: 329.3 kB / 0.5816 GB, free: 11.35 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003622/0.447, allocations: 104.7 kB / 0.5817 GB, free: 11.25 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000315/0.4474, allocations: 195.4 kB / 0.5819 GB, free: 11.05 MB / 430.1 MB Notification: Performance of SimCode: time 1.133e-06/0.4474, allocations: 0 / 0.5819 GB, free: 11.05 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04462/0.492, allocations: 12.79 MB / 0.5944 GB, free: 14.53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/13.08, allocations: 3.938 kB / 0.5944 GB, free: 14.52 MB / 446.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.162711631972343]