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.001432/0.001433, allocations: 109.9 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.00159/0.00159, 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.447/1.447, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1796/0.1796, allocations: 38.04 MB / 330.5 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 61.59 kB / 400.3 MB, free: 33.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09204/0.09329, allocations: 58.06 MB / 458.3 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.006743/0.1001, allocations: 5.499 MB / 463.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002169/0.1023, allocations: 1.379 MB / 465.2 MB, free: 416 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002318/0.1025, allocations: 15.88 kB / 465.2 MB, free: 400 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004434/0.103, allocations: 135 kB / 465.3 MB, free: 264 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008068/0.1038, allocations: 378.2 kB / 465.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000343/0.1042, allocations: 155.7 kB / 465.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007941/0.105, allocations: 0.7786 MB / 466.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003155/0.1053, allocations: 221.7 kB / 466.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004403/0.1058, allocations: 338.6 kB / 467.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005218/0.1063, allocations: 402.6 kB / 467.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.012e-05/0.1064, allocations: 40 kB / 467.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.882e-05/0.1065, allocations: 40 kB / 467.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002491/0.1067, allocations: 211.3 kB / 467.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002829/0.107, allocations: 274.6 kB / 468.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005406/0.1075, allocations: 0.576 MB / 468.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1076, allocations: 0 / 468.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1076, allocations: 0 / 468.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.1076, 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.001431/0.109, allocations: 0.888 MB / 469.6 MB, free: 11.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.1091, allocations: 12.03 kB / 469.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.1092, allocations: 60.22 kB / 469.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008515/0.11, allocations: 0.5141 MB / 470.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.326e-05/0.1101, allocations: 32.94 kB / 470.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.64e-05/0.1102, allocations: 40 kB / 470.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000771/0.1109, allocations: 0.5429 MB / 470.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.915e-05/0.111, allocations: 0 / 470.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.342e-05/0.111, allocations: 19.98 kB / 470.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-05/0.1111, allocations: 21 kB / 470.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005908/0.1117, allocations: 391.6 kB / 471.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002439/0.1141, allocations: 1.924 MB / 473.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005286/0.1147, allocations: 333.3 kB / 473.5 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003098/0.115, allocations: 185.7 kB / 473.7 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.115, allocations: 4 kB / 473.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003474/0.1154, allocations: 276.8 kB / 473.9 MB, free: 7.363 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.583e-06/0.1154, allocations: 0 / 473.9 MB, free: 7.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001751/0.1171, allocations: 1.191 MB / 475.1 MB, free: 6.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.367e-05/0.1172, allocations: 166.3 kB / 475.3 MB, free: 5.898 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003597/0.1176, allocations: 389.9 kB / 475.7 MB, free: 5.504 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.1176, allocations: 33.7 kB / 475.7 MB, free: 5.465 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00018/0.1178, allocations: 299.6 kB / 476 MB, free: 5.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.363e-05/0.1179, allocations: 122.3 kB / 476.1 MB, free: 5.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.118, allocations: 90.16 kB / 476.2 MB, free: 4.953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.1182, allocations: 358.8 kB / 476.5 MB, free: 4.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.1184, allocations: 125 kB / 476.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002887/0.1187, allocations: 290.1 kB / 477 MB, free: 4.113 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005674/0.1192, allocations: 481.3 kB / 477.4 MB, free: 3.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.1193, allocations: 8 kB / 477.4 MB, free: 3.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007305/0.12, allocations: 0.518 MB / 477.9 MB, free: 3.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.136e-05/0.12, allocations: 33.7 kB / 478 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.1201, allocations: 7.984 kB / 478 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.1201, allocations: 8 kB / 478 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004313/0.1205, allocations: 107.8 kB / 478.1 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.618e-05/0.1205, allocations: 15.92 kB / 478.1 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002529/0.1208, allocations: 23.94 kB / 478.1 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.967e-05/0.1209, allocations: 32.12 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.0002443/0.1211, allocations: 248.2 kB / 478.4 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.514e-05/0.1212, allocations: 51.38 kB / 478.5 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006743/0.1219, allocations: 451.4 kB / 478.9 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.1219, allocations: 7.938 kB / 478.9 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1219, allocations: 0 / 478.9 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.1219, allocations: 7.984 kB / 478.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001267/0.1232, allocations: 0.9693 MB / 479.9 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.1232, allocations: 4 kB / 479.9 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003159/0.1235, allocations: 63.89 kB / 480 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.1235, allocations: 0 / 480 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.84e-05/0.1236, allocations: 16 kB / 480 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.1236, allocations: 0 / 480 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.1236, allocations: 7.922 kB / 480 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008595/0.1244, allocations: 0.7095 MB / 480.7 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001709/0.1246, allocations: 140.5 kB / 480.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.801e-05/0.1247, allocations: 12 kB / 480.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.1249, allocations: 11.98 kB / 480.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.934e-05/0.125, allocations: 27.91 kB / 480.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.515e-05/0.1251, allocations: 35.91 kB / 480.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002571/0.1253, allocations: 271.2 kB / 481.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1253, allocations: 0 / 481.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004268/0.1258, 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.0001437/0.1259, allocations: 107.2 kB / 481.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005661/0.1265, allocations: 404.2 kB / 481.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1265, allocations: 8.062 kB / 481.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002884/0.1268, allocations: 263.6 kB / 482 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.0005823/0.1274, allocations: 112 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.001399/0.1288, allocations: 0.9725 MB / 483.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004488/0.1293, allocations: 0.882 MB / 484 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000249/0.1295, allocations: 84.31 kB / 484.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.962e-05/0.1296, allocations: 43.42 kB / 484.1 MB, free: 12.6 MB / 366.1 MB Notification: Performance of SimCode: time 1.724e-06/0.1296, allocations: 0 / 484.1 MB, free: 12.6 MB / 366.1 MB Notification: Performance of Templates: time 0.008324/0.138, allocations: 4.216 MB / 488.4 MB, free: 8.43 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 gbode -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