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.001325/0.001325, allocations: 107.8 kB / 16.92 MB, free: 6.145 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.00139/0.00139, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.454/1.454, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1773/0.1773, allocations: 38.05 MB / 329.7 MB, free: 8.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 64.89 kB / 398.8 MB, free: 34.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1151, allocations: 58.06 MB / 456.9 MB, free: 8.031 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.007713/0.1228, allocations: 4.334 MB / 461.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002102/0.125, allocations: 0.9466 MB / 462.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003318/0.1253, allocations: 11.94 kB / 462.2 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002887/0.1257, allocations: 55.5 kB / 462.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008317/0.1265, allocations: 242.8 kB / 462.4 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003457/0.1269, allocations: 99.8 kB / 462.5 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007703/0.1277, allocations: 0.4906 MB / 463 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003215/0.128, allocations: 151.8 kB / 463.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004482/0.1285, allocations: 223.1 kB / 463.4 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005189/0.129, allocations: 267.1 kB / 463.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.796e-05/0.1291, allocations: 20 kB / 463.7 MB, free: 1.184 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.008e-05/0.1292, allocations: 24 kB / 463.7 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001922/0.1294, allocations: 151.6 kB / 463.9 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002435/0.1296, allocations: 175.1 kB / 464 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000388/0.13, allocations: 358.7 kB / 464.4 MB, free: 500 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.13, allocations: 4 kB / 464.4 MB, free: 496 kB / 334.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.13, allocations: 0 / 464.4 MB, free: 496 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.1301, allocations: 3.938 kB / 464.4 MB, free: 492 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001304/0.1314, allocations: 0.6555 MB / 465 MB, free: 15.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.1314, allocations: 15.83 kB / 465.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.1315, allocations: 40.47 kB / 465.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005223/0.1321, allocations: 351.8 kB / 465.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/0.1321, allocations: 32.67 kB / 465.5 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.481e-05/0.1322, allocations: 24 kB / 465.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005247/0.1327, allocations: 348.7 kB / 465.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.1327, allocations: 3.938 kB / 465.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.268e-05/0.1328, allocations: 12 kB / 465.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001089/0.1329, allocations: 32.53 kB / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003793/0.1333, allocations: 242 kB / 466.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001723/0.135, allocations: 1.37 MB / 467.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003888/0.1354, allocations: 161.1 kB / 467.6 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002286/0.1356, allocations: 101.7 kB / 467.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.669e-05/0.1357, allocations: 0 / 467.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.1357, allocations: 50.48 kB / 467.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.353e-06/0.1357, allocations: 0 / 467.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.00142/0.1371, allocations: 0.7627 MB / 468.6 MB, free: 12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.13e-05/0.1372, allocations: 85.05 kB / 468.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002917/0.1375, allocations: 300.4 kB / 468.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.1375, allocations: 29.7 kB / 469 MB, free: 11.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.1377, allocations: 215.6 kB / 469.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.391e-05/0.1377, allocations: 51.27 kB / 469.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.525e-05/0.1378, allocations: 57.67 kB / 469.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.138, allocations: 342.8 kB / 469.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.1381, allocations: 63.97 kB / 469.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001744/0.1383, allocations: 173.3 kB / 469.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003068/0.1386, allocations: 260.6 kB / 470.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1386, allocations: 0 / 470.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005056/0.1391, allocations: 313.7 kB / 470.4 MB, free: 9.988 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.1391, allocations: 8.438 kB / 470.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.138e-06/0.1391, allocations: 4 kB / 470.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002262/0.1394, allocations: 56.81 kB / 470.5 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.1396, allocations: 47.92 kB / 470.5 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/0.141, allocations: 1.605 MB / 472.1 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001526/0.1412, allocations: 12 kB / 472.1 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.795e-05/0.1412, allocations: 8 kB / 472.1 MB, free: 8.105 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.0001899/0.1414, allocations: 181.8 kB / 472.3 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.496e-05/0.1414, allocations: 27.62 kB / 472.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004237/0.1419, allocations: 242.3 kB / 472.6 MB, free: 7.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.1419, allocations: 4 kB / 472.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.1419, allocations: 0 / 472.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1419, allocations: 0 / 472.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008333/0.1427, allocations: 0.6404 MB / 473.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1428, allocations: 0 / 473.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.1429, allocations: 23.94 kB / 473.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002012/0.1431, allocations: 60.78 kB / 473.3 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.749e-05/0.1431, allocations: 4 kB / 473.3 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/0.1444, allocations: 1.617 MB / 474.9 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.1444, allocations: 0 / 474.9 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005287/0.145, allocations: 412.8 kB / 475.3 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.029e-05/0.1451, allocations: 104.7 kB / 475.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.812e-05/0.1451, allocations: 11.92 kB / 475.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.1453, allocations: 8.125 kB / 475.5 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.857e-05/0.1453, allocations: 11.98 kB / 475.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.1453, allocations: 4 kB / 475.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002011/0.1455, allocations: 215 kB / 475.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.783e-06/0.1455, allocations: 0 / 475.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004048/0.1459, allocations: 67.94 kB / 475.7 MB, free: 4.234 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.0001138/0.1461, allocations: 99.25 kB / 475.8 MB, free: 4.129 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005967/0.1467, allocations: 318.3 kB / 476.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.1467, allocations: 0 / 476.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003602/0.1471, allocations: 210.3 kB / 476.4 MB, free: 3.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005222/0.1476, allocations: 70.31 kB / 476.4 MB, free: 3.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/0.1488, allocations: 0.7286 MB / 477.2 MB, free: 2.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004466/0.1493, allocations: 0.8104 MB / 478 MB, free: 1.934 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001495/0.1494, allocations: 42.95 kB / 478 MB, free: 1.891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.34e-05/0.1495, allocations: 23.44 kB / 478 MB, free: 1.867 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1495, allocations: 0 / 478 MB, free: 1.867 MB / 350.1 MB Notification: Performance of Templates: time 0.006653/0.1561, allocations: 2.947 MB / 481 MB, free: 14.94 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mat","/var/lib/jenkins/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