Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001675/0.001676, allocations: 110 kB / 17.68 MB, free: 5.332 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.001788/0.001789, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.669/1.669, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.191/0.191, allocations: 38.03 MB / 330.5 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00167/0.001671, allocations: 67.09 kB / 400.3 MB, free: 33.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.166, allocations: 58.06 MB / 458.3 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.008735/0.1748, allocations: 4.046 MB / 462.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.1767, allocations: 0.8958 MB / 463.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000214/0.177, allocations: 15.88 kB / 463.3 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002896/0.1773, allocations: 43.58 kB / 463.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006034/0.1779, allocations: 191 kB / 463.5 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002544/0.1782, allocations: 87.83 kB / 463.6 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005282/0.1787, allocations: 406.5 kB / 464 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003085/0.1791, allocations: 118.2 kB / 464.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002849/0.1794, allocations: 183.2 kB / 464.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000529/0.1799, allocations: 199.3 kB / 464.5 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.566e-05/0.18, allocations: 20 kB / 464.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.124e-05/0.18, allocations: 24 kB / 464.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000154/0.1802, allocations: 103.7 kB / 464.6 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002887/0.1805, allocations: 151.2 kB / 464.8 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004222/0.1809, allocations: 310.8 kB / 465.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.1809, allocations: 0 / 465.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.1809, allocations: 4 kB / 465.1 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.1809, allocations: 0 / 465.1 MB, free: 0.5312 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001371/0.1823, allocations: 0.6206 MB / 465.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.1824, allocations: 11.89 kB / 465.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.703e-05/0.1825, allocations: 36.47 kB / 465.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006218/0.1831, allocations: 351 kB / 466.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.661e-05/0.1831, allocations: 20.94 kB / 466.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.845e-05/0.1832, allocations: 24.12 kB / 466.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000547/0.1838, allocations: 316.5 kB / 466.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.1838, allocations: 0 / 466.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.384e-05/0.1838, allocations: 12 kB / 466.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.1838, allocations: 11.94 kB / 466.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003903/0.1842, allocations: 221.5 kB / 466.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/0.1861, allocations: 1.34 MB / 468 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004116/0.1866, allocations: 149.1 kB / 468.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.1867, allocations: 61.75 kB / 468.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.586e-05/0.1867, allocations: 0 / 468.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.1868, allocations: 30.56 kB / 468.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.112e-06/0.1868, allocations: 3.938 kB / 468.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009801/0.1878, allocations: 367.8 kB / 468.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.673e-05/0.1879, allocations: 85.05 kB / 468.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003259/0.1882, allocations: 259 kB / 469 MB, free: 12.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.29e-05/0.1882, allocations: 25.7 kB / 469 MB, free: 12.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.1884, allocations: 203.6 kB / 469.2 MB, free: 12.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.833e-05/0.1885, allocations: 43.36 kB / 469.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.1886, allocations: 49.69 kB / 469.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000212/0.1888, allocations: 346.9 kB / 469.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.1889, allocations: 51.97 kB / 469.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.1891, allocations: 149.7 kB / 469.8 MB, free: 11.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003344/0.1895, allocations: 224.6 kB / 470 MB, free: 11.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1895, allocations: 7.875 kB / 470 MB, free: 11.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004021/0.1899, allocations: 241.8 kB / 470.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.591e-05/0.19, allocations: 11.98 kB / 470.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.19, allocations: 8 kB / 470.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.519e-05/0.19, allocations: 4.438 kB / 470.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001918/0.1902, allocations: 55.91 kB / 470.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.1902, allocations: 4 kB / 470.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001266/0.1904, allocations: 11.91 kB / 470.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.765e-05/0.1904, allocations: 15.98 kB / 470.4 MB, free: 10.82 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 (25): * Single equations (assignments): 25 * 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.0002097/0.1906, allocations: 161.6 kB / 470.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.562e-05/0.1907, allocations: 23.72 kB / 470.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004089/0.1911, allocations: 198.7 kB / 470.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.1911, allocations: 11.92 kB / 470.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.1911, allocations: 4 kB / 470.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.1911, allocations: 0 / 470.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008109/0.192, allocations: 0.546 MB / 471.3 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.192, allocations: 0 / 471.3 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001417/0.1921, allocations: 35.86 kB / 471.3 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1921, allocations: 0 / 471.3 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.519e-05/0.1922, allocations: 11.98 kB / 471.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.1922, allocations: 3.938 kB / 471.4 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1922, allocations: 0 / 471.4 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004007/0.1926, allocations: 296.8 kB / 471.7 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.993e-05/0.1927, allocations: 96.73 kB / 471.7 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.978e-05/0.1927, allocations: 8 kB / 471.8 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.1929, allocations: 3.938 kB / 471.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.469e-05/0.1929, allocations: 15.97 kB / 471.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.968e-05/0.193, allocations: 12 kB / 471.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00019/0.1932, allocations: 178 kB / 472 MB, free: 9.113 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1932, allocations: 0 / 472 MB, free: 9.113 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003389/0.1935, allocations: 55.94 kB / 472 MB, free: 9.059 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (17): * Single equations (assignments): 16 * 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.0001738/0.1937, allocations: 107.1 kB / 472.1 MB, free: 8.945 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003476/0.194, allocations: 152.7 kB / 472.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.1941, allocations: 4 kB / 472.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.1942, allocations: 71.91 kB / 472.3 MB, free: 8.723 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005481/0.1947, allocations: 63.92 kB / 472.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001007/0.1958, allocations: 0.5231 MB / 472.9 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004919/0.1963, allocations: 0.7831 MB / 473.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001338/0.1964, allocations: 42.27 kB / 473.8 MB, free: 7.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.661e-05/0.1965, allocations: 19.44 kB / 473.8 MB, free: 7.238 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1965, allocations: 0 / 473.8 MB, free: 7.238 MB / 350.1 MB Notification: Performance of Templates: time 0.006639/0.2031, allocations: 2.218 MB / 476 MB, free: 5.043 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches