Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001511/0.001511, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001807/0.001807, allocations: 192 kB / 18.63 MB, free: 4.375 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.384/1.384, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1779/0.1779, allocations: 38.04 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 61.55 kB / 400.3 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1185, allocations: 58.07 MB / 458.3 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.00677/0.1253, allocations: 4.331 MB / 462.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001568/0.1269, allocations: 0.9466 MB / 463.6 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001543/0.1271, allocations: 11.94 kB / 463.6 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002148/0.1273, allocations: 55.5 kB / 463.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006907/0.128, allocations: 246.8 kB / 463.9 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002324/0.1283, allocations: 91.81 kB / 464 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006174/0.1289, allocations: 0.4945 MB / 464.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002641/0.1292, allocations: 147.9 kB / 464.6 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003003/0.1295, allocations: 227 kB / 464.9 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004862/0.13, allocations: 263.1 kB / 465.1 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.468e-05/0.13, allocations: 27.94 kB / 465.1 MB, free: 500 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.164e-05/0.1301, allocations: 27.94 kB / 465.2 MB, free: 472 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002252/0.1303, allocations: 143.6 kB / 465.3 MB, free: 328 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001825/0.1305, allocations: 179.1 kB / 465.5 MB, free: 148 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003895/0.1309, allocations: 366.7 kB / 465.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1309, allocations: 4 kB / 465.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1309, allocations: 0 / 465.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.1309, allocations: 0 / 465.9 MB, free: 15.78 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001223/0.1322, allocations: 0.6581 MB / 466.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.1322, allocations: 15.89 kB / 466.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.921e-05/0.1323, allocations: 36.47 kB / 466.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005664/0.1329, allocations: 383.7 kB / 466.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.1329, allocations: 28.69 kB / 467 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.175e-05/0.133, allocations: 24 kB / 467 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004987/0.1335, allocations: 348.7 kB / 467.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.1335, allocations: 4 kB / 467.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.67e-05/0.1335, allocations: 15.98 kB / 467.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001032/0.1336, allocations: 28.53 kB / 467.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003745/0.134, allocations: 242 kB / 467.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001695/0.1357, allocations: 1.362 MB / 469 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003801/0.1361, allocations: 169 kB / 469.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00024/0.1364, allocations: 101.7 kB / 469.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.1364, allocations: 4 kB / 469.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.1364, allocations: 30.56 kB / 469.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.1365, allocations: 4 kB / 469.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.00154/0.138, allocations: 0.7573 MB / 470 MB, free: 11.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.828e-05/0.1381, allocations: 77.11 kB / 470.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/0.1384, allocations: 300.4 kB / 470.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.1384, allocations: 33.83 kB / 470.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.1386, allocations: 215.6 kB / 470.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.198e-05/0.1386, allocations: 55.23 kB / 470.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.497e-05/0.1387, allocations: 53.61 kB / 470.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.1388, allocations: 338.8 kB / 471.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.1389, allocations: 67.95 kB / 471.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.1391, allocations: 173.3 kB / 471.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002968/0.1394, allocations: 264 kB / 471.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1394, allocations: 0 / 471.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004497/0.1399, allocations: 314 kB / 471.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.1399, allocations: 7.984 kB / 471.9 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.1399, allocations: 4 kB / 471.9 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001987/0.1401, allocations: 52.77 kB / 471.9 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001788/0.1403, allocations: 59.84 kB / 472 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001408/0.1417, allocations: 1.601 MB / 473.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.1419, allocations: 20.08 kB / 473.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.164e-05/0.1419, allocations: 12 kB / 473.6 MB, free: 7.387 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 (28): * Single equations (assignments): 27 * 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.0001773/0.1421, allocations: 173.7 kB / 473.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.129e-05/0.1422, allocations: 27.62 kB / 473.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000394/0.1426, allocations: 244.2 kB / 474.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.1426, allocations: 0 / 474.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.1426, allocations: 4 kB / 474.1 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1426, allocations: 4 kB / 474.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008972/0.1435, allocations: 0.6366 MB / 474.7 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1435, allocations: 0 / 474.7 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.1436, allocations: 19.98 kB / 474.7 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001859/0.1438, allocations: 60.8 kB / 474.8 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.1438, allocations: 7.984 kB / 474.8 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001273/0.1451, allocations: 1.605 MB / 476.4 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1451, allocations: 3.984 kB / 476.4 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005063/0.1457, allocations: 404.2 kB / 476.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.094e-05/0.1457, allocations: 112.7 kB / 476.9 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.264e-05/0.1458, allocations: 4.125 kB / 476.9 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.1459, allocations: 15.98 kB / 476.9 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.243e-05/0.146, allocations: 7.984 kB / 476.9 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.146, allocations: 8 kB / 477 MB, free: 3.801 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001845/0.1462, allocations: 215 kB / 477.2 MB, free: 3.594 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1462, allocations: 0 / 477.2 MB, free: 3.594 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003605/0.1465, allocations: 64 kB / 477.2 MB, free: 3.531 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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): 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.0001184/0.1467, allocations: 107.2 kB / 477.3 MB, free: 3.418 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005343/0.1472, allocations: 304.9 kB / 477.6 MB, free: 3.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1472, allocations: 4 kB / 477.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003264/0.1476, allocations: 203.5 kB / 477.8 MB, free: 2.895 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004835/0.148, allocations: 67.94 kB / 477.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.1492, allocations: 0.7247 MB / 478.6 MB, free: 2.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004004/0.1496, allocations: 0.8104 MB / 479.4 MB, free: 1.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001293/0.1497, allocations: 42.95 kB / 479.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.292e-05/0.1498, allocations: 27.36 kB / 479.5 MB, free: 1.172 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1498, allocations: 0 / 479.5 MB, free: 1.172 MB / 350.1 MB Notification: Performance of Templates: time 0.006557/0.1563, allocations: 2.938 MB / 482.4 MB, free: 14.26 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches