Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.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.ImpedanceTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|load.i.1.|load.i.2.|load.p.1.|load.p.2.|load.v.1.|load.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest") translateModel(PowerSystems.Examples.Generic.Test.ImpedanceTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|load.i.1.|load.i.2.|load.p.1.|load.p.2.|load.v.1.|load.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 109.7 kB / 16.62 MB, free: 6.812 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.001567/0.001567, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.365/1.365, allocations: 222.9 MB / 241.2 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.249/0.249, allocations: 38.03 MB / 329.4 MB, free: 9.051 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 60.36 kB / 398.3 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1075, allocations: 58.06 MB / 456.3 MB, free: 8.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.005452/0.113, allocations: 3.674 MB / 460 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002311/0.1153, allocations: 1.5 MB / 461.5 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001667/0.1155, allocations: 11.94 kB / 461.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007636/0.1163, allocations: 239.2 kB / 461.8 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005998/0.117, allocations: 259.1 kB / 462 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002927/0.1173, allocations: 95.81 kB / 462.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003743/0.1176, allocations: 335 kB / 462.4 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003333/0.118, allocations: 157.9 kB / 462.6 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002262/0.1182, allocations: 155.3 kB / 462.7 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002923/0.1185, allocations: 163.4 kB / 462.9 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.686e-05/0.1186, allocations: 16 kB / 462.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005112/0.1191, allocations: 311.2 kB / 463.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.1192, allocations: 91.77 kB / 463.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.1194, allocations: 107.5 kB / 463.4 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000452/0.1198, allocations: 366.9 kB / 463.8 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1198, allocations: 0 / 463.8 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1198, allocations: 4 kB / 463.8 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.1198, allocations: 0 / 463.8 MB, free: 0.9727 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.0006733/0.1205, allocations: 0.5064 MB / 464.3 MB, free: 428 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.1206, allocations: 12.03 kB / 464.3 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008488/0.1214, allocations: 88.55 kB / 464.4 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002802/0.1217, allocations: 258.7 kB / 464.6 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.1217, allocations: 24.31 kB / 464.7 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.076e-05/0.1218, allocations: 20.2 kB / 464.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004496/0.1223, allocations: 310.3 kB / 465 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.1223, allocations: 7.984 kB / 465 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.525e-05/0.1223, allocations: 11.91 kB / 465 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.056e-05/0.1224, allocations: 15.98 kB / 465 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003948/0.1228, allocations: 287.7 kB / 465.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001578/0.1243, allocations: 1.297 MB / 466.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005797/0.1249, allocations: 213.1 kB / 466.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.193e-05/0.125, allocations: 61.75 kB / 466.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.017e-05/0.1251, allocations: 7.938 kB / 466.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.1251, allocations: 34.56 kB / 466.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.653e-06/0.1251, allocations: 0 / 466.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009425/0.1261, allocations: 430.1 kB / 467.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.563e-05/0.1261, allocations: 81.11 kB / 467.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001736/0.1263, allocations: 194.3 kB / 467.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.1263, allocations: 29.7 kB / 467.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.1264, allocations: 159.8 kB / 467.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.016e-05/0.1265, allocations: 51.5 kB / 467.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.674e-05/0.1266, allocations: 41.62 kB / 467.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.1267, allocations: 346.8 kB / 468.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.772e-05/0.1268, allocations: 51.97 kB / 468.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.127, allocations: 145.7 kB / 468.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002471/0.1272, allocations: 233.2 kB / 468.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1272, allocations: 0 / 468.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004108/0.1276, allocations: 258 kB / 468.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.1277, allocations: 4 kB / 468.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1277, allocations: 4.438 kB / 468.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002246/0.1279, allocations: 44.77 kB / 468.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.1281, allocations: 55.84 kB / 469 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.1292, allocations: 1.441 MB / 470.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.1293, allocations: 8 kB / 470.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.1293, allocations: 11.98 kB / 470.5 MB, free: 9.727 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (24): * Single equations (assignments): 23 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000129/0.1295, allocations: 154.3 kB / 470.6 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.267e-05/0.1295, allocations: 23.75 kB / 470.6 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003833/0.1299, allocations: 190.5 kB / 470.8 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.1299, allocations: 4 kB / 470.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.1299, allocations: 0 / 470.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.1299, allocations: 3.984 kB / 470.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007722/0.1307, allocations: 0.564 MB / 471.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1307, allocations: 0 / 471.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.654e-05/0.1308, allocations: 23.92 kB / 471.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001326/0.131, allocations: 36.92 kB / 471.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.131, allocations: 11.94 kB / 471.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009759/0.132, allocations: 1.419 MB / 472.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.132, allocations: 3.938 kB / 472.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003483/0.1323, allocations: 299.5 kB / 473.2 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.89e-05/0.1324, allocations: 96.91 kB / 473.3 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.145e-05/0.1325, allocations: 4 kB / 473.3 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.1326, allocations: 8 kB / 473.3 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.929e-05/0.1326, allocations: 11.92 kB / 473.3 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.301e-05/0.1326, allocations: 12 kB / 473.3 MB, free: 6.609 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000103/0.1327, allocations: 147.1 kB / 473.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1327, allocations: 0 / 473.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003639/0.1331, allocations: 48 kB / 473.5 MB, free: 6.418 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (14): * Single equations (assignments): 12 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001018/0.1332, allocations: 107.1 kB / 473.6 MB, free: 6.301 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004509/0.1337, allocations: 274.7 kB / 473.9 MB, free: 6.023 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1337, allocations: 0 / 473.9 MB, free: 6.023 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002216/0.1339, allocations: 174.6 kB / 474 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003718/0.1343, allocations: 28.75 kB / 474.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007523/0.1351, allocations: 0.5308 MB / 474.6 MB, free: 5.246 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.1354, allocations: 0.7593 MB / 475.4 MB, free: 4.457 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001144/0.1355, allocations: 37.52 kB / 475.4 MB, free: 4.418 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.022e-05/0.1355, allocations: 15.44 kB / 475.4 MB, free: 4.402 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1356, allocations: 0 / 475.4 MB, free: 4.402 MB / 350.1 MB Notification: Performance of Templates: time 0.004239/0.1398, allocations: 1.689 MB / 477.1 MB, free: 2.715 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.ImpedanceTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches