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.0006617/0.0006618, allocations: 90.23 kB / 16.65 MB, free: 6.535 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.0007287/0.0007288, allocations: 174 kB / 17.56 MB, free: 6.184 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.182/1.182, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1542/0.1542, allocations: 38.08 MB / 330.8 MB, free: 8.516 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002766/0.0002766, allocations: 8 kB / 400.7 MB, free: 34.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08764/0.08794, allocations: 59.16 MB / 459.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.005645/0.09361, allocations: 6.146 MB / 466 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002545/0.09618, allocations: 1.667 MB / 467.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004668/0.09667, allocations: 35.75 kB / 467.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003532/0.09704, allocations: 115.3 kB / 467.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007687/0.09782, allocations: 350.5 kB / 468.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000327/0.09816, allocations: 135.8 kB / 468.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001004/0.09917, allocations: 1.157 MB / 469.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002335/0.09942, allocations: 180.8 kB / 469.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003198/0.09975, allocations: 278.5 kB / 469.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004789/0.1002, allocations: 410.6 kB / 470.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.204e-05/0.1003, allocations: 20 kB / 470.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.835e-05/0.1004, allocations: 24 kB / 470.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000153/0.1005, allocations: 191.3 kB / 470.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002131/0.1007, allocations: 272.3 kB / 470.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003987/0.1011, allocations: 0.5486 MB / 471.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.1011, allocations: 0 / 471.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1012, allocations: 0 / 471.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.73e-06/0.1012, allocations: 0 / 471.4 MB, free: 11.49 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.001065/0.1022, allocations: 0.7908 MB / 472.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.814e-05/0.1023, allocations: 12.03 kB / 472.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.358e-05/0.1024, allocations: 60.19 kB / 472.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005807/0.1029, allocations: 498.5 kB / 472.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.256e-05/0.103, allocations: 32.94 kB / 472.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.646e-05/0.1031, allocations: 40 kB / 472.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006852/0.1037, allocations: 0.5312 MB / 473.3 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.1038, allocations: 0 / 473.3 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.589e-05/0.1038, allocations: 16 kB / 473.3 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.674e-05/0.1038, allocations: 21 kB / 473.4 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005391/0.1044, allocations: 391.6 kB / 473.7 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00196/0.1064, allocations: 1.943 MB / 475.7 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004826/0.1068, allocations: 337.3 kB / 476 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002739/0.1071, allocations: 181.7 kB / 476.2 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.1072, allocations: 0 / 476.2 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003143/0.1075, allocations: 284.2 kB / 476.5 MB, free: 6.098 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.324e-06/0.1075, allocations: 0 / 476.5 MB, free: 6.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001496/0.109, allocations: 1.187 MB / 477.7 MB, free: 4.836 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.97e-05/0.1091, allocations: 170.1 kB / 477.8 MB, free: 4.633 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003406/0.1094, allocations: 393.9 kB / 478.2 MB, free: 4.238 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.1095, allocations: 33.7 kB / 478.2 MB, free: 4.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/0.1096, allocations: 295.7 kB / 478.5 MB, free: 3.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.822e-05/0.1097, allocations: 118.4 kB / 478.6 MB, free: 3.789 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.539e-05/0.1098, allocations: 49.69 kB / 478.7 MB, free: 3.734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1099, allocations: 354.8 kB / 479 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001812/0.1101, allocations: 117.1 kB / 479.2 MB, free: 3.266 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002778/0.1104, allocations: 290.1 kB / 479.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004769/0.1109, allocations: 481.3 kB / 479.9 MB, free: 2.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.1109, allocations: 4 kB / 479.9 MB, free: 2.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006496/0.1115, allocations: 0.5214 MB / 480.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.913e-05/0.1116, allocations: 33.7 kB / 480.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.1116, allocations: 8.688 kB / 480.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.1116, allocations: 15.94 kB / 480.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003722/0.112, allocations: 111.8 kB / 480.6 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.112, allocations: 8 kB / 480.6 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002262/0.1122, allocations: 27.98 kB / 480.6 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.394e-05/0.1123, allocations: 35.98 kB / 480.7 MB, free: 1.57 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.0002138/0.1125, allocations: 244.2 kB / 480.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.392e-05/0.1126, allocations: 59.31 kB / 481 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006212/0.1132, allocations: 451.2 kB / 481.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.1132, allocations: 4 kB / 481.4 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.1132, allocations: 0 / 481.4 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1132, allocations: 3.984 kB / 481.4 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.1143, allocations: 0.9731 MB / 482.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1143, allocations: 0 / 482.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002832/0.1146, allocations: 71.94 kB / 482.5 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.1146, allocations: 3.984 kB / 482.5 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.553e-05/0.1146, allocations: 8 kB / 482.5 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1146, allocations: 4 kB / 482.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1147, allocations: 0 / 482.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008066/0.1155, allocations: 0.7172 MB / 483.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.1156, allocations: 140.6 kB / 483.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.245e-05/0.1157, allocations: 8 kB / 483.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002021/0.1159, allocations: 19.98 kB / 483.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.636e-05/0.1159, allocations: 19.97 kB / 483.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.195e-05/0.116, allocations: 35.95 kB / 483.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002292/0.1162, allocations: 267.1 kB / 483.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1162, allocations: 0 / 483.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003793/0.1166, allocations: 107.9 kB / 483.8 MB, free: 14.32 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.0001073/0.1167, allocations: 119.2 kB / 483.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005193/0.1172, allocations: 408 kB / 484.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1173, allocations: 0 / 484.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002818/0.1175, allocations: 259.4 kB / 484.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006043/0.1182, allocations: 101.4 kB / 484.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/0.1196, allocations: 1.228 MB / 485.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003936/0.12, allocations: 0.882 MB / 486.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002696/0.1202, allocations: 84.31 kB / 486.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.797e-05/0.1203, allocations: 39.42 kB / 486.9 MB, free: 11.13 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1203, allocations: 0 / 486.9 MB, free: 11.13 MB / 366.1 MB Notification: Performance of Templates: time 0.007126/0.1275, allocations: 3.897 MB / 490.8 MB, free: 7.273 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat","/var/lib/jenkins/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