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.001679/0.001679, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001932/0.001932, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.38/1.38, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1793/0.1793, allocations: 38.03 MB / 330.4 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.47 kB / 399.5 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08594/0.08722, allocations: 58.06 MB / 457.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.00647/0.09373, allocations: 5.504 MB / 463 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.09578, allocations: 1.367 MB / 464.4 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002066/0.096, allocations: 19.88 kB / 464.4 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004042/0.09641, allocations: 135 kB / 464.6 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007141/0.09717, allocations: 374.1 kB / 464.9 MB, free: 0.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000282/0.09747, allocations: 155.7 kB / 465.1 MB, free: 484 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006926/0.09817, allocations: 0.7827 MB / 465.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002942/0.09847, allocations: 217.7 kB / 466.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003761/0.09886, allocations: 338.6 kB / 466.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000533/0.0994, allocations: 398.6 kB / 466.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.89e-05/0.09948, allocations: 40 kB / 466.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.231e-05/0.09958, allocations: 44 kB / 466.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001911/0.09978, allocations: 203.4 kB / 467.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002529/0.1, allocations: 282.5 kB / 467.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004818/0.1005, allocations: 0.5645 MB / 467.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1005, allocations: 0 / 467.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1006, allocations: 3.938 kB / 467.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.1006, allocations: 0 / 467.9 MB, free: 13.62 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.001294/0.1019, allocations: 0.888 MB / 468.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.1019, allocations: 16.02 kB / 468.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.853e-05/0.102, allocations: 56.28 kB / 468.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006486/0.1027, allocations: 490.5 kB / 469.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.516e-05/0.1027, allocations: 40.94 kB / 469.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.127e-05/0.1028, allocations: 36 kB / 469.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007228/0.1035, allocations: 0.5351 MB / 470 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.1035, allocations: 0 / 470 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.345e-05/0.1036, allocations: 27.98 kB / 470 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.978e-05/0.1036, allocations: 17 kB / 470 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005797/0.1042, allocations: 395.6 kB / 470.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002103/0.1063, allocations: 1.928 MB / 472.3 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005624/0.1069, allocations: 337.3 kB / 472.7 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000312/0.1072, allocations: 185.6 kB / 472.8 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.494e-05/0.1073, allocations: 8 kB / 472.8 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003339/0.1076, allocations: 276.8 kB / 473.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 3.466e-06/0.1076, allocations: 0 / 473.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001663/0.1093, allocations: 1.191 MB / 474.3 MB, free: 6.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.868e-05/0.1094, allocations: 166.2 kB / 474.5 MB, free: 6.664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003711/0.1097, allocations: 393.9 kB / 474.9 MB, free: 6.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.545e-05/0.1098, allocations: 29.7 kB / 474.9 MB, free: 6.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001796/0.11, allocations: 295.5 kB / 475.2 MB, free: 5.938 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.995e-05/0.1101, allocations: 122.3 kB / 475.3 MB, free: 5.816 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.1102, allocations: 94.16 kB / 475.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1103, allocations: 358.8 kB / 475.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001985/0.1105, allocations: 125 kB / 475.9 MB, free: 5.238 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002814/0.1108, allocations: 286.1 kB / 476.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005265/0.1114, allocations: 485.3 kB / 476.6 MB, free: 4.324 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1114, allocations: 0 / 476.6 MB, free: 4.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007525/0.1121, allocations: 0.5179 MB / 477.1 MB, free: 3.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.948e-05/0.1122, allocations: 33.7 kB / 477.2 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.1122, allocations: 8 kB / 477.2 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.1122, allocations: 8 kB / 477.2 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004061/0.1126, allocations: 107.8 kB / 477.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.6e-05/0.1127, allocations: 12 kB / 477.3 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002549/0.1129, allocations: 32.23 kB / 477.3 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-05/0.113, allocations: 43.91 kB / 477.4 MB, free: 3.547 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.0002408/0.1132, allocations: 244.2 kB / 477.6 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.945e-05/0.1133, allocations: 47.38 kB / 477.7 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006425/0.1139, allocations: 459.2 kB / 478.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.114, allocations: 4 kB / 478.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.114, allocations: 0 / 478.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.114, allocations: 0 / 478.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.1151, allocations: 0.9848 MB / 479.1 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1151, allocations: 0 / 479.1 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003105/0.1155, allocations: 59.95 kB / 479.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.1155, allocations: 4 kB / 479.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.477e-05/0.1155, allocations: 8 kB / 479.2 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.04e-06/0.1155, allocations: 7.938 kB / 479.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1155, allocations: 0 / 479.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008607/0.1164, allocations: 0.7173 MB / 479.9 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/0.1165, allocations: 144.5 kB / 480 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.923e-05/0.1166, allocations: 8 kB / 480 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002154/0.1168, allocations: 15.98 kB / 480 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.832e-05/0.1169, allocations: 15.98 kB / 480.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.667e-05/0.117, allocations: 43.95 kB / 480.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002492/0.1172, allocations: 267.1 kB / 480.4 MB, free: 412 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1172, allocations: 0 / 480.4 MB, free: 412 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004286/0.1177, allocations: 107.9 kB / 480.5 MB, free: 304 kB / 350.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.0001167/0.1178, allocations: 109.4 kB / 480.6 MB, free: 188 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006579/0.1184, allocations: 443.7 kB / 481 MB, free: 15.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.1185, allocations: 0 / 481 MB, free: 15.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002932/0.1188, allocations: 263.6 kB / 481.3 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006265/0.1194, allocations: 106.2 kB / 481.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/0.1209, allocations: 1.033 MB / 482.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004234/0.1214, allocations: 0.8781 MB / 483.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.1215, allocations: 43.42 kB / 483.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1215, allocations: 0 / 483.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of Templates: time 0.008846/0.1303, allocations: 5.897 MB / 489.2 MB, free: 7.477 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 -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