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.001181/0.001181, allocations: 111.3 kB / 17.68 MB, free: 5.355 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.00116/0.00116, allocations: 192 kB / 18.62 MB, free: 4.434 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.445/1.445, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2027/0.2027, allocations: 38.04 MB / 330.5 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002123/0.002123, allocations: 63.11 kB / 400.2 MB, free: 33.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1064, allocations: 58.06 MB / 458.3 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.004937/0.1114, allocations: 3.434 MB / 461.7 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00201/0.1134, allocations: 1.442 MB / 463.2 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.1136, allocations: 11.94 kB / 463.2 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007983/0.1144, allocations: 264.4 kB / 463.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006556/0.1151, allocations: 278.9 kB / 463.7 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003109/0.1154, allocations: 111.7 kB / 463.8 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004073/0.1158, allocations: 327.1 kB / 464.2 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003455/0.1162, allocations: 137.9 kB / 464.3 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002401/0.1164, allocations: 155.4 kB / 464.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002253/0.1167, allocations: 147.4 kB / 464.6 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.691e-05/0.1167, allocations: 16 kB / 464.6 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004732/0.1172, allocations: 307.2 kB / 464.9 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.1173, allocations: 95.77 kB / 465 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.1175, allocations: 103.5 kB / 465.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004496/0.1179, allocations: 354.9 kB / 465.4 MB, free: 156 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1179, allocations: 0 / 465.4 MB, free: 156 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1179, allocations: 0 / 465.4 MB, free: 156 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.1179, allocations: 0 / 465.4 MB, free: 156 kB / 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.0006556/0.1186, allocations: 0.5026 MB / 465.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.1186, allocations: 12.03 kB / 466 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008242/0.1195, allocations: 88.55 kB / 466 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003954/0.1199, allocations: 270.6 kB / 466.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.1199, allocations: 20.27 kB / 466.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.088e-05/0.12, allocations: 28.09 kB / 466.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000518/0.1205, allocations: 314.4 kB / 466.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.224e-05/0.1205, allocations: 3.938 kB / 466.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.886e-05/0.1206, allocations: 4 kB / 466.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.022e-05/0.1206, allocations: 15.98 kB / 466.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004533/0.1211, allocations: 287.8 kB / 467 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002014/0.1231, allocations: 1.297 MB / 468.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006349/0.1237, allocations: 213.2 kB / 468.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.346e-05/0.1238, allocations: 53.77 kB / 468.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/0.1239, allocations: 7.938 kB / 468.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/0.1239, allocations: 34.5 kB / 468.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.264e-06/0.1239, allocations: 224 / 468.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009334/0.1249, allocations: 434.1 kB / 469 MB, free: 12.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/0.1249, allocations: 81.11 kB / 469.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000163/0.1251, allocations: 190.3 kB / 469.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.1251, allocations: 29.7 kB / 469.3 MB, free: 12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.731e-05/0.1252, allocations: 159.8 kB / 469.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.51e-05/0.1253, allocations: 55.36 kB / 469.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.956e-05/0.1254, allocations: 53.61 kB / 469.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.1255, allocations: 326.8 kB / 469.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.228e-05/0.1256, allocations: 55.91 kB / 469.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.1257, allocations: 149.7 kB / 470.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002778/0.126, allocations: 232.6 kB / 470.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.126, allocations: 4 kB / 470.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004834/0.1265, allocations: 258.3 kB / 470.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.1265, allocations: 12.03 kB / 470.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.1265, allocations: 4 kB / 470.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002392/0.1268, allocations: 36.83 kB / 470.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.1269, allocations: 43.91 kB / 470.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001225/0.1282, allocations: 1.437 MB / 472.1 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.1283, allocations: 8 kB / 472.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.223e-05/0.1283, allocations: 15.98 kB / 472.1 MB, free: 8.914 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.0001342/0.1285, allocations: 158.3 kB / 472.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.032e-05/0.1285, allocations: 19.75 kB / 472.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003494/0.1289, allocations: 191 kB / 472.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.1289, allocations: 4 kB / 472.5 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1289, allocations: 0 / 472.5 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1289, allocations: 7.922 kB / 472.5 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007709/0.1297, allocations: 0.5647 MB / 473 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.1297, allocations: 0 / 473 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.386e-05/0.1298, allocations: 23.98 kB / 473.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000128/0.1299, allocations: 28.83 kB / 473.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.13, allocations: 12.03 kB / 473.1 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009865/0.1309, allocations: 1.423 MB / 474.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.131, allocations: 4.031 kB / 474.5 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003362/0.1313, allocations: 295.5 kB / 474.8 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.619e-05/0.1314, allocations: 96.91 kB / 474.9 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.34e-05/0.1314, allocations: 4 kB / 474.9 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.1315, allocations: 4 kB / 474.9 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.334e-05/0.1316, allocations: 19.86 kB / 474.9 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.443e-05/0.1316, allocations: 8 kB / 475 MB, free: 5.801 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001046/0.1317, allocations: 139.1 kB / 475.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.457e-06/0.1317, allocations: 4 kB / 475.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000346/0.1321, allocations: 55.92 kB / 475.1 MB, free: 5.605 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.0001004/0.1322, allocations: 111.1 kB / 475.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004496/0.1326, allocations: 259.2 kB / 475.5 MB, free: 5.219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1326, allocations: 4.188 kB / 475.5 MB, free: 5.215 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002144/0.1329, allocations: 178.8 kB / 475.7 MB, free: 5.027 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.1332, allocations: 31.92 kB / 475.7 MB, free: 4.996 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007179/0.1339, allocations: 455.2 kB / 476.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003149/0.1343, allocations: 0.7554 MB / 476.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000102/0.1344, allocations: 41.52 kB / 477 MB, free: 3.688 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.693e-05/0.1344, allocations: 15.44 kB / 477 MB, free: 3.676 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1344, allocations: 3.938 kB / 477 MB, free: 3.672 MB / 350.1 MB Notification: Performance of Templates: time 0.004252/0.1387, allocations: 1.659 MB / 478.6 MB, free: 2.02 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.ImpedanceTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches