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.0008803/0.0008803, allocations: 91.67 kB / 20.68 MB, free: 3.871 MB / 18.57 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.0008306/0.0008306, allocations: 166 kB / 23.95 MB, free: 0.5977 MB / 18.57 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 0.9067/0.9067, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] 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.2513/0.2513, allocations: 29.41 MB / 290.1 MB, free: 2.438 MB / 266.7 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.438e-05/1.601e-05, allocations: 4.672 kB / 430.2 MB, free: 13.58 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.005119/0.005135, allocations: 5.803 MB / 436 MB, free: 7.746 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.006938, allocations: 1.363 MB / 437.4 MB, free: 6.379 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003138/0.007252, allocations: 35.69 kB / 437.4 MB, free: 6.344 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000758/0.00801, allocations: 146.8 kB / 437.6 MB, free: 6.199 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009483/0.008958, allocations: 405.6 kB / 438 MB, free: 5.801 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004459/0.009404, allocations: 191.6 kB / 438.1 MB, free: 5.613 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008031/0.01021, allocations: 0.9458 MB / 439.1 MB, free: 4.664 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002403/0.01045, allocations: 167.2 kB / 439.3 MB, free: 4.492 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006891/0.01114, allocations: 0.5412 MB / 439.8 MB, free: 3.949 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004869/0.01162, allocations: 438.8 kB / 440.2 MB, free: 3.52 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.779e-05/0.01169, allocations: 48 kB / 440.3 MB, free: 3.473 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.081e-05/0.01177, allocations: 48 kB / 440.3 MB, free: 3.426 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001798/0.01195, allocations: 295.1 kB / 440.6 MB, free: 3.137 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001648/0.01212, allocations: 219.5 kB / 440.8 MB, free: 2.922 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005034/0.01262, allocations: 0.6697 MB / 441.5 MB, free: 2.25 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.01262, allocations: 0 / 441.5 MB, free: 2.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.01262, allocations: 0 / 441.5 MB, free: 2.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.01263, allocations: 0 / 441.5 MB, free: 2.25 MB / 410.7 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.001093/0.01372, allocations: 0.896 MB / 442.4 MB, free: 1.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.01377, allocations: 11.98 kB / 442.4 MB, free: 1.309 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.656e-05/0.01384, allocations: 90.7 kB / 442.5 MB, free: 1.211 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.996e-05/0.01392, allocations: 68.52 kB / 442.6 MB, free: 1.145 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006054/0.01453, allocations: 0.4884 MB / 443 MB, free: 0.625 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.01455, allocations: 37.38 kB / 443.1 MB, free: 0.5898 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.457e-05/0.01461, allocations: 48.38 kB / 443.1 MB, free: 0.543 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1654/0.18, allocations: 0.622 MB / 443.7 MB, free: 54.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.338e-05/0.18, allocations: 7.094 kB / 443.8 MB, free: 54.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.772e-05/0.18, allocations: 18.81 kB / 443.8 MB, free: 54.59 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001223/0.1802, allocations: 40.47 kB / 443.8 MB, free: 54.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006454/0.1808, allocations: 0.5014 MB / 444.3 MB, free: 54.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.1827, allocations: 2.069 MB / 446.4 MB, free: 53.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004986/0.1832, allocations: 463.6 kB / 446.8 MB, free: 53.22 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003466/0.1835, allocations: 326.6 kB / 447.2 MB, free: 53.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.1835, allocations: 7.156 kB / 447.2 MB, free: 53.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.002e-05/0.1835, allocations: 37.78 kB / 447.2 MB, free: 53.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=45): time 2.605e-06/0.1835, allocations: 1.172 kB / 447.2 MB, free: 53.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=47): time 0.0019/0.1854, allocations: 1.603 MB / 448.8 MB, free: 52.37 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.128e-05/0.1855, allocations: 84.39 kB / 448.9 MB, free: 52.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000256/0.1857, allocations: 429.5 kB / 449.3 MB, free: 52.08 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.1858, allocations: 33.7 kB / 449.3 MB, free: 52.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.1859, allocations: 295.6 kB / 449.6 MB, free: 51.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.3e-05/0.1859, allocations: 170.9 kB / 449.8 MB, free: 51.71 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.151e-05/0.186, allocations: 101.7 kB / 449.9 MB, free: 51.65 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.607e-05/0.1861, allocations: 360.6 kB / 450.2 MB, free: 51.32 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001683/0.1862, allocations: 187.4 kB / 450.4 MB, free: 51.26 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.1864, allocations: 308.6 kB / 450.7 MB, free: 51.06 MB / 410.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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/0.1878, allocations: 1.171 MB / 451.9 MB, free: 50.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1878, allocations: 0 / 451.9 MB, free: 50.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0006239/0.1884, allocations: 0.7036 MB / 452.6 MB, free: 50.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.1884, allocations: 12.19 kB / 452.6 MB, free: 50.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.1884, allocations: 3.188 kB / 452.6 MB, free: 50.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002602/0.1887, allocations: 142.7 kB / 452.8 MB, free: 50.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002298/0.1889, allocations: 110.2 kB / 452.9 MB, free: 50.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001474/0.1904, allocations: 2.49 MB / 455.4 MB, free: 48.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.1905, allocations: 24.33 kB / 455.4 MB, free: 48.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.1905, allocations: 23.88 kB / 455.4 MB, free: 48.46 MB / 410.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[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.0001456/0.1907, allocations: 222.3 kB / 455.6 MB, free: 48.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.825e-05/0.1907, allocations: 58.92 kB / 455.7 MB, free: 48.26 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005707/0.1913, allocations: 0.6496 MB / 456.3 MB, free: 47.99 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.1913, allocations: 6.656 kB / 456.3 MB, free: 47.99 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.1913, allocations: 2.438 kB / 456.3 MB, free: 47.99 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.1913, allocations: 6.547 kB / 456.3 MB, free: 47.99 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.1924, allocations: 1.248 MB / 457.6 MB, free: 47.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.1924, allocations: 0 / 457.6 MB, free: 47.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000169/0.1925, allocations: 77.08 kB / 457.7 MB, free: 47.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002041/0.1927, allocations: 150.5 kB / 457.8 MB, free: 47.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.1928, allocations: 10.5 kB / 457.8 MB, free: 47.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/0.194, allocations: 2.493 MB / 460.3 MB, free: 45.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.194, allocations: 3.219 kB / 460.3 MB, free: 45.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007318/0.1948, allocations: 0.9904 MB / 461.3 MB, free: 45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.641e-05/0.1948, allocations: 46.39 kB / 461.4 MB, free: 44.97 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.281e-05/0.1948, allocations: 11.22 kB / 461.4 MB, free: 44.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.195, allocations: 23.69 kB / 461.4 MB, free: 44.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/0.195, allocations: 41.69 kB / 461.4 MB, free: 44.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.195, allocations: 20.17 kB / 461.4 MB, free: 44.94 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001558/0.1952, allocations: 285.4 kB / 461.7 MB, free: 44.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1952, allocations: 0 / 461.7 MB, free: 44.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003456/0.1955, allocations: 147 kB / 461.9 MB, free: 44.79 MB / 410.7 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.0008273/0.1964, allocations: 1.532 MB / 463.4 MB, free: 43.76 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000588/0.1969, allocations: 0.635 MB / 464 MB, free: 43.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1969, allocations: 0 / 464 MB, free: 43.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000298/0.1972, allocations: 417.5 kB / 464.4 MB, free: 43.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004219/0.1977, allocations: 133.7 kB / 464.6 MB, free: 43.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003543/0.2012, allocations: 5.05 MB / 469.6 MB, free: 40.38 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001868/0.2014, allocations: 330.8 kB / 469.9 MB, free: 40.26 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000172/0.2016, allocations: 101.1 kB / 470 MB, free: 40.24 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000149/0.2017, allocations: 205.1 kB / 470.2 MB, free: 40.09 MB / 410.7 MB Notification: Performance of SimCode: time 6.01e-07/0.2017, allocations: 0 / 470.2 MB, free: 40.09 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02771/0.2294, allocations: 13.12 MB / 483.4 MB, free: 38.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.897/7.127, allocations: 5.094 kB / 483.4 MB, free: 38.23 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mat","/var/lib/jenkins/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: 9.092674622312188]