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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.000944/0.0009438, allocations: 181 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.426/1.426, allocations: 205.4 MB / 223.5 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008945/0.0008946, allocations: 84.98 kB / 271.9 MB, free: 8.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1723/0.1723, allocations: 38.08 MB / 358.3 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004227/0.0004229, allocations: 19.98 kB / 425.3 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2891, allocations: 56.31 MB / 481.6 MB, free: 9.609 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1345/0.4237, allocations: 100.1 MB / 0.568 GB, free: 2.18 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/0.424, allocations: 95.81 kB / 0.5681 GB, free: 2.09 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.033/0.457, allocations: 11.48 MB / 0.5793 GB, free: 6.457 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.457, allocations: 0 / 0.5793 GB, free: 6.457 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.715e-05/0.4571, allocations: 12 kB / 0.5793 GB, free: 6.445 MB / 410.7 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.001739/0.4588, allocations: 0.8302 MB / 0.5801 GB, free: 5.559 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.4589, allocations: 8.031 kB / 0.5801 GB, free: 5.551 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001991/0.4591, allocations: 68.12 kB / 0.5802 GB, free: 5.484 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001655/0.4608, allocations: 0.8029 MB / 0.581 GB, free: 4.641 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.28e-05/0.4608, allocations: 33.38 kB / 0.581 GB, free: 4.609 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.622e-05/0.4609, allocations: 40.36 kB / 0.5811 GB, free: 4.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008567/0.4618, allocations: 0.532 MB / 0.5816 GB, free: 4 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.4618, allocations: 11.88 kB / 0.5816 GB, free: 3.988 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.407e-05/0.4619, allocations: 16 kB / 0.5816 GB, free: 3.973 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.684e-05/0.4619, allocations: 25 kB / 0.5816 GB, free: 3.949 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007077/0.4626, allocations: 387.6 kB / 0.582 GB, free: 3.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002621/0.4652, allocations: 1.94 MB / 0.5839 GB, free: 1.52 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006123/0.4659, allocations: 333.3 kB / 0.5842 GB, free: 1.176 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003284/0.4662, allocations: 173.7 kB / 0.5844 GB, free: 1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.4663, allocations: 4 kB / 0.5844 GB, free: 0.9961 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003954/0.4667, allocations: 276.4 kB / 0.5846 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 2.464e-06/0.4667, allocations: 0 / 0.5846 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of matching and sorting (n=36): time 0.001923/0.4686, allocations: 1.179 MB / 0.5858 GB, free: 15.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.346e-05/0.4687, allocations: 170.3 kB / 0.586 GB, free: 15.24 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004484/0.4692, allocations: 393.8 kB / 0.5863 GB, free: 14.85 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.877e-05/0.4692, allocations: 29.7 kB / 0.5864 GB, free: 14.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.4694, allocations: 291.6 kB / 0.5866 GB, free: 14.53 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.4695, allocations: 122.3 kB / 0.5868 GB, free: 14.41 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.878e-05/0.4696, allocations: 12 kB / 0.5868 GB, free: 14.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.4697, allocations: 358.8 kB / 0.5871 GB, free: 14.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000204/0.4699, allocations: 117 kB / 0.5872 GB, free: 13.92 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002886/0.4702, allocations: 290.1 kB / 0.5875 GB, free: 13.56 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005614/0.4708, allocations: 477.3 kB / 0.588 GB, free: 13.01 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.4708, allocations: 0 / 0.588 GB, free: 13.01 MB / 426.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007481/0.4716, allocations: 0.518 MB / 0.5885 GB, free: 12.48 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.776e-05/0.4716, allocations: 36.05 kB / 0.5885 GB, free: 12.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.4716, allocations: 4.062 kB / 0.5885 GB, free: 12.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.764e-05/0.4717, allocations: 12 kB / 0.5885 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004376/0.4721, allocations: 115.8 kB / 0.5886 GB, free: 12.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.148e-05/0.4722, allocations: 11.94 kB / 0.5886 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003081/0.4725, allocations: 20.17 kB / 0.5887 GB, free: 12.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.91e-05/0.4725, allocations: 35.98 kB / 0.5887 GB, free: 12.25 MB / 426.7 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,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000315/0.4729, allocations: 255.2 kB / 0.5889 GB, free: 11.98 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.607e-05/0.4729, allocations: 43.44 kB / 0.589 GB, free: 11.94 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007187/0.4737, allocations: 451.4 kB / 0.5894 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.4737, allocations: 11.88 kB / 0.5894 GB, free: 11.47 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.597e-06/0.4737, allocations: 3.984 kB / 0.5894 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.4737, allocations: 0 / 0.5894 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001407/0.4751, allocations: 0.9574 MB / 0.5904 GB, free: 10.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.82e-06/0.4751, allocations: 0 / 0.5904 GB, free: 10.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003261/0.4755, allocations: 63.84 kB / 0.5904 GB, free: 10.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.007e-06/0.4755, allocations: 4 kB / 0.5904 GB, free: 10.38 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.33e-05/0.4755, allocations: 15.98 kB / 0.5904 GB, free: 10.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.4755, allocations: 0 / 0.5904 GB, free: 10.36 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.4756, allocations: 7.938 kB / 0.5904 GB, free: 10.35 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000942/0.4765, allocations: 0.6976 MB / 0.5911 GB, free: 9.625 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001789/0.4767, allocations: 148.5 kB / 0.5913 GB, free: 9.461 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.007e-05/0.4768, allocations: 11.94 kB / 0.5913 GB, free: 9.449 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/0.477, allocations: 15.98 kB / 0.5913 GB, free: 9.434 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.833e-05/0.4771, allocations: 23.97 kB / 0.5913 GB, free: 9.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.707e-05/0.4771, allocations: 31.97 kB / 0.5913 GB, free: 9.379 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002807/0.4774, allocations: 275.1 kB / 0.5916 GB, free: 9.113 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4774, allocations: 0 / 0.5916 GB, free: 9.113 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004718/0.4779, allocations: 115.9 kB / 0.5917 GB, free: 9 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000251/0.4781, allocations: 147.3 kB / 0.5919 GB, free: 8.855 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006358/0.4788, allocations: 404.1 kB / 0.5922 GB, free: 8.449 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4788, allocations: 0 / 0.5922 GB, free: 8.449 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002954/0.4791, allocations: 259.4 kB / 0.5925 GB, free: 8.184 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006044/0.4797, allocations: 102 kB / 0.5926 GB, free: 8.082 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/0.4813, allocations: 1.178 MB / 0.5937 GB, free: 6.863 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004574/0.4818, allocations: 0.882 MB / 0.5946 GB, free: 5.957 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003138/0.4821, allocations: 84.31 kB / 0.5947 GB, free: 5.875 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.516e-05/0.4822, allocations: 43.42 kB / 0.5947 GB, free: 5.832 MB / 426.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4822, allocations: 3.938 kB / 0.5947 GB, free: 5.828 MB / 426.7 MB Notification: Performance of Templates: time 0.009158/0.4914, allocations: 4.213 MB / 0.5988 GB, free: 1.625 MB / 426.7 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 -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","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches