Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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.000935/0.000935, allocations: 83.69 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.0009884/0.0009884, allocations: 170 kB / 23.95 MB, free: 0.6172 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.8832/0.8832, allocations: 177.1 MB / 204.2 MB, free: 5.742 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.2207/0.2207, allocations: 29.41 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.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 430.2 MB, free: 13.63 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.652e-05/1.833e-05, allocations: 4.672 kB / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.004129/0.004147, allocations: 4.308 MB / 434.5 MB, free: 9.289 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.005869, allocations: 1.402 MB / 435.9 MB, free: 7.883 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001874/0.006057, allocations: 19.81 kB / 435.9 MB, free: 7.863 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006518/0.006709, allocations: 362.4 kB / 436.3 MB, free: 7.508 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004015/0.00711, allocations: 234.7 kB / 436.5 MB, free: 7.277 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005146/0.007625, allocations: 263.1 kB / 436.8 MB, free: 7.02 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004367/0.008061, allocations: 0.5377 MB / 437.3 MB, free: 6.48 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003023/0.008364, allocations: 225.4 kB / 437.5 MB, free: 6.258 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003945/0.008758, allocations: 334.9 kB / 437.8 MB, free: 5.93 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002805/0.009039, allocations: 279.3 kB / 438.1 MB, free: 5.656 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.324e-05/0.009072, allocations: 32 kB / 438.2 MB, free: 5.625 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002145/0.009286, allocations: 159.6 kB / 438.3 MB, free: 5.469 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001436/0.00943, allocations: 231.4 kB / 438.5 MB, free: 5.242 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.009551, allocations: 159.6 kB / 438.7 MB, free: 5.086 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004278/0.009979, allocations: 0.5725 MB / 439.3 MB, free: 4.512 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.564e-06/0.009981, allocations: 3.938 kB / 439.3 MB, free: 4.508 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.009982, allocations: 4 kB / 439.3 MB, free: 4.504 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.009989, allocations: 0 / 439.3 MB, free: 4.504 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.000932/0.01092, allocations: 0.6707 MB / 439.9 MB, free: 3.801 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.01096, allocations: 15.98 kB / 440 MB, free: 3.785 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.293e-05/0.01102, allocations: 82.7 kB / 440 MB, free: 3.695 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003748/0.0114, allocations: 120.5 kB / 440.2 MB, free: 3.578 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000413/0.01181, allocations: 344 kB / 440.5 MB, free: 3.207 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.01183, allocations: 29.38 kB / 440.5 MB, free: 3.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.531e-05/0.01192, allocations: 44.56 kB / 440.6 MB, free: 3.137 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000528/0.01244, allocations: 0.6249 MB / 441.2 MB, free: 2.445 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.01246, allocations: 11.94 kB / 441.2 MB, free: 2.434 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.939e-05/0.01249, allocations: 19.98 kB / 441.2 MB, free: 2.414 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.067e-05/0.01255, allocations: 28.98 kB / 441.2 MB, free: 2.387 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004534/0.013, allocations: 475.5 kB / 441.7 MB, free: 1.922 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1774/0.1904, allocations: 2.741 MB / 444.5 MB, free: 52.69 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002868/0.1907, allocations: 223 kB / 444.7 MB, free: 52.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.1908, allocations: 131.2 kB / 444.8 MB, free: 52.63 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/0.1908, allocations: 3.844 kB / 444.8 MB, free: 52.63 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.1908, allocations: 40.47 kB / 444.8 MB, free: 52.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 2.024e-06/0.1908, allocations: 3.156 kB / 444.8 MB, free: 52.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=28): time 0.001087/0.1919, allocations: 0.8885 MB / 445.7 MB, free: 52.36 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.1919, allocations: 83.14 kB / 445.8 MB, free: 52.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001974/0.1921, allocations: 339.3 kB / 446.1 MB, free: 52.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.1922, allocations: 29.7 kB / 446.2 MB, free: 52.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.723e-05/0.1922, allocations: 276.7 kB / 446.4 MB, free: 51.87 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.256e-05/0.1923, allocations: 111.3 kB / 446.6 MB, free: 51.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.952e-05/0.1924, allocations: 91.3 kB / 446.6 MB, free: 51.75 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.812e-05/0.1924, allocations: 346.5 kB / 447 MB, free: 51.42 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.1925, allocations: 144.3 kB / 447.1 MB, free: 51.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001668/0.1927, allocations: 348.4 kB / 447.5 MB, free: 51.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003347/0.193, allocations: 0.5246 MB / 448 MB, free: 50.74 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.193, allocations: 6.688 kB / 448 MB, free: 50.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004238/0.1935, allocations: 0.5248 MB / 448.5 MB, free: 50.53 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.1935, allocations: 13.03 kB / 448.5 MB, free: 50.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.1935, allocations: 6.562 kB / 448.5 MB, free: 50.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.1935, allocations: 9.125 kB / 448.5 MB, free: 50.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002305/0.1937, allocations: 122.6 kB / 448.7 MB, free: 50.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.1937, allocations: 15.06 kB / 448.7 MB, free: 50.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/0.1939, allocations: 27.56 kB / 448.7 MB, free: 50.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.1939, allocations: 23.34 kB / 448.7 MB, free: 50.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * 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.0001374/0.194, allocations: 216.3 kB / 448.9 MB, free: 50.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.256e-05/0.1941, allocations: 39.95 kB / 449 MB, free: 50.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003459/0.1944, allocations: 357.7 kB / 449.3 MB, free: 50.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1944, allocations: 7.031 kB / 449.3 MB, free: 50.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.1944, allocations: 3.25 kB / 449.3 MB, free: 50.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1944, allocations: 0 / 449.3 MB, free: 50.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000713/0.1951, allocations: 0.8286 MB / 450.2 MB, free: 49.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1951, allocations: 0 / 450.2 MB, free: 49.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.1953, allocations: 65.34 kB / 450.2 MB, free: 49.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1953, allocations: 3.094 kB / 450.2 MB, free: 49.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.1953, allocations: 14.52 kB / 450.3 MB, free: 49.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.1953, allocations: 10.34 kB / 450.3 MB, free: 49.69 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1953, allocations: 2.625 kB / 450.3 MB, free: 49.69 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004118/0.1957, allocations: 0.5835 MB / 450.8 MB, free: 49.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.995e-05/0.1958, allocations: 25.19 kB / 450.9 MB, free: 49.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.886e-05/0.1958, allocations: 10.5 kB / 450.9 MB, free: 49.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.583e-05/0.1959, allocations: 13.94 kB / 450.9 MB, free: 49.35 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.987e-05/0.1959, allocations: 21.16 kB / 450.9 MB, free: 49.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.1959, allocations: 9.938 kB / 450.9 MB, free: 49.34 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001119/0.196, allocations: 220.4 kB / 451.1 MB, free: 49.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.196, allocations: 0 / 451.1 MB, free: 49.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002725/0.1963, allocations: 93 kB / 451.2 MB, free: 49.22 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (31): * Single equations (assignments): 30 * 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.0005094/0.1968, allocations: 1.141 MB / 452.4 MB, free: 48.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003056/0.1971, allocations: 344.8 kB / 452.7 MB, free: 48.26 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1971, allocations: 3.188 kB / 452.7 MB, free: 48.26 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.1972, allocations: 139.3 kB / 452.8 MB, free: 48.22 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.1976, allocations: 68.94 kB / 452.9 MB, free: 48.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002422/0.2, allocations: 3.892 MB / 456.8 MB, free: 45.65 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001422/0.2001, allocations: 262.5 kB / 457.1 MB, free: 45.54 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001784/0.2003, allocations: 130.9 kB / 457.2 MB, free: 45.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.2004, allocations: 136.5 kB / 457.3 MB, free: 45.43 MB / 410.7 MB Notification: Performance of SimCode: time 8.72e-07/0.2004, allocations: 0 / 457.3 MB, free: 45.43 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01893/0.2194, allocations: 7.927 MB / 465.3 MB, free: 44.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.619/6.838, allocations: 13.72 kB / 465.3 MB, free: 44.06 MB / 410.7 MB " [Timeout remaining time 653] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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.721066155470908]