Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.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.Generic.Test.FixedLoadTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest") translateModel(PowerSystems.Examples.Generic.Test.FixedLoadTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 104.5 kB / 16.62 MB, free: 6.324 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.001686/0.001686, allocations: 189.9 kB / 17.55 MB, free: 5.816 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.353/1.353, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.169/0.169, allocations: 38.03 MB / 329.4 MB, free: 9.047 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 71.25 kB / 398.3 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1299, allocations: 58.05 MB / 456.4 MB, free: 8.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedLoadTest): time 0.006466/0.1364, allocations: 3.705 MB / 460.1 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002748/0.1392, allocations: 1.582 MB / 461.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003745/0.1396, allocations: 7.938 kB / 461.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001153/0.1407, allocations: 237.3 kB / 461.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009989/0.1418, allocations: 263.2 kB / 462.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005197/0.1423, allocations: 111.7 kB / 462.2 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006417/0.1429, allocations: 354.9 kB / 462.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004741/0.1434, allocations: 153.9 kB / 462.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003851/0.1438, allocations: 147.4 kB / 462.9 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003396/0.1442, allocations: 171.4 kB / 463.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.331e-05/0.1442, allocations: 12 kB / 463.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006588/0.1449, allocations: 327.2 kB / 463.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001607/0.1451, allocations: 103.8 kB / 463.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001671/0.1452, allocations: 107.4 kB / 463.6 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000684/0.1459, allocations: 382.9 kB / 464 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1459, allocations: 3.938 kB / 464 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.777e-06/0.146, allocations: 4 kB / 464 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.146, allocations: 3.938 kB / 464 MB, free: 0.7773 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008641/0.1468, allocations: 0.5103 MB / 464.5 MB, free: 224 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.1469, allocations: 12.03 kB / 464.5 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001052/0.148, allocations: 96.62 kB / 464.6 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005184/0.1485, allocations: 263.8 kB / 464.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/0.1485, allocations: 16.33 kB / 464.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.057e-05/0.1486, allocations: 24.36 kB / 464.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005415/0.1491, allocations: 322 kB / 465.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.1492, allocations: 4 kB / 465.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.132e-05/0.1492, allocations: 7.984 kB / 465.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.748e-05/0.1492, allocations: 19.98 kB / 465.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004795/0.1497, allocations: 319.7 kB / 465.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001722/0.1515, allocations: 1.264 MB / 466.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002678/0.1517, allocations: 165 kB / 467 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.1519, allocations: 108.8 kB / 467.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.1519, allocations: 4 kB / 467.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.252e-05/0.152, allocations: 34.56 kB / 467.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.643e-06/0.152, allocations: 0 / 467.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001615/0.1536, allocations: 0.6644 MB / 467.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.1537, allocations: 81.11 kB / 467.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001919/0.1539, allocations: 198.3 kB / 468.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.1539, allocations: 25.7 kB / 468.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.154, allocations: 152 kB / 468.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.775e-05/0.1541, allocations: 63.09 kB / 468.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.1542, allocations: 45.64 kB / 468.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.1544, allocations: 334.8 kB / 468.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.1545, allocations: 83.95 kB / 468.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.1547, allocations: 149.4 kB / 468.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003735/0.1551, allocations: 252.4 kB / 469.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.1551, allocations: 0 / 469.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006719/0.1558, allocations: 352.5 kB / 469.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.722e-05/0.1558, allocations: 7.984 kB / 469.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.1558, allocations: 4 kB / 469.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000437/0.1563, allocations: 97 kB / 469.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001631/0.1564, allocations: 35.98 kB / 469.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002902/0.1594, allocations: 2.18 MB / 471.8 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001769/0.1595, allocations: 19.92 kB / 471.8 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/0.1596, allocations: 8 kB / 471.8 MB, free: 8.398 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002012/0.1598, allocations: 158.1 kB / 472 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.234e-05/0.1599, allocations: 23.75 kB / 472 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007433/0.1606, allocations: 320.1 kB / 472.3 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.1606, allocations: 4 kB / 472.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.873e-06/0.1606, allocations: 0 / 472.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.1606, allocations: 0 / 472.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001378/0.162, allocations: 0.745 MB / 473.1 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.162, allocations: 0 / 473.1 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.1622, allocations: 31.91 kB / 473.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003055/0.1625, allocations: 80.84 kB / 473.2 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.191e-05/0.1625, allocations: 4 kB / 473.2 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002296/0.1648, allocations: 2.05 MB / 475.2 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.1648, allocations: 4.031 kB / 475.2 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006565/0.1655, allocations: 410.4 kB / 475.6 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.795e-05/0.1656, allocations: 96.86 kB / 475.7 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.009e-05/0.1657, allocations: 4 kB / 475.7 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.1658, allocations: 11.98 kB / 475.7 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.251e-05/0.1659, allocations: 15.92 kB / 475.8 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.902e-05/0.1659, allocations: 4 kB / 475.8 MB, free: 4.195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001335/0.166, allocations: 143.1 kB / 475.9 MB, free: 4.055 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.166, allocations: 0 / 475.9 MB, free: 4.055 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005395/0.1666, allocations: 68 kB / 476 MB, free: 3.988 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001776/0.1668, allocations: 103.2 kB / 476.1 MB, free: 3.875 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008863/0.1677, allocations: 393.3 kB / 476.5 MB, free: 3.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.1677, allocations: 4.125 kB / 476.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004724/0.1682, allocations: 262.5 kB / 476.7 MB, free: 3.207 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.1686, allocations: 39.8 kB / 476.8 MB, free: 3.168 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001275/0.1699, allocations: 0.5729 MB / 477.3 MB, free: 2.559 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005577/0.1705, allocations: 0.7713 MB / 478.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000139/0.1706, allocations: 33.52 kB / 478.1 MB, free: 1.727 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.897e-05/0.1707, allocations: 19.44 kB / 478.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1707, allocations: 4 kB / 478.2 MB, free: 1.703 MB / 350.1 MB Notification: Performance of Templates: time 0.007958/0.1787, allocations: 2.955 MB / 481.1 MB, free: 14.75 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedLoadTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,line.i[1],line.i[2],line.p[1],line.p[2],line.v[1],line.v[2] Variables in the result:line.L,line.R,line.i[1],line.i[2],line.i_start[1],line.i_start[2],line.p[1],line.p[2],line.terminal_p.v[1],line.v[1],line.v[2],line.v_start[1],line.v_start[2],load.P,load.p[1],load.phi,load.v_start[1],load.v_start[2],source.V,source.definiteReference,source.potentialReference,source.terminal.v[1],system.alpha0,system.dynType,system.f,system.fType,system.f_lim[1],system.f_lim[2],system.f_nom,system.omega_nom,system.refType,system.synRef,system.w_nom,time