Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.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.0008393/0.0008393, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.000782/0.000782, allocations: 174 kB / 23.95 MB, free: 0.6133 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.9164/0.9164, allocations: 177.1 MB / 204.2 MB, free: 5.719 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.2293/0.2293, allocations: 29.41 MB / 290.1 MB, free: 2.449 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.Frequency,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.942e-05/2.123e-05, allocations: 2.281 kB / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.006007/0.006028, allocations: 5.189 MB / 435.4 MB, free: 8.402 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.007204, allocations: 1.083 MB / 436.5 MB, free: 7.316 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001859/0.00739, allocations: 27.75 kB / 436.5 MB, free: 7.289 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002165/0.007607, allocations: 83.2 kB / 436.6 MB, free: 7.207 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005249/0.008132, allocations: 306 kB / 436.9 MB, free: 6.906 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001915/0.008323, allocations: 147.7 kB / 437 MB, free: 6.762 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000474/0.008797, allocations: 0.7237 MB / 437.7 MB, free: 6.035 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002023/0.008999, allocations: 121.1 kB / 437.9 MB, free: 5.906 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003941/0.009393, allocations: 426.6 kB / 438.3 MB, free: 5.488 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003074/0.009701, allocations: 303.2 kB / 438.6 MB, free: 5.191 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.111e-05/0.009742, allocations: 32 kB / 438.6 MB, free: 5.16 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.491e-05/0.009787, allocations: 32 kB / 438.6 MB, free: 5.129 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001115/0.009898, allocations: 171.5 kB / 438.8 MB, free: 4.961 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002512/0.01015, allocations: 163.6 kB / 439 MB, free: 4.801 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000336/0.01049, allocations: 486.3 kB / 439.4 MB, free: 4.324 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.01049, allocations: 0 / 439.4 MB, free: 4.324 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.01049, allocations: 11.88 kB / 439.4 MB, free: 4.312 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.0105, allocations: 0 / 439.4 MB, free: 4.312 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.0008159/0.01131, allocations: 0.725 MB / 440.2 MB, free: 3.555 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.01135, allocations: 12.03 kB / 440.2 MB, free: 3.543 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.462e-05/0.0114, allocations: 74.72 kB / 440.3 MB, free: 3.461 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.387e-05/0.01146, allocations: 56.56 kB / 440.3 MB, free: 3.406 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004393/0.0119, allocations: 384.9 kB / 440.7 MB, free: 3.008 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.01191, allocations: 29.38 kB / 440.7 MB, free: 2.98 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.092e-05/0.01196, allocations: 43.88 kB / 440.8 MB, free: 2.938 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004053/0.01236, allocations: 459.6 kB / 441.2 MB, free: 2.449 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.01237, allocations: 0 / 441.2 MB, free: 2.449 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.0124, allocations: 16 kB / 441.2 MB, free: 2.434 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.0124, allocations: 8 kB / 441.2 MB, free: 2.426 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003067/0.01271, allocations: 308.5 kB / 441.5 MB, free: 2.125 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.01389, allocations: 1.655 MB / 443.2 MB, free: 372 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.01405, allocations: 131.7 kB / 443.3 MB, free: 212 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.605e-05/0.0141, allocations: 58.61 kB / 443.4 MB, free: 144 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.598e-05/0.01412, allocations: 8 kB / 443.4 MB, free: 136 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.01415, allocations: 42.5 kB / 443.4 MB, free: 84 kB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 1.132e-06/0.01415, allocations: 0 / 443.4 MB, free: 84 kB / 410.7 MB Notification: Performance of matching and sorting (n=15): time 0.1752/0.1893, allocations: 0.5358 MB / 444 MB, free: 54.58 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.1894, allocations: 106.8 kB / 444.1 MB, free: 54.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002872/0.1896, allocations: 382 kB / 444.4 MB, free: 54.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.081e-05/0.1897, allocations: 33.14 kB / 444.5 MB, free: 54.31 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.706e-05/0.1897, allocations: 284.2 kB / 444.7 MB, free: 54.16 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.532e-05/0.1898, allocations: 60.36 kB / 444.8 MB, free: 54.12 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.04e-05/0.1898, allocations: 64.48 kB / 444.9 MB, free: 54.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.858e-05/0.1899, allocations: 348.8 kB / 445.2 MB, free: 53.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.446e-05/0.1899, allocations: 47.34 kB / 445.2 MB, free: 53.79 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.833e-05/0.19, allocations: 189.2 kB / 445.4 MB, free: 53.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.1902, allocations: 264 kB / 445.7 MB, free: 53.44 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.1902, allocations: 6.906 kB / 445.7 MB, free: 53.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002424/0.1904, allocations: 293 kB / 446 MB, free: 53.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.1904, allocations: 6.25 kB / 446 MB, free: 53.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.1905, allocations: 8.281 kB / 446 MB, free: 53.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.1905, allocations: 6.219 kB / 446 MB, free: 53.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.1906, allocations: 70.92 kB / 446.1 MB, free: 53.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.1906, allocations: 12.53 kB / 446.1 MB, free: 53.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.839e-05/0.1907, allocations: 13.8 kB / 446.1 MB, free: 53.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.1907, allocations: 16.69 kB / 446.1 MB, free: 53.29 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * 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.0001266/0.1909, allocations: 186 kB / 446.3 MB, free: 53.13 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.653e-05/0.1909, allocations: 41.42 kB / 446.3 MB, free: 53.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001789/0.1911, allocations: 168.2 kB / 446.5 MB, free: 53.03 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1911, allocations: 7.25 kB / 446.5 MB, free: 53.02 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1911, allocations: 2.906 kB / 446.5 MB, free: 53.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.1911, allocations: 3.188 kB / 446.5 MB, free: 53.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003797/0.1915, allocations: 488.7 kB / 447 MB, free: 52.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1915, allocations: 0 / 447 MB, free: 52.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.1916, allocations: 36.02 kB / 447 MB, free: 52.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.1916, allocations: 6.531 kB / 447 MB, free: 52.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.1916, allocations: 7.281 kB / 447 MB, free: 52.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1916, allocations: 3.625 kB / 447 MB, free: 52.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1916, allocations: 0 / 447 MB, free: 52.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002314/0.1918, allocations: 394.8 kB / 447.4 MB, free: 52.37 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.194e-05/0.1919, allocations: 46.16 kB / 447.5 MB, free: 52.34 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.484e-05/0.1919, allocations: 3.125 kB / 447.5 MB, free: 52.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.19e-05/0.192, allocations: 7.031 kB / 447.5 MB, free: 52.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.051e-05/0.192, allocations: 13.92 kB / 447.5 MB, free: 52.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.685e-06/0.192, allocations: 5.906 kB / 447.5 MB, free: 52.33 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001228/0.1921, allocations: 254.2 kB / 447.8 MB, free: 52.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1921, allocations: 2.406 kB / 447.8 MB, free: 52.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002599/0.1924, allocations: 68.95 kB / 447.8 MB, free: 52.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * 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.0003015/0.1927, allocations: 0.9387 MB / 448.8 MB, free: 51.37 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001683/0.1929, allocations: 157.5 kB / 448.9 MB, free: 51.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1929, allocations: 0 / 448.9 MB, free: 51.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.177e-05/0.1929, allocations: 54.98 kB / 449 MB, free: 51.31 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004262/0.1933, allocations: 102.7 kB / 449.1 MB, free: 51.28 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001987/0.1953, allocations: 3.324 MB / 452.4 MB, free: 48.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001206/0.1954, allocations: 233.1 kB / 452.6 MB, free: 48.87 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.482e-05/0.1955, allocations: 55.19 kB / 452.7 MB, free: 48.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.1956, allocations: 145.2 kB / 452.8 MB, free: 48.75 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.1956, allocations: 4 kB / 452.8 MB, free: 48.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02075/0.2164, allocations: 8.036 MB / 460.9 MB, free: 47.31 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.705/6.921, allocations: 10.34 kB / 460.9 MB, free: 47.3 MB / 410.7 MB " [Timeout remaining time 653] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.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: 8.844937342219055]