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.001857/0.001857, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.002177/0.002177, allocations: 218.9 kB / 21.46 MB, free: 1.586 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.644/1.644, allocations: 230.6 MB / 254.8 MB, free: 15.21 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.2347/0.2347, allocations: 38.5 MB / 349.4 MB, free: 2.586 MB / 270.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.001967/0.001967, allocations: 71.91 kB / 487.8 MB, free: 32.38 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1289, allocations: 62.42 MB / 0.5374 GB, free: 9.496 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.008251/0.1372, allocations: 6.157 MB / 0.5434 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002738/0.1399, allocations: 1.441 MB / 0.5448 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003481/0.1402, allocations: 35.69 kB / 0.5448 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005224/0.1408, allocations: 142.9 kB / 0.545 GB, free: 1.691 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008583/0.1416, allocations: 393.9 kB / 0.5453 GB, free: 1.305 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000517/0.1421, allocations: 203.5 kB / 0.5455 GB, free: 1.105 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001113/0.1433, allocations: 0.9112 MB / 0.5464 GB, free: 196 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004207/0.1437, allocations: 214.7 kB / 0.5466 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007782/0.1445, allocations: 422.3 kB / 0.547 GB, free: 15.56 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000716/0.1452, allocations: 0.4944 MB / 0.5475 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.815e-05/0.1453, allocations: 48 kB / 0.5476 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.1454, allocations: 51.94 kB / 0.5476 GB, free: 14.97 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000283/0.1457, allocations: 267.3 kB / 0.5479 GB, free: 14.71 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003392/0.146, allocations: 318.3 kB / 0.5482 GB, free: 14.39 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009467/0.1469, allocations: 0.6806 MB / 0.5488 GB, free: 13.71 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.939e-06/0.1469, allocations: 8 kB / 0.5488 GB, free: 13.7 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.147, allocations: 0 / 0.5488 GB, free: 13.7 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.147, allocations: 0 / 0.5488 GB, free: 13.7 MB / 414.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.001905/0.1489, allocations: 0.9597 MB / 0.5498 GB, free: 12.69 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.1489, allocations: 8.031 kB / 0.5498 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.871e-05/0.1489, allocations: 17.19 kB / 0.5498 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001072/0.149, allocations: 94.7 kB / 0.5499 GB, free: 12.56 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.1492, allocations: 72.47 kB / 0.55 GB, free: 12.49 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009656/0.1501, allocations: 0.5649 MB / 0.5505 GB, free: 11.89 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.108e-05/0.1502, allocations: 40.98 kB / 0.5505 GB, free: 11.85 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.436e-05/0.1503, allocations: 51.95 kB / 0.5506 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.1513, allocations: 0.6249 MB / 0.5512 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.1513, allocations: 0 / 0.5512 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.292e-05/0.1513, allocations: 20 kB / 0.5512 GB, free: 11.12 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001366/0.1515, allocations: 32.97 kB / 0.5513 GB, free: 11.08 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008613/0.1523, allocations: 0.5074 MB / 0.5517 GB, free: 10.58 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003252/0.1556, allocations: 2.215 MB / 0.5539 GB, free: 8.266 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008918/0.1565, allocations: 471.7 kB / 0.5544 GB, free: 7.789 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006935/0.1572, allocations: 330.7 kB / 0.5547 GB, free: 7.461 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.406e-05/0.1572, allocations: 15.94 kB / 0.5547 GB, free: 7.445 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.1573, allocations: 38.56 kB / 0.5547 GB, free: 7.398 MB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 2.284e-06/0.1573, allocations: 0 / 0.5547 GB, free: 7.398 MB / 414.1 MB Notification: Performance of matching and sorting (n=47): time 0.00366/0.1609, allocations: 1.746 MB / 0.5564 GB, free: 5.578 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.685e-05/0.161, allocations: 81.11 kB / 0.5565 GB, free: 5.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005003/0.1615, allocations: 421.8 kB / 0.5569 GB, free: 5.062 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.993e-05/0.1615, allocations: 37.7 kB / 0.5569 GB, free: 5.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002295/0.1617, allocations: 301.1 kB / 0.5572 GB, free: 4.719 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.1619, allocations: 170.5 kB / 0.5574 GB, free: 4.551 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001677/0.1621, allocations: 102.2 kB / 0.5575 GB, free: 4.445 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.1622, allocations: 358.8 kB / 0.5578 GB, free: 4.086 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003168/0.1626, allocations: 189 kB / 0.558 GB, free: 3.902 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004222/0.163, allocations: 315.6 kB / 0.5583 GB, free: 3.543 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.002837/0.1658, allocations: 1.234 MB / 0.5595 GB, free: 2.242 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1658, allocations: 4 kB / 0.5595 GB, free: 2.238 MB / 414.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001359/0.1672, allocations: 0.6994 MB / 0.5602 GB, free: 1.527 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.1672, allocations: 8 kB / 0.5602 GB, free: 1.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.1672, allocations: 7.938 kB / 0.5602 GB, free: 1.512 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004181/0.1676, allocations: 140.7 kB / 0.5604 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004749/0.1681, allocations: 107.9 kB / 0.5605 GB, free: 1.266 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003308/0.1714, allocations: 2.613 MB / 0.563 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003679/0.1718, allocations: 28.02 kB / 0.563 GB, free: 14.49 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.781e-05/0.1718, allocations: 20 kB / 0.5631 GB, free: 14.47 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[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.0003617/0.1722, allocations: 229.5 kB / 0.5633 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.1723, allocations: 59.62 kB / 0.5633 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001219/0.1735, allocations: 0.6464 MB / 0.564 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.1735, allocations: 4 kB / 0.564 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1735, allocations: 7.938 kB / 0.564 GB, free: 13.51 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.1735, allocations: 3.984 kB / 0.564 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002426/0.176, allocations: 1.377 MB / 0.5653 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.176, allocations: 0 / 0.5653 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003839/0.1764, allocations: 67.91 kB / 0.5654 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004693/0.1768, allocations: 156.8 kB / 0.5655 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.308e-05/0.1769, allocations: 12 kB / 0.5656 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003245/0.1801, allocations: 2.623 MB / 0.5681 GB, free: 9.043 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1801, allocations: 0 / 0.5681 GB, free: 9.043 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001645/0.1818, allocations: 0.9888 MB / 0.5691 GB, free: 8.016 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001893/0.1819, allocations: 124.8 kB / 0.5692 GB, free: 7.875 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.022e-05/0.182, allocations: 23.97 kB / 0.5692 GB, free: 7.852 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002653/0.1823, allocations: 15.98 kB / 0.5692 GB, free: 7.836 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.952e-05/0.1824, allocations: 35.89 kB / 0.5693 GB, free: 7.801 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.356e-05/0.1824, allocations: 16 kB / 0.5693 GB, free: 7.785 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004048/0.1828, allocations: 291.1 kB / 0.5696 GB, free: 7.5 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1828, allocations: 3.938 kB / 0.5696 GB, free: 7.496 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007218/0.1835, allocations: 144 kB / 0.5697 GB, free: 7.355 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.0019/0.1854, allocations: 1.542 MB / 0.5712 GB, free: 5.77 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.1867, allocations: 0.6328 MB / 0.5718 GB, free: 5.125 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.1867, allocations: 0 / 0.5718 GB, free: 5.125 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007409/0.1874, allocations: 427.3 kB / 0.5722 GB, free: 4.695 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007787/0.1882, allocations: 130.2 kB / 0.5724 GB, free: 4.566 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007382/0.1956, allocations: 5.122 MB / 0.5774 GB, free: 15.22 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006195/0.1962, allocations: 0.9253 MB / 0.5783 GB, free: 14.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000327/0.1965, allocations: 104.7 kB / 0.5784 GB, free: 14.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000301/0.1968, allocations: 199.4 kB / 0.5786 GB, free: 13.96 MB / 446.1 MB Notification: Performance of SimCode: time 1.683e-06/0.1968, allocations: 0 / 0.5786 GB, free: 13.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0378/0.2346, allocations: 12.04 MB / 0.5903 GB, free: 2.137 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.29, allocations: 4.062 kB / 0.5903 GB, free: 2.133 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/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: 14.710858621983789]