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.000849/0.000849, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0008283/0.0008283, allocations: 170 kB / 23.95 MB, free: 0.6094 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.9078/0.9078, allocations: 177.1 MB / 204.3 MB, free: 5.734 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.2182/0.2182, allocations: 29.4 MB / 290.1 MB, free: 2.441 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.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.535e-06/2.535e-06, allocations: 0 / 430.2 MB, free: 13.63 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.056e-05/1.31e-05, allocations: 4.25 kB / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.004423/0.004436, allocations: 5.783 MB / 436 MB, free: 7.809 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001984/0.00642, allocations: 1.889 MB / 437.9 MB, free: 5.914 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001856/0.006606, allocations: 31.75 kB / 437.9 MB, free: 5.883 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008558/0.007462, allocations: 0.6829 MB / 438.6 MB, free: 5.199 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004833/0.007945, allocations: 397.7 kB / 439 MB, free: 4.809 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006062/0.008551, allocations: 418.7 kB / 439.4 MB, free: 4.398 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008379/0.009389, allocations: 0.9509 MB / 440.3 MB, free: 3.445 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000412/0.009801, allocations: 400.3 kB / 440.7 MB, free: 3.039 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005084/0.01031, allocations: 0.5685 MB / 441.3 MB, free: 2.469 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004283/0.01074, allocations: 0.5026 MB / 441.8 MB, free: 1.965 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 5.376e-05/0.01079, allocations: 56 kB / 441.8 MB, free: 1.91 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003058/0.0111, allocations: 247.5 kB / 442.1 MB, free: 1.668 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002474/0.01134, allocations: 446.9 kB / 442.5 MB, free: 1.23 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001985/0.01154, allocations: 299.3 kB / 442.8 MB, free: 0.9375 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1669/0.1784, allocations: 1.035 MB / 443.9 MB, free: 45.16 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1784, allocations: 0 / 443.9 MB, free: 45.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1784, allocations: 0 / 443.9 MB, free: 45.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.886e-05/0.1785, allocations: 0 / 443.9 MB, free: 45.16 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.001319/0.1798, allocations: 1.017 MB / 444.9 MB, free: 44.69 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.1798, allocations: 13.67 kB / 444.9 MB, free: 44.68 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.834e-05/0.1799, allocations: 135.6 kB / 445 MB, free: 44.64 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005448/0.1805, allocations: 210.5 kB / 445.2 MB, free: 44.6 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005173/0.181, allocations: 484.1 kB / 445.7 MB, free: 44.4 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.181, allocations: 65.12 kB / 445.8 MB, free: 44.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.604e-05/0.1811, allocations: 71.94 kB / 445.8 MB, free: 44.4 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008977/0.182, allocations: 1.132 MB / 447 MB, free: 44.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/0.182, allocations: 7.188 kB / 447 MB, free: 44.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.408e-05/0.1821, allocations: 39.72 kB / 447 MB, free: 44.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.153e-05/0.1821, allocations: 50.88 kB / 447.1 MB, free: 44.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007783/0.1829, allocations: 0.8621 MB / 447.9 MB, free: 44.07 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002426/0.1853, allocations: 4.802 MB / 452.7 MB, free: 40.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003897/0.1857, allocations: 399.4 kB / 453.1 MB, free: 40.83 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.1859, allocations: 189.5 kB / 453.3 MB, free: 40.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.809e-05/0.1859, allocations: 11.94 kB / 453.3 MB, free: 40.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.731e-05/0.1859, allocations: 43.91 kB / 453.3 MB, free: 40.77 MB / 410.7 MB Notification: Performance of pre-optimization done (n=43): time 2.084e-06/0.1859, allocations: 0 / 453.3 MB, free: 40.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=44): time 0.001019/0.1869, allocations: 1.082 MB / 454.4 MB, free: 40.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.839e-05/0.187, allocations: 86.3 kB / 454.5 MB, free: 40.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002797/0.1872, allocations: 0.5167 MB / 455 MB, free: 40.26 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.1872, allocations: 33.39 kB / 455.1 MB, free: 40.23 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.1874, allocations: 465.3 kB / 455.5 MB, free: 39.87 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.22e-05/0.1874, allocations: 157.7 kB / 455.7 MB, free: 39.75 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.811e-05/0.1875, allocations: 158.8 kB / 455.8 MB, free: 39.67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.807e-05/0.1876, allocations: 367.7 kB / 456.2 MB, free: 39.33 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001992/0.1878, allocations: 234 kB / 456.4 MB, free: 39.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000295/0.1881, allocations: 0.6214 MB / 457 MB, free: 38.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005496/0.1886, allocations: 0.9338 MB / 458 MB, free: 38.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1886, allocations: 7.766 kB / 458 MB, free: 38.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0006979/0.1893, allocations: 0.8969 MB / 458.9 MB, free: 37.74 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.1893, allocations: 12.06 kB / 458.9 MB, free: 37.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.1893, allocations: 11.78 kB / 458.9 MB, free: 37.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.1894, allocations: 18.84 kB / 458.9 MB, free: 37.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003461/0.1897, allocations: 218.8 kB / 459.1 MB, free: 37.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.512e-05/0.1897, allocations: 32.59 kB / 459.2 MB, free: 37.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002111/0.1899, allocations: 52.39 kB / 459.2 MB, free: 37.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.243e-05/0.19, allocations: 46.66 kB / 459.3 MB, free: 37.71 MB / 410.7 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.0001913/0.1902, allocations: 304.2 kB / 459.6 MB, free: 37.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.377e-05/0.1902, allocations: 65.06 kB / 459.6 MB, free: 37.49 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005466/0.1907, allocations: 0.5562 MB / 460.2 MB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.758e-06/0.1908, allocations: 3.094 kB / 460.2 MB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.1908, allocations: 7.188 kB / 460.2 MB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.922e-06/0.1908, allocations: 0 / 460.2 MB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.1918, allocations: 1.257 MB / 461.4 MB, free: 36.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.1918, allocations: 2.938 kB / 461.4 MB, free: 36.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002134/0.1921, allocations: 107 kB / 461.5 MB, free: 36.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.1921, allocations: 6.406 kB / 461.6 MB, free: 36.64 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/0.1921, allocations: 15.28 kB / 461.6 MB, free: 36.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.289e-06/0.1921, allocations: 8.25 kB / 461.6 MB, free: 36.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.1921, allocations: 7.375 kB / 461.6 MB, free: 36.63 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004726/0.1926, allocations: 0.6398 MB / 462.2 MB, free: 36.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.972e-05/0.1926, allocations: 58 kB / 462.3 MB, free: 36.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.033e-05/0.1927, allocations: 13.94 kB / 462.3 MB, free: 36.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.1928, allocations: 24.02 kB / 462.3 MB, free: 36.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.502e-05/0.1928, allocations: 37.64 kB / 462.4 MB, free: 36.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.409e-05/0.1929, allocations: 23.94 kB / 462.4 MB, free: 36.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000219/0.1931, allocations: 332.5 kB / 462.7 MB, free: 36.04 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1931, allocations: 0 / 462.7 MB, free: 36.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004291/0.1935, allocations: 160 kB / 462.9 MB, free: 36.02 MB / 410.7 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.0006055/0.1941, allocations: 1.198 MB / 464.1 MB, free: 35.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000564/0.1947, allocations: 0.5856 MB / 464.6 MB, free: 34.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1947, allocations: 0.9375 kB / 464.6 MB, free: 34.97 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000194/0.1949, allocations: 224.4 kB / 464.9 MB, free: 34.91 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005018/0.1954, allocations: 111.9 kB / 465 MB, free: 34.88 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00391/0.1993, allocations: 5.771 MB / 470.7 MB, free: 31.26 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.1995, allocations: 402.3 kB / 471.1 MB, free: 31.14 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002808/0.1998, allocations: 225.6 kB / 471.4 MB, free: 31.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002/0.2, allocations: 257.5 kB / 471.6 MB, free: 30.93 MB / 410.7 MB Notification: Performance of SimCode: time 5.41e-07/0.2, allocations: 0 / 471.6 MB, free: 30.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0266/0.2266, allocations: 12.37 MB / 484 MB, free: 29.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.945/7.171, allocations: 2.125 kB / 484 MB, free: 29.18 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Units.mat","/var/lib/jenkins/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: 9.09965798072517]