Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.AC1ph_DC.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 105.8 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.001501/0.001501, allocations: 189.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.414/1.414, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1747/0.1747, allocations: 38.03 MB / 329.4 MB, free: 9.062 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 65.56 kB / 398.3 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.127, allocations: 58.06 MB / 456.4 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.006423/0.1335, allocations: 4.71 MB / 461.1 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002252/0.1358, allocations: 1.087 MB / 462.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004884/0.1363, allocations: 27.81 kB / 462.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002865/0.1366, allocations: 39.69 kB / 462.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006805/0.1373, allocations: 167.3 kB / 462.4 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002871/0.1376, allocations: 71.88 kB / 462.5 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004845/0.1381, allocations: 406.5 kB / 462.9 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002391/0.1384, allocations: 126.2 kB / 463 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002953/0.1387, allocations: 175.3 kB / 463.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003046/0.139, allocations: 191.3 kB / 463.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.93e-05/0.139, allocations: 16 kB / 463.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.486e-05/0.1391, allocations: 20 kB / 463.4 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.1392, allocations: 95.72 kB / 463.5 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.1393, allocations: 139.2 kB / 463.6 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002845/0.1396, allocations: 287 kB / 463.9 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1396, allocations: 4 kB / 463.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1396, allocations: 0 / 463.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.493e-05/0.1397, allocations: 0 / 463.9 MB, free: 0.8789 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001015/0.1407, allocations: 0.5853 MB / 464.5 MB, free: 252 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.1407, allocations: 12.03 kB / 464.5 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.85e-05/0.1408, allocations: 32.56 kB / 464.5 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004584/0.1413, allocations: 323 kB / 464.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.1413, allocations: 20.56 kB / 464.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.207e-05/0.1414, allocations: 20 kB / 464.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004127/0.1418, allocations: 294.8 kB / 465.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.1418, allocations: 3.938 kB / 465.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.569e-05/0.1418, allocations: 7.984 kB / 465.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1418, allocations: 8 kB / 465.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002758/0.1421, allocations: 173 kB / 465.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001364/0.1435, allocations: 1.232 MB / 466.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.1438, allocations: 121.2 kB / 466.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.307e-05/0.1439, allocations: 41.77 kB / 466.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.1439, allocations: 4 kB / 466.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.144, allocations: 34.5 kB / 466.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.144, allocations: 0 / 466.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008324/0.1448, allocations: 496.3 kB / 467.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.1449, allocations: 77.11 kB / 467.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002474/0.1451, allocations: 250.7 kB / 467.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.1451, allocations: 29.7 kB / 467.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.1453, allocations: 191.6 kB / 467.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.134e-05/0.1453, allocations: 35.45 kB / 467.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.24e-05/0.1454, allocations: 49.73 kB / 467.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1455, allocations: 338.8 kB / 468.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.315e-05/0.1456, allocations: 39.92 kB / 468.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.1457, allocations: 131.7 kB / 468.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002141/0.1459, allocations: 188.7 kB / 468.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.146, allocations: 4 kB / 468.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000298/0.1463, allocations: 213.7 kB / 468.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.1463, allocations: 6.344 kB / 468.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.1463, allocations: 4.094 kB / 468.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.1463, allocations: 8.375 kB / 468.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.1465, allocations: 47.92 kB / 468.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.1465, allocations: 7.984 kB / 468.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.1466, allocations: 11.94 kB / 468.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.1466, allocations: 8 kB / 468.9 MB, free: 11.45 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): 24 * 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.0001427/0.1468, allocations: 157.7 kB / 469 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.331e-05/0.1468, allocations: 19.72 kB / 469 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002292/0.1471, allocations: 131.3 kB / 469.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1471, allocations: 8 kB / 469.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1471, allocations: 0 / 469.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.1471, allocations: 3.938 kB / 469.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005156/0.1476, allocations: 483.2 kB / 469.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1476, allocations: 0 / 469.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.1478, allocations: 23.98 kB / 469.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.1478, allocations: 0 / 469.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.1478, allocations: 3.938 kB / 469.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.1478, allocations: 4 kB / 469.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1478, allocations: 4.031 kB / 469.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003009/0.1481, allocations: 280.9 kB / 470 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.026e-05/0.1482, allocations: 96.86 kB / 470 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.098e-05/0.1482, allocations: 7.938 kB / 470.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.1483, allocations: 0 / 470.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.237e-05/0.1484, allocations: 16.05 kB / 470.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.467e-06/0.1484, allocations: 8 kB / 470.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001424/0.1485, allocations: 174 kB / 470.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.303e-06/0.1485, allocations: 0 / 470.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003058/0.1488, allocations: 47.94 kB / 470.3 MB, free: 9.898 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.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 (13): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.713e-05/0.1489, allocations: 99.17 kB / 470.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002518/0.1492, allocations: 128.5 kB / 470.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1492, allocations: 0 / 470.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.408e-05/0.1493, allocations: 47.86 kB / 470.6 MB, free: 9.621 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004632/0.1498, allocations: 61.22 kB / 470.6 MB, free: 9.566 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008608/0.1506, allocations: 0.6345 MB / 471.3 MB, free: 8.895 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.151, allocations: 0.7753 MB / 472 MB, free: 8.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001214/0.1511, allocations: 38.27 kB / 472.1 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.875e-05/0.1512, allocations: 19.44 kB / 472.1 MB, free: 8.035 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1512, allocations: 0 / 472.1 MB, free: 8.035 MB / 350.1 MB Notification: Performance of Templates: time 0.004787/0.156, allocations: 1.989 MB / 474.1 MB, free: 6.066 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches