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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001896/0.001896, allocations: 119.9 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002456/0.002456, allocations: 185.2 kB / 20.73 MB, free: 2.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1923/0.1923, allocations: 38.51 MB / 342.5 MB, free: 8.066 MB / 270.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 64.66 kB / 478.6 MB, free: 33.66 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1101, allocations: 61.25 MB / 0.5272 GB, free: 1.375 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.009299/0.1194, allocations: 6.555 MB / 0.5336 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003831/0.1233, allocations: 1.889 MB / 0.5355 GB, free: 8.895 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00034/0.1236, allocations: 23.88 kB / 0.5355 GB, free: 8.871 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001338/0.1249, allocations: 453.7 kB / 0.5359 GB, free: 8.426 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008909/0.1258, allocations: 421.8 kB / 0.5363 GB, free: 8.012 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009067/0.1267, allocations: 351.3 kB / 0.5367 GB, free: 7.668 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001184/0.1279, allocations: 1.032 MB / 0.5377 GB, free: 6.633 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006471/0.1286, allocations: 412.4 kB / 0.5381 GB, free: 6.227 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006528/0.1292, allocations: 470.1 kB / 0.5385 GB, free: 5.766 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008691/0.1301, allocations: 0.6074 MB / 0.5391 GB, free: 5.156 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000112/0.1302, allocations: 68 kB / 0.5392 GB, free: 5.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000512/0.1307, allocations: 275.6 kB / 0.5394 GB, free: 4.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003884/0.1311, allocations: 371 kB / 0.5398 GB, free: 4.457 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004517/0.1315, allocations: 421.9 kB / 0.5402 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001279/0.1328, allocations: 1.047 MB / 0.5412 GB, free: 2.992 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1328, allocations: 0 / 0.5412 GB, free: 2.992 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.827e-06/0.1328, allocations: 4 kB / 0.5412 GB, free: 2.988 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.1328, allocations: 0 / 0.5412 GB, free: 2.988 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.002252/0.1351, allocations: 1.143 MB / 0.5423 GB, free: 1.789 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.1351, allocations: 11.89 kB / 0.5423 GB, free: 1.777 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001582/0.1353, allocations: 118.8 kB / 0.5424 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007164/0.136, allocations: 132.3 kB / 0.5426 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001302/0.1373, allocations: 0.6199 MB / 0.5432 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.056e-05/0.1374, allocations: 49.69 kB / 0.5432 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001763/0.1375, allocations: 75.88 kB / 0.5433 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001632/0.1392, allocations: 1.018 MB / 0.5443 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.1392, allocations: 0 / 0.5443 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.122e-05/0.1393, allocations: 24 kB / 0.5443 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002157/0.1395, allocations: 77.94 kB / 0.5444 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001636/0.1411, allocations: 0.9719 MB / 0.5453 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005433/0.1466, allocations: 3.268 MB / 0.5485 GB, free: 11.22 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.1477, allocations: 0.6373 MB / 0.5492 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006833/0.1484, allocations: 379.5 kB / 0.5495 GB, free: 10.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.827e-05/0.1484, allocations: 28.53 kB / 0.5495 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.421e-05/0.1485, allocations: 39.12 kB / 0.5496 GB, free: 10.12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=73): time 2.505e-06/0.1485, allocations: 0 / 0.5496 GB, free: 10.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=75): time 0.004173/0.1526, allocations: 2.449 MB / 0.552 GB, free: 7.582 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.1527, allocations: 85.67 kB / 0.5521 GB, free: 7.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005142/0.1532, allocations: 449.9 kB / 0.5525 GB, free: 7.031 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.018e-05/0.1533, allocations: 33.7 kB / 0.5525 GB, free: 6.992 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002822/0.1535, allocations: 364.5 kB / 0.5529 GB, free: 6.629 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002355/0.1538, allocations: 277.6 kB / 0.5531 GB, free: 6.355 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/0.154, allocations: 146.6 kB / 0.5533 GB, free: 6.207 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002092/0.1542, allocations: 378.7 kB / 0.5536 GB, free: 5.828 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005476/0.1548, allocations: 337.8 kB / 0.5539 GB, free: 5.496 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007314/0.1555, allocations: 0.5224 MB / 0.5545 GB, free: 4.898 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.005477/0.161, allocations: 2.241 MB / 0.5566 GB, free: 2.566 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.161, allocations: 4 kB / 0.5567 GB, free: 2.562 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001877/0.1629, allocations: 1.098 MB / 0.5577 GB, free: 1.438 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.1629, allocations: 8 kB / 0.5577 GB, free: 1.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.762e-05/0.1629, allocations: 8 kB / 0.5577 GB, free: 1.422 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001721/0.1631, allocations: 45.17 kB / 0.5578 GB, free: 1.375 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007859/0.1639, allocations: 191.7 kB / 0.558 GB, free: 1.188 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001553/0.1654, allocations: 1.492 MB / 0.5594 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004403/0.1659, allocations: 35.97 kB / 0.5595 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.998e-05/0.1659, allocations: 35.98 kB / 0.5595 GB, free: 15.48 MB / 430.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.0004361/0.1664, allocations: 281.4 kB / 0.5598 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.1665, allocations: 63.58 kB / 0.5598 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001656/0.1682, allocations: 0.9702 MB / 0.5608 GB, free: 14.13 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.83e-05/0.1682, allocations: 15.98 kB / 0.5608 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.1682, allocations: 7.938 kB / 0.5608 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.1682, allocations: 3.984 kB / 0.5608 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003838/0.172, allocations: 2.005 MB / 0.5628 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.597e-06/0.1721, allocations: 4 kB / 0.5628 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007164/0.1728, allocations: 155.7 kB / 0.5629 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001154/0.1729, allocations: 36.83 kB / 0.5629 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.993e-05/0.1729, allocations: 20 kB / 0.563 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001343/0.1743, allocations: 1.492 MB / 0.5644 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-05/0.1743, allocations: 15.94 kB / 0.5644 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002237/0.1765, allocations: 1.533 MB / 0.5659 GB, free: 8.473 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001802/0.1767, allocations: 136.7 kB / 0.5661 GB, free: 8.32 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.746e-05/0.1768, allocations: 24.06 kB / 0.5661 GB, free: 8.297 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003658/0.1772, allocations: 31.97 kB / 0.5661 GB, free: 8.266 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.1773, allocations: 64.36 kB / 0.5662 GB, free: 8.203 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.046e-05/0.1773, allocations: 27.94 kB / 0.5662 GB, free: 8.176 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003708/0.1777, allocations: 299.1 kB / 0.5665 GB, free: 7.883 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1777, allocations: 3.938 kB / 0.5665 GB, free: 7.879 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007982/0.1785, allocations: 195.9 kB / 0.5667 GB, free: 7.688 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.002705/0.1812, allocations: 2.132 MB / 0.5688 GB, free: 5.457 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.1829, allocations: 0.9026 MB / 0.5696 GB, free: 4.539 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.1829, allocations: 1.438 kB / 0.5696 GB, free: 4.539 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007626/0.1837, allocations: 498 kB / 0.5701 GB, free: 4.039 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008784/0.1845, allocations: 160.9 kB / 0.5703 GB, free: 3.891 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01007/0.1946, allocations: 7.06 MB / 0.5772 GB, free: 12.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007765/0.1954, allocations: 1.009 MB / 0.5781 GB, free: 11.39 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006033/0.196, allocations: 201.4 kB / 0.5783 GB, free: 11.19 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004131/0.1964, allocations: 275.3 kB / 0.5786 GB, free: 10.92 MB / 446.1 MB Notification: Performance of SimCode: time 7.92e-07/0.1964, allocations: 0 / 0.5786 GB, free: 10.92 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04877/0.2452, allocations: 14.79 MB / 0.5931 GB, free: 12.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.39, allocations: 13.09 kB / 0.5931 GB, free: 12.29 MB / 462.1 MB " [Timeout remaining time 649] (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_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 14.645821622107178]