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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 117.7 kB / 17.7 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001596/0.001596, allocations: 191 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.647/1.647, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1938/0.1938, allocations: 38.04 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002328/0.002328, allocations: 60.53 kB / 400.3 MB, free: 33.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1761/0.1784, allocations: 58.06 MB / 458.3 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.008549/0.1871, allocations: 5.444 MB / 463.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002226/0.1893, allocations: 1.107 MB / 464.9 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002394/0.1896, allocations: 15.88 kB / 464.9 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002951/0.19, allocations: 83.22 kB / 465 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008141/0.1908, allocations: 294.3 kB / 465.3 MB, free: 404 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003291/0.1911, allocations: 139.8 kB / 465.4 MB, free: 264 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008378/0.192, allocations: 0.7046 MB / 466.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003592/0.1923, allocations: 172.7 kB / 466.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000408/0.1928, allocations: 306.6 kB / 466.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005529/0.1933, allocations: 330.8 kB / 466.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.11e-05/0.1934, allocations: 32 kB / 466.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.189e-05/0.1935, allocations: 32 kB / 466.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002023/0.1937, allocations: 163.5 kB / 467.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002635/0.1939, allocations: 238.8 kB / 467.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005634/0.1945, allocations: 0.4903 MB / 467.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.1945, allocations: 0 / 467.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1945, allocations: 0 / 467.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.1946, allocations: 0 / 467.8 MB, free: 13.8 MB / 350.1 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.001465/0.196, allocations: 0.793 MB / 468.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.1961, allocations: 11.97 kB / 468.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.1962, allocations: 60.28 kB / 468.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007906/0.197, allocations: 460.1 kB / 469.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.786e-05/0.197, allocations: 29 kB / 469.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.597e-05/0.1971, allocations: 36 kB / 469.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006873/0.1978, allocations: 459.6 kB / 469.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.1979, allocations: 3.938 kB / 469.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.934e-05/0.1979, allocations: 19.94 kB / 469.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.1979, allocations: 15.94 kB / 469.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004844/0.1984, allocations: 304.7 kB / 470 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002197/0.2006, allocations: 1.763 MB / 471.8 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002537/0.2009, allocations: 147.6 kB / 471.9 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.525e-05/0.201, allocations: 54.62 kB / 472 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.201, allocations: 4 kB / 472 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/0.2011, allocations: 38.5 kB / 472 MB, free: 9.363 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.2011, allocations: 0 / 472 MB, free: 9.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001103/0.2022, allocations: 0.608 MB / 472.6 MB, free: 8.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.434e-05/0.2023, allocations: 106.8 kB / 472.7 MB, free: 8.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004042/0.2027, allocations: 373.5 kB / 473.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.139e-05/0.2027, allocations: 29.7 kB / 473.1 MB, free: 8.156 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002187/0.203, allocations: 275.4 kB / 473.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.136e-05/0.203, allocations: 55.2 kB / 473.4 MB, free: 7.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.396e-05/0.2031, allocations: 69.59 kB / 473.5 MB, free: 7.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.2033, allocations: 350.8 kB / 473.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.858e-05/0.2034, allocations: 39.98 kB / 473.9 MB, free: 7.359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001907/0.2036, allocations: 198.5 kB / 474.1 MB, free: 7.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003258/0.2039, allocations: 262.6 kB / 474.3 MB, free: 6.773 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.204, allocations: 8 kB / 474.3 MB, free: 6.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004376/0.2044, allocations: 285.2 kB / 474.6 MB, free: 6.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.2044, allocations: 12.08 kB / 474.6 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.2045, allocations: 8 kB / 474.6 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.44e-05/0.2045, allocations: 7.984 kB / 474.6 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002525/0.2047, allocations: 71.91 kB / 474.7 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.903e-05/0.2048, allocations: 11.94 kB / 474.7 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001561/0.2049, allocations: 8 kB / 474.7 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.335e-05/0.205, allocations: 12 kB / 474.7 MB, free: 6.352 MB / 350.1 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.0001996/0.2052, allocations: 189.6 kB / 474.9 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.007e-05/0.2052, allocations: 35.53 kB / 475 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003046/0.2056, allocations: 177.1 kB / 475.1 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.2056, allocations: 4 kB / 475.1 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.2056, allocations: 0 / 475.1 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.2056, allocations: 3.984 kB / 475.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007197/0.2063, allocations: 0.5345 MB / 475.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.2063, allocations: 96 / 475.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.2065, allocations: 39.92 kB / 475.7 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.626e-06/0.2065, allocations: 8.031 kB / 475.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.496e-05/0.2066, allocations: 0 / 475.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.2066, allocations: 4 kB / 475.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.2066, allocations: 3.938 kB / 475.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004452/0.207, allocations: 396 kB / 476.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.2072, allocations: 116.6 kB / 476.2 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.077e-05/0.2072, allocations: 4 kB / 476.2 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.2074, allocations: 11.94 kB / 476.2 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.967e-05/0.2074, allocations: 8.031 kB / 476.3 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.2074, allocations: 7.984 kB / 476.3 MB, free: 4.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002658/0.2077, allocations: 255.2 kB / 476.5 MB, free: 4.469 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2077, allocations: 3.938 kB / 476.5 MB, free: 4.465 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003988/0.2081, allocations: 72 kB / 476.6 MB, free: 4.395 MB / 350.1 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.0001305/0.2082, allocations: 99.25 kB / 476.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003044/0.2086, allocations: 162.6 kB / 476.8 MB, free: 4.133 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2086, allocations: 1.25 kB / 476.8 MB, free: 4.133 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.377e-05/0.2087, allocations: 59.84 kB / 476.9 MB, free: 4.074 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006895/0.2094, allocations: 97.75 kB / 477 MB, free: 3.977 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.2108, allocations: 0.8524 MB / 477.8 MB, free: 3.082 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004871/0.2113, allocations: 0.8426 MB / 478.7 MB, free: 2.215 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001435/0.2115, allocations: 51.25 kB / 478.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.023e-05/0.2116, allocations: 27.44 kB / 478.8 MB, free: 2.141 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2116, allocations: 0 / 478.8 MB, free: 2.141 MB / 350.1 MB Notification: Performance of Templates: time 0.007984/0.2196, allocations: 3.242 MB / 482 MB, free: 14.94 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches