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.002168/0.002168, allocations: 113.2 kB / 17.69 MB, free: 5.098 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.002631/0.002631, allocations: 192 kB / 18.63 MB, free: 4.242 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.784/1.784, 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.2051/0.2051, allocations: 38.04 MB / 330.5 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 67.19 kB / 400.3 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1744/0.1759, allocations: 58.06 MB / 458.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.007614/0.1836, allocations: 4.062 MB / 462.4 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001934/0.1856, allocations: 0.9154 MB / 463.3 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002247/0.1858, allocations: 7.938 kB / 463.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002449/0.1861, allocations: 51.5 kB / 463.4 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005907/0.1867, allocations: 183 kB / 463.5 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002829/0.187, allocations: 87.81 kB / 463.6 MB, free: 2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005101/0.1875, allocations: 398.5 kB / 464 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003274/0.1879, allocations: 122.2 kB / 464.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002932/0.1882, allocations: 175.2 kB / 464.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004665/0.1887, allocations: 191.2 kB / 464.5 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.756e-05/0.1887, allocations: 20 kB / 464.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.403e-05/0.1888, allocations: 16 kB / 464.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001409/0.1889, allocations: 95.72 kB / 464.6 MB, free: 1.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001868/0.1891, allocations: 143.2 kB / 464.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003959/0.1895, allocations: 290.9 kB / 465 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1895, allocations: 0 / 465 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1895, allocations: 0 / 465 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.218e-06/0.1896, allocations: 0 / 465 MB, free: 0.5781 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.001127/0.1907, allocations: 0.5816 MB / 465.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.1908, allocations: 8.031 kB / 465.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.65e-05/0.1908, allocations: 36.56 kB / 465.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006042/0.1914, allocations: 346.8 kB / 466 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.642e-05/0.1915, allocations: 24.56 kB / 466 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.563e-05/0.1915, allocations: 16 kB / 466.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004564/0.192, allocations: 298.8 kB / 466.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.192, allocations: 0 / 466.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.818e-05/0.1921, allocations: 12 kB / 466.4 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.1921, allocations: 4 kB / 466.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003186/0.1924, allocations: 180.9 kB / 466.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001648/0.1941, allocations: 1.224 MB / 467.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003461/0.1944, allocations: 109.2 kB / 467.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.851e-05/0.1945, allocations: 49.77 kB / 467.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.1946, allocations: 0 / 467.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/0.1946, allocations: 38.55 kB / 468 MB, free: 13.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.202e-06/0.1946, allocations: 0 / 468 MB, free: 13.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.001018/0.1956, allocations: 496.2 kB / 468.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.836e-05/0.1957, allocations: 81.11 kB / 468.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002843/0.196, allocations: 246.7 kB / 468.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.716e-05/0.1961, allocations: 29.7 kB / 468.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.1962, allocations: 199.6 kB / 469 MB, free: 12.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.302e-05/0.1963, allocations: 35.45 kB / 469 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.112e-05/0.1964, allocations: 45.83 kB / 469.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.1966, allocations: 338.8 kB / 469.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.531e-05/0.1967, allocations: 35.98 kB / 469.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.1969, allocations: 135.6 kB / 469.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000277/0.1971, allocations: 188.7 kB / 469.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1972, allocations: 0 / 469.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003485/0.1975, allocations: 201.8 kB / 469.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/0.1975, allocations: 11.94 kB / 470 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.1976, allocations: 4.438 kB / 470 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.899e-05/0.1976, allocations: 8 kB / 470 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.1978, allocations: 43.92 kB / 470 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.697e-05/0.1978, allocations: 7.984 kB / 470 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.1979, allocations: 11.94 kB / 470 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/0.198, allocations: 8.094 kB / 470 MB, free: 11.14 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.0001999/0.1982, allocations: 161.6 kB / 470.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.749e-05/0.1982, allocations: 19.72 kB / 470.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003021/0.1985, allocations: 131.3 kB / 470.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1985, allocations: 4 kB / 470.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.1986, allocations: 4 kB / 470.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.1986, allocations: 7.922 kB / 470.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007051/0.1993, allocations: 479.1 kB / 470.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1993, allocations: 4 kB / 470.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001227/0.1994, allocations: 23.92 kB / 470.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.648e-06/0.1995, allocations: 7.984 kB / 470.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/0.1995, allocations: 7.938 kB / 470.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.1995, allocations: 4.031 kB / 470.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.185e-06/0.1995, allocations: 4 kB / 470.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004388/0.1999, allocations: 280.1 kB / 471.1 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.874e-05/0.2, allocations: 96.8 kB / 471.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.7e-05/0.2001, allocations: 11.94 kB / 471.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.2002, allocations: 0 / 471.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.351e-05/0.2003, allocations: 12.05 kB / 471.3 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.2003, allocations: 8 kB / 471.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001994/0.2005, allocations: 170 kB / 471.4 MB, free: 9.625 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2005, allocations: 0 / 471.4 MB, free: 9.625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003384/0.2008, allocations: 47.98 kB / 471.5 MB, free: 9.578 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 0.000203/0.201, allocations: 99.19 kB / 471.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000288/0.2013, allocations: 115.9 kB / 471.7 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.2014, allocations: 0 / 471.7 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.747e-05/0.2015, allocations: 47.92 kB / 471.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005673/0.202, allocations: 49.41 kB / 471.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001187/0.2032, allocations: 0.5483 MB / 472.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005777/0.2038, allocations: 0.7637 MB / 473.1 MB, free: 7.891 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001268/0.204, allocations: 30.28 kB / 473.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.1e-05/0.2041, allocations: 27.38 kB / 473.2 MB, free: 7.836 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2041, allocations: 0 / 473.2 MB, free: 7.836 MB / 350.1 MB Notification: Performance of Templates: time 0.006849/0.2109, allocations: 2 MB / 475.2 MB, free: 5.859 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins1/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