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.001471/0.001471, allocations: 101.3 kB / 16.5 MB, free: 6.691 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.001615/0.001615, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.448/1.448, allocations: 222.9 MB / 241.1 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1756/0.1756, allocations: 38.04 MB / 329.3 MB, free: 9.07 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 56.75 kB / 398.1 MB, free: 34.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1135, allocations: 58.07 MB / 456.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.00862/0.1222, allocations: 6.902 MB / 463.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002931/0.1251, allocations: 1.547 MB / 464.6 MB, free: 52 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000435/0.1256, allocations: 47.69 kB / 464.7 MB, free: 4 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002744/0.1259, allocations: 63.53 kB / 464.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000938/0.1269, allocations: 274.7 kB / 465 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003656/0.1272, allocations: 123.9 kB / 465.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009574/0.1282, allocations: 0.9619 MB / 466.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000263/0.1285, allocations: 144.2 kB / 466.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003595/0.1289, allocations: 270.6 kB / 466.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000477/0.1293, allocations: 334.8 kB / 466.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.378e-05/0.1294, allocations: 24 kB / 466.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.531e-05/0.1295, allocations: 20 kB / 466.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001638/0.1297, allocations: 155.4 kB / 467 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002332/0.1299, allocations: 230.8 kB / 467.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005106/0.1304, allocations: 474.2 kB / 467.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1304, allocations: 0 / 467.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1304, allocations: 4 kB / 467.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.1305, allocations: 0 / 467.7 MB, free: 12.95 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.001383/0.1318, allocations: 0.7851 MB / 468.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.1319, allocations: 12.03 kB / 468.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.845e-05/0.132, allocations: 52.38 kB / 468.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006058/0.1326, allocations: 436.1 kB / 469 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.79e-05/0.1326, allocations: 25 kB / 469 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.345e-05/0.1327, allocations: 39.94 kB / 469 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006985/0.1334, allocations: 459.6 kB / 469.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.1334, allocations: 3.938 kB / 469.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.1335, allocations: 16 kB / 469.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.91e-05/0.1335, allocations: 12 kB / 469.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005471/0.1341, allocations: 308.7 kB / 469.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001973/0.136, allocations: 1.763 MB / 471.6 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002312/0.1363, allocations: 143.6 kB / 471.7 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.108e-05/0.1364, allocations: 62.56 kB / 471.8 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.1364, allocations: 8 kB / 471.8 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.1365, allocations: 30.56 kB / 471.8 MB, free: 8.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.1365, allocations: 0 / 471.8 MB, free: 8.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009977/0.1375, allocations: 0.5999 MB / 472.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.252e-05/0.1376, allocations: 110.9 kB / 472.5 MB, free: 7.762 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004073/0.138, allocations: 369.5 kB / 472.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.903e-05/0.1381, allocations: 29.7 kB / 472.9 MB, free: 7.355 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001912/0.1383, allocations: 287.2 kB / 473.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.442e-05/0.1383, allocations: 59.14 kB / 473.2 MB, free: 7.012 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.213e-05/0.1384, allocations: 57.69 kB / 473.3 MB, free: 6.949 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1386, allocations: 350.8 kB / 473.6 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.924e-05/0.1387, allocations: 48.42 kB / 473.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.1388, allocations: 198.5 kB / 473.9 MB, free: 6.289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003019/0.1392, allocations: 267 kB / 474.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1392, allocations: 0 / 474.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004121/0.1396, allocations: 296.7 kB / 474.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.1396, allocations: 12.61 kB / 474.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.1396, allocations: 4 kB / 474.5 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.1397, allocations: 12 kB / 474.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000248/0.1399, allocations: 71.84 kB / 474.5 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.1399, allocations: 4 kB / 474.5 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/0.1401, allocations: 15.91 kB / 474.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.1401, allocations: 16 kB / 474.6 MB, free: 5.531 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.0001872/0.1403, allocations: 189.6 kB / 474.8 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.087e-05/0.1404, allocations: 35.53 kB / 474.8 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002859/0.1407, allocations: 168.8 kB / 475 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.1407, allocations: 0 / 475 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1407, allocations: 7.938 kB / 475 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.1407, allocations: 3.984 kB / 475 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006395/0.1414, allocations: 0.5304 MB / 475.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1414, allocations: 0 / 475.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.1416, allocations: 35.92 kB / 475.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.1416, allocations: 0 / 475.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.1416, allocations: 12.03 kB / 475.5 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.1416, allocations: 0 / 475.5 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.1416, allocations: 7.938 kB / 475.5 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004148/0.142, allocations: 398.3 kB / 475.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.438e-05/0.1421, allocations: 108.6 kB / 476 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.486e-05/0.1422, allocations: 12 kB / 476.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/0.1423, allocations: 7.969 kB / 476.1 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.857e-05/0.1424, allocations: 15.98 kB / 476.1 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.1424, allocations: 4 kB / 476.1 MB, free: 3.898 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002536/0.1426, allocations: 251.2 kB / 476.3 MB, free: 3.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1427, allocations: 3.938 kB / 476.3 MB, free: 3.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003997/0.1431, allocations: 72 kB / 476.4 MB, free: 3.578 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.0001136/0.1432, allocations: 111.1 kB / 476.5 MB, free: 3.461 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002799/0.1435, allocations: 143.7 kB / 476.7 MB, free: 3.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/0.1435, allocations: 4 kB / 476.7 MB, free: 3.316 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.934e-05/0.1436, allocations: 57.78 kB / 476.7 MB, free: 3.262 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006786/0.1443, allocations: 89.62 kB / 476.8 MB, free: 3.176 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/0.1457, allocations: 1.037 MB / 477.8 MB, free: 2.094 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003943/0.1461, allocations: 0.835 MB / 478.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001619/0.1463, allocations: 51.25 kB / 478.7 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.949e-05/0.1463, allocations: 27.44 kB / 478.7 MB, free: 1.16 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1463, allocations: 0 / 478.7 MB, free: 1.16 MB / 350.1 MB Notification: Performance of Templates: time 0.006708/0.153, allocations: 3.086 MB / 481.8 MB, free: 14.12 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 -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/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) Reference file matches