Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00207/0.002069, allocations: 113.3 kB / 17.69 MB, free: 5.312 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.002771/0.002771, allocations: 191 kB / 18.63 MB, free: 4.379 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.671/1.671, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1927/0.1927, allocations: 38.03 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 63.84 kB / 400.3 MB, free: 33.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1597/0.161, allocations: 58.05 MB / 458.3 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.009741/0.1708, allocations: 5.503 MB / 463.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002994/0.1739, allocations: 1.375 MB / 465.2 MB, free: 424 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004097/0.1743, allocations: 23.88 kB / 465.2 MB, free: 400 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006666/0.175, allocations: 131 kB / 465.4 MB, free: 268 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001188/0.1762, allocations: 386.1 kB / 465.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004893/0.1767, allocations: 147.8 kB / 465.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009813/0.1777, allocations: 0.7826 MB / 466.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003782/0.1781, allocations: 217.7 kB / 466.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005316/0.1787, allocations: 346.5 kB / 467.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007074/0.1794, allocations: 398.6 kB / 467.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.087e-05/0.1795, allocations: 40 kB / 467.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.931e-05/0.1796, allocations: 40 kB / 467.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002469/0.1798, allocations: 203.5 kB / 467.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003287/0.1802, allocations: 282.5 kB / 468.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007313/0.1809, allocations: 0.5722 MB / 468.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1809, allocations: 4 kB / 468.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1809, allocations: 0 / 468.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.1809, allocations: 0 / 468.7 MB, free: 12.88 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001733/0.1827, allocations: 0.8918 MB / 469.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/0.1827, allocations: 8.031 kB / 469.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.1829, allocations: 60.28 kB / 469.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009734/0.1838, allocations: 0.5141 MB / 470.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.992e-05/0.1839, allocations: 32.94 kB / 470.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.212e-05/0.184, allocations: 40 kB / 470.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008665/0.1849, allocations: 0.5351 MB / 470.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.1849, allocations: 0 / 470.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.882e-05/0.185, allocations: 19.98 kB / 470.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.25e-05/0.185, allocations: 21 kB / 470.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006584/0.1857, allocations: 391.6 kB / 471.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0028/0.1885, allocations: 1.924 MB / 473.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006488/0.1892, allocations: 329.4 kB / 473.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003568/0.1895, allocations: 193.6 kB / 473.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.608e-05/0.1896, allocations: 0 / 473.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004656/0.1901, allocations: 284.8 kB / 473.9 MB, free: 7.363 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.853e-06/0.1901, allocations: 3.938 kB / 473.9 MB, free: 7.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.002116/0.1922, allocations: 1.187 MB / 475.1 MB, free: 6.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.1923, allocations: 162.3 kB / 475.3 MB, free: 5.902 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000475/0.1928, allocations: 397.9 kB / 475.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.211e-05/0.1929, allocations: 33.7 kB / 475.7 MB, free: 5.461 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002433/0.1931, allocations: 299.5 kB / 476 MB, free: 5.164 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.1932, allocations: 118.4 kB / 476.1 MB, free: 5.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.1934, allocations: 90.16 kB / 476.2 MB, free: 4.953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.1936, allocations: 358.8 kB / 476.6 MB, free: 4.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002096/0.1938, allocations: 121 kB / 476.7 MB, free: 4.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003425/0.1941, allocations: 290.1 kB / 477 MB, free: 4.117 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007116/0.1949, allocations: 485.3 kB / 477.4 MB, free: 3.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1949, allocations: 0 / 477.4 MB, free: 3.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008524/0.1957, allocations: 0.522 MB / 478 MB, free: 3.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.203e-05/0.1958, allocations: 33.7 kB / 478 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.1958, allocations: 4 kB / 478 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.827e-05/0.1959, allocations: 8 kB / 478 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004332/0.1963, allocations: 111.8 kB / 478.1 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.804e-05/0.1963, allocations: 8 kB / 478.1 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002614/0.1966, allocations: 27.91 kB / 478.1 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.605e-05/0.1967, allocations: 39.91 kB / 478.2 MB, free: 2.789 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * 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.0002938/0.197, allocations: 244.4 kB / 478.4 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.076e-05/0.197, allocations: 51.38 kB / 478.5 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000724/0.1978, allocations: 455.5 kB / 478.9 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.1978, allocations: 4.062 kB / 478.9 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/0.1978, allocations: 4 kB / 478.9 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.1978, allocations: 0 / 478.9 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/0.1993, allocations: 0.9809 MB / 479.9 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1993, allocations: 0 / 479.9 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003302/0.1996, allocations: 63.89 kB / 480 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.1997, allocations: 4 kB / 480 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.457e-05/0.1997, allocations: 12 kB / 480 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.1997, allocations: 4 kB / 480 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1997, allocations: 0 / 480 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.2008, allocations: 0.7172 MB / 480.7 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002276/0.201, allocations: 140.5 kB / 480.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.638e-05/0.2011, allocations: 8 kB / 480.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002147/0.2013, allocations: 15.98 kB / 480.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.749e-05/0.2014, allocations: 19.98 kB / 480.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.858e-05/0.2015, allocations: 31.95 kB / 480.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003331/0.2018, allocations: 275.2 kB / 481.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2018, allocations: 0 / 481.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004725/0.2023, allocations: 107.9 kB / 481.3 MB, free: 15.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.0002079/0.2025, allocations: 109.6 kB / 481.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007452/0.2033, allocations: 412 kB / 481.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2033, allocations: 4.188 kB / 481.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003782/0.2037, allocations: 263.6 kB / 482.1 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006703/0.2044, allocations: 97.62 kB / 482.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/0.2062, allocations: 0.9686 MB / 483.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006424/0.2069, allocations: 0.882 MB / 484 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002576/0.2071, allocations: 92.31 kB / 484.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.984e-05/0.2072, allocations: 31.44 kB / 484.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2072, allocations: 4 kB / 484.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of Templates: time 0.01026/0.2175, allocations: 4.225 MB / 488.4 MB, free: 8.438 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches