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.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.001672/0.001672, allocations: 119.9 kB / 17.79 MB, free: 5.137 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.002014/0.002014, allocations: 185.2 kB / 20.73 MB, free: 2.207 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.472/1.472, allocations: 225.6 MB / 249.1 MB, free: 3.578 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.1818/0.1818, allocations: 38.51 MB / 342.5 MB, free: 8.059 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.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 0.001972/0.001972, allocations: 67.77 kB / 478.6 MB, free: 33.7 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1101, allocations: 61.24 MB / 0.5272 GB, free: 1.375 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007809/0.1179, allocations: 6.148 MB / 0.5332 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002556/0.1205, allocations: 1.422 MB / 0.5346 GB, free: 9.773 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000359/0.1208, allocations: 23.88 kB / 0.5346 GB, free: 9.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005052/0.1213, allocations: 142.9 kB / 0.5348 GB, free: 9.609 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008976/0.1222, allocations: 394 kB / 0.5351 GB, free: 9.223 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005424/0.1228, allocations: 191.6 kB / 0.5353 GB, free: 9.035 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001237/0.124, allocations: 0.915 MB / 0.5362 GB, free: 8.117 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004016/0.1244, allocations: 210.7 kB / 0.5364 GB, free: 7.906 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00068/0.1251, allocations: 422.2 kB / 0.5368 GB, free: 7.492 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007567/0.1259, allocations: 494.3 kB / 0.5373 GB, free: 7.008 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.166e-05/0.1259, allocations: 51.94 kB / 0.5373 GB, free: 6.957 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.126, allocations: 48 kB / 0.5374 GB, free: 6.91 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003071/0.1264, allocations: 267.2 kB / 0.5376 GB, free: 6.648 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003614/0.1267, allocations: 326.4 kB / 0.538 GB, free: 6.328 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009537/0.1277, allocations: 0.6729 MB / 0.5386 GB, free: 5.652 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.004e-06/0.1277, allocations: 3.984 kB / 0.5386 GB, free: 5.648 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1277, allocations: 0 / 0.5386 GB, free: 5.648 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.1277, allocations: 0 / 0.5386 GB, free: 5.648 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.001854/0.1295, allocations: 0.9713 MB / 0.5396 GB, free: 4.621 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.1296, allocations: 11.89 kB / 0.5396 GB, free: 4.609 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001281/0.1297, allocations: 90.7 kB / 0.5397 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.1298, allocations: 68.52 kB / 0.5397 GB, free: 4.445 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.1309, allocations: 0.5613 MB / 0.5403 GB, free: 3.844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.649e-05/0.1309, allocations: 40.94 kB / 0.5403 GB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.365e-05/0.131, allocations: 48 kB / 0.5404 GB, free: 3.758 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009481/0.1319, allocations: 0.6288 MB / 0.541 GB, free: 3.098 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.132, allocations: 3.938 kB / 0.541 GB, free: 3.094 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.735e-05/0.132, allocations: 20 kB / 0.541 GB, free: 3.074 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001105/0.1321, allocations: 36.97 kB / 0.541 GB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008214/0.1329, allocations: 0.5074 MB / 0.5415 GB, free: 2.527 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003472/0.1364, allocations: 2.222 MB / 0.5437 GB, free: 216 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008985/0.1373, allocations: 472.9 kB / 0.5442 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006775/0.138, allocations: 326.1 kB / 0.5445 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.068e-05/0.138, allocations: 4 kB / 0.5445 GB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.97e-05/0.1381, allocations: 51.22 kB / 0.5445 GB, free: 15.34 MB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 2.064e-06/0.1381, allocations: 0 / 0.5445 GB, free: 15.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=47): time 0.003498/0.1416, allocations: 1.754 MB / 0.5462 GB, free: 13.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.82e-05/0.1416, allocations: 85.23 kB / 0.5463 GB, free: 13.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000456/0.1421, allocations: 425.8 kB / 0.5467 GB, free: 12.99 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.689e-05/0.1421, allocations: 33.7 kB / 0.5468 GB, free: 12.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000234/0.1423, allocations: 305 kB / 0.547 GB, free: 12.64 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/0.1425, allocations: 170.5 kB / 0.5472 GB, free: 12.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.1426, allocations: 98.19 kB / 0.5473 GB, free: 12.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.1428, allocations: 362.8 kB / 0.5476 GB, free: 12.01 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003039/0.1432, allocations: 185 kB / 0.5478 GB, free: 11.83 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003932/0.1435, allocations: 311.6 kB / 0.5481 GB, free: 11.48 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.002651/0.1462, allocations: 1.235 MB / 0.5493 GB, free: 10.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1462, allocations: 0 / 0.5493 GB, free: 10.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001325/0.1475, allocations: 0.7069 MB / 0.55 GB, free: 9.457 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.1475, allocations: 8 kB / 0.55 GB, free: 9.449 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/0.1476, allocations: 4 kB / 0.55 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000413/0.148, allocations: 141 kB / 0.5502 GB, free: 9.305 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005212/0.1485, allocations: 111.8 kB / 0.5503 GB, free: 9.195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003097/0.1516, allocations: 2.615 MB / 0.5528 GB, free: 6.445 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003203/0.1519, allocations: 23.98 kB / 0.5528 GB, free: 6.422 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.55e-05/0.1519, allocations: 20 kB / 0.5529 GB, free: 6.402 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.0003132/0.1523, allocations: 236 kB / 0.5531 GB, free: 6.164 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.554e-05/0.1523, allocations: 55.61 kB / 0.5531 GB, free: 6.109 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001164/0.1535, allocations: 0.6425 MB / 0.5538 GB, free: 5.453 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.126e-06/0.1535, allocations: 8 kB / 0.5538 GB, free: 5.445 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1535, allocations: 0 / 0.5538 GB, free: 5.445 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.1535, allocations: 11.92 kB / 0.5538 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002317/0.1558, allocations: 1.365 MB / 0.5551 GB, free: 3.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.1559, allocations: 4.094 kB / 0.5551 GB, free: 3.977 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000348/0.1562, allocations: 75.89 kB / 0.5552 GB, free: 3.902 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00041/0.1566, allocations: 149 kB / 0.5553 GB, free: 3.754 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.94e-05/0.1567, allocations: 23.92 kB / 0.5554 GB, free: 3.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003729/0.1604, allocations: 2.615 MB / 0.5579 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/0.1604, allocations: 8 kB / 0.5579 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002295/0.1627, allocations: 0.981 MB / 0.5589 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002068/0.1629, allocations: 124.7 kB / 0.559 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.648e-05/0.163, allocations: 16.03 kB / 0.559 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004048/0.1634, allocations: 23.92 kB / 0.559 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.1635, allocations: 31.95 kB / 0.5591 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.165e-05/0.1636, allocations: 23.98 kB / 0.5591 GB, free: 15.71 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005624/0.1641, allocations: 287.1 kB / 0.5594 GB, free: 15.44 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1641, allocations: 0 / 0.5594 GB, free: 15.44 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001065/0.1652, allocations: 148 kB / 0.5595 GB, free: 15.29 MB / 430.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.00279/0.168, allocations: 1.53 MB / 0.561 GB, free: 13.71 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001791/0.1698, allocations: 0.6362 MB / 0.5616 GB, free: 13.07 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.1698, allocations: 0.9375 kB / 0.5616 GB, free: 13.07 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001064/0.1708, allocations: 422.5 kB / 0.562 GB, free: 12.64 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001225/0.1721, allocations: 145 kB / 0.5622 GB, free: 12.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01083/0.1829, allocations: 5.128 MB / 0.5672 GB, free: 7.156 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008594/0.1837, allocations: 0.9292 MB / 0.5681 GB, free: 6.199 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005315/0.1843, allocations: 104.7 kB / 0.5682 GB, free: 6.094 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000416/0.1847, allocations: 199.4 kB / 0.5684 GB, free: 5.902 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.1847, allocations: 0 / 0.5684 GB, free: 5.902 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04199/0.2267, allocations: 11.99 MB / 0.5801 GB, free: 10.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/10.94, allocations: 11.8 kB / 0.5801 GB, free: 10.1 MB / 446.1 MB " [Timeout remaining time 649] (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_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 13.877836907748133]