Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Units.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.001423/0.001423, 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.00146/0.00146, 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.56/1.56, allocations: 230.6 MB / 254.8 MB, free: 15.22 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.2838/0.2838, allocations: 38.51 MB / 349.4 MB, free: 2.582 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.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",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.001979/0.001979, allocations: 59.75 kB / 487.8 MB, free: 32.39 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1183, allocations: 62.43 MB / 0.5373 GB, free: 9.516 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.008076/0.1263, allocations: 6.17 MB / 0.5434 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003623/0.13, allocations: 2.006 MB / 0.5453 GB, free: 1.305 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000338/0.1303, allocations: 27.75 kB / 0.5454 GB, free: 1.277 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001806/0.1321, allocations: 0.708 MB / 0.546 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000884/0.133, allocations: 390.1 kB / 0.5464 GB, free: 188 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.1341, allocations: 403 kB / 0.5468 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001407/0.1355, allocations: 0.9354 MB / 0.5477 GB, free: 14.85 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00074/0.1363, allocations: 416.1 kB / 0.5481 GB, free: 14.43 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008691/0.1371, allocations: 446.3 kB / 0.5485 GB, free: 14 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008537/0.138, allocations: 0.5646 MB / 0.5491 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001038/0.1381, allocations: 60 kB / 0.5491 GB, free: 13.37 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005318/0.1386, allocations: 255.6 kB / 0.5494 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004515/0.1391, allocations: 426.9 kB / 0.5498 GB, free: 12.7 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004805/0.1396, allocations: 426 kB / 0.5502 GB, free: 12.29 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001369/0.1409, allocations: 1.023 MB / 0.5512 GB, free: 11.26 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1409, allocations: 0 / 0.5512 GB, free: 11.26 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1409, allocations: 0 / 0.5512 GB, free: 11.26 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.1409, allocations: 0 / 0.5512 GB, free: 11.26 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.002679/0.1436, allocations: 1.106 MB / 0.5523 GB, free: 10.1 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.1437, allocations: 8.031 kB / 0.5523 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.245e-05/0.1437, allocations: 26.17 kB / 0.5523 GB, free: 10.07 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002392/0.144, allocations: 131.3 kB / 0.5524 GB, free: 9.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001645/0.1456, allocations: 220.1 kB / 0.5527 GB, free: 9.715 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001415/0.147, allocations: 0.5443 MB / 0.5532 GB, free: 9.133 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.193e-05/0.1471, allocations: 58.12 kB / 0.5532 GB, free: 9.074 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001982/0.1473, allocations: 72 kB / 0.5533 GB, free: 9.004 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002562/0.1499, allocations: 1.134 MB / 0.5544 GB, free: 7.77 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.247e-05/0.1499, allocations: 11.94 kB / 0.5544 GB, free: 7.758 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000121/0.15, allocations: 28 kB / 0.5545 GB, free: 7.73 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001095/0.1501, allocations: 61.91 kB / 0.5545 GB, free: 7.668 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002208/0.1524, allocations: 0.8585 MB / 0.5554 GB, free: 6.809 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009497/0.1618, allocations: 5.06 MB / 0.5603 GB, free: 1.512 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.163, allocations: 392.8 kB / 0.5607 GB, free: 1.109 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005045/0.1635, allocations: 193.7 kB / 0.5609 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.351e-05/0.1636, allocations: 15.97 kB / 0.5609 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.733e-05/0.1637, allocations: 38.56 kB / 0.5609 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of pre-optimization done (n=43): time 3.407e-06/0.1637, allocations: 4 kB / 0.5609 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of matching and sorting (n=44): time 0.003098/0.1668, allocations: 1.093 MB / 0.562 GB, free: 15.74 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.382e-05/0.1669, allocations: 89.23 kB / 0.5621 GB, free: 15.64 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008972/0.1677, allocations: 497.8 kB / 0.5625 GB, free: 15.14 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.5e-05/0.1678, allocations: 37.7 kB / 0.5626 GB, free: 15.09 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005399/0.1683, allocations: 463.3 kB / 0.563 GB, free: 14.64 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000255/0.1686, allocations: 170.6 kB / 0.5632 GB, free: 14.47 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003497/0.1689, allocations: 150.6 kB / 0.5633 GB, free: 14.32 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002726/0.1692, allocations: 374.5 kB / 0.5637 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006392/0.1699, allocations: 233.9 kB / 0.5639 GB, free: 13.72 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/0.171, allocations: 0.617 MB / 0.5645 GB, free: 12.92 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002019/0.173, allocations: 0.9416 MB / 0.5654 GB, free: 11.8 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.125e-05/0.173, allocations: 4 kB / 0.5654 GB, free: 11.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002422/0.1754, allocations: 0.9002 MB / 0.5663 GB, free: 10.89 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.545e-05/0.1755, allocations: 12.16 kB / 0.5663 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.995e-05/0.1755, allocations: 20 kB / 0.5663 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.062e-05/0.1755, allocations: 16 kB / 0.5663 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.1768, allocations: 211.7 kB / 0.5666 GB, free: 10.63 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.651e-05/0.1769, allocations: 31.86 kB / 0.5666 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007709/0.1776, allocations: 47.95 kB / 0.5666 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.867e-05/0.1777, allocations: 44 kB / 0.5667 GB, free: 10.51 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (99): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006334/0.1784, allocations: 313.3 kB / 0.567 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.1785, allocations: 55.62 kB / 0.567 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/0.1802, allocations: 0.5602 MB / 0.5676 GB, free: 9.57 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/0.1802, allocations: 8 kB / 0.5676 GB, free: 9.562 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.1802, allocations: 0 / 0.5676 GB, free: 9.562 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.1802, allocations: 0 / 0.5676 GB, free: 9.562 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003573/0.1838, allocations: 1.333 MB / 0.5689 GB, free: 8.141 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.335e-05/0.1838, allocations: 11.88 kB / 0.5689 GB, free: 8.129 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008021/0.1846, allocations: 108.1 kB / 0.569 GB, free: 8.023 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.732e-05/0.1846, allocations: 11.94 kB / 0.569 GB, free: 8.012 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.493e-05/0.1847, allocations: 12 kB / 0.569 GB, free: 8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.516e-05/0.1847, allocations: 7.984 kB / 0.569 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/0.1847, allocations: 4 kB / 0.569 GB, free: 7.988 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.1862, allocations: 0.6511 MB / 0.5697 GB, free: 7.297 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002382/0.1864, allocations: 128.7 kB / 0.5698 GB, free: 7.152 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.1865, allocations: 12 kB / 0.5698 GB, free: 7.141 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004609/0.187, allocations: 23.97 kB / 0.5698 GB, free: 7.117 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.1871, allocations: 35.75 kB / 0.5699 GB, free: 7.082 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.002e-05/0.1871, allocations: 23.92 kB / 0.5699 GB, free: 7.059 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006522/0.1878, allocations: 330.8 kB / 0.5702 GB, free: 6.738 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1878, allocations: 0 / 0.5702 GB, free: 6.738 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001368/0.1892, allocations: 164 kB / 0.5703 GB, free: 6.578 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001869/0.191, allocations: 1.201 MB / 0.5715 GB, free: 5.32 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001639/0.1927, allocations: 0.5667 MB / 0.5721 GB, free: 4.758 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.1927, allocations: 0 / 0.5721 GB, free: 4.758 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005654/0.1932, allocations: 228.8 kB / 0.5723 GB, free: 4.535 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/0.1944, allocations: 112.9 kB / 0.5724 GB, free: 4.434 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01224/0.2067, allocations: 5.802 MB / 0.5781 GB, free: 14.13 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007281/0.2074, allocations: 1.003 MB / 0.579 GB, free: 13.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005654/0.208, allocations: 221 kB / 0.5793 GB, free: 12.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003859/0.2083, allocations: 255.4 kB / 0.5795 GB, free: 12.63 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.2083, allocations: 4 kB / 0.5795 GB, free: 12.63 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03405/0.2424, allocations: 11.59 MB / 0.5908 GB, free: 1.168 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.251/9.493, allocations: 8 kB / 0.5908 GB, free: 1.16 MB / 446.1 MB " [Timeout remaining time 650] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Units_fmu --startTime=0 --stopTime=0.1 --stepSize=4e-05 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Units.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.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: 12.828358134021983]