Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.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.Transformation.TapChanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter12.i|meter12.p|meter12.v|meter22.i|meter22.p|meter22.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger") translateModel(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter12.i|meter12.p|meter12.v|meter22.i|meter22.p|meter22.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 111.4 kB / 17.28 MB, free: 6.059 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.001233/0.001233, allocations: 193.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.001/2.001, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2909/0.2909, allocations: 38.03 MB / 330.1 MB, free: 9.051 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002443/0.002443, allocations: 63.41 kB / 398.9 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.1902, allocations: 58.06 MB / 457 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.01328/0.2036, allocations: 8.943 MB / 466 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004905/0.2086, allocations: 2.217 MB / 468.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001052/0.2096, allocations: 63.56 kB / 468.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007897/0.2104, allocations: 198.9 kB / 468.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001611/0.2121, allocations: 0.5252 MB / 469 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005571/0.2127, allocations: 191.8 kB / 469.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002023/0.2147, allocations: 1.269 MB / 470.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007181/0.2155, allocations: 362.4 kB / 470.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001291/0.2168, allocations: 0.5407 MB / 471.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001429/0.2182, allocations: 0.6969 MB / 472 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001485/0.2184, allocations: 67.94 kB / 472.1 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002249/0.2186, allocations: 64 kB / 472.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005075/0.2192, allocations: 331.1 kB / 472.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006569/0.2198, allocations: 437.7 kB / 472.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00107/0.2209, allocations: 0.6821 MB / 473.6 MB, free: 7.809 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.767e-06/0.2209, allocations: 4 kB / 473.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.221, allocations: 0 / 473.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.221, allocations: 4 kB / 473.6 MB, free: 7.801 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: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.002859/0.2239, allocations: 1.221 MB / 474.8 MB, free: 6.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.099e-05/0.2239, allocations: 19.81 kB / 474.8 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002281/0.2242, allocations: 91.81 kB / 474.9 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.2254, allocations: 0.6642 MB / 475.6 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.8e-05/0.2255, allocations: 53.23 kB / 475.6 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.2257, allocations: 64 kB / 475.7 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.2271, allocations: 0.806 MB / 476.5 MB, free: 4.742 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.2271, allocations: 4 kB / 476.5 MB, free: 4.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.926e-05/0.2272, allocations: 28 kB / 476.5 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-05/0.2273, allocations: 33.3 kB / 476.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.2284, allocations: 0.6217 MB / 477.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004991/0.2334, allocations: 2.63 MB / 479.8 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001472/0.2349, allocations: 0.6105 MB / 480.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009202/0.2359, allocations: 376 kB / 480.8 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.607e-05/0.2359, allocations: 4.438 kB / 480.8 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008722/0.2368, allocations: 499 kB / 481.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=63): time 4.118e-06/0.2368, allocations: 0 / 481.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.004935/0.2418, allocations: 1.981 MB / 483.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001899/0.242, allocations: 251.8 kB / 483.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001143/0.2432, allocations: 0.5664 MB / 484.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.591e-05/0.2432, allocations: 41.83 kB / 484.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005435/0.2438, allocations: 403.5 kB / 484.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002977/0.2441, allocations: 205.1 kB / 484.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003407/0.2445, allocations: 146.6 kB / 484.8 MB, free: 12.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000269/0.2447, allocations: 382.8 kB / 485.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006247/0.2454, allocations: 225.9 kB / 485.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008531/0.2462, allocations: 457.8 kB / 485.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001689/0.248, allocations: 0.8012 MB / 486.7 MB, free: 9.945 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.546e-05/0.248, allocations: 4 kB / 486.7 MB, free: 9.941 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002778/0.2508, allocations: 0.9516 MB / 487.6 MB, free: 8.965 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.185e-05/0.2509, allocations: 60.06 kB / 487.7 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.526e-05/0.2509, allocations: 12 kB / 487.7 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006401/0.2516, allocations: 109.5 kB / 487.8 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008684/0.2525, allocations: 151.7 kB / 488 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004673/0.2572, allocations: 3.232 MB / 491.2 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009852/0.2582, allocations: 39.92 kB / 491.2 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001655/0.2584, allocations: 51.95 kB / 491.3 MB, free: 5.02 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (system.initime,tapRelay1.cnt_2,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_1,$whenCondition4,$whenCondition3,tapRelay2.cnt_2,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_1,$whenCondition2,$whenCondition1,tapRelay1.tap_2,$PRE.tapRelay1.tap_2,tapRelay1.tap_1,$PRE.tapRelay1.tap_1,tapRelay2.tap_2,$PRE.tapRelay2.tap_2,tapRelay2.tap_1,$PRE.tapRelay2.tap_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008159/0.2592, allocations: 354.7 kB / 491.6 MB, free: 4.652 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002484/0.2594, allocations: 83.03 kB / 491.7 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001839/0.2613, allocations: 0.7857 MB / 492.5 MB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.2613, allocations: 4 kB / 492.5 MB, free: 3.754 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.2613, allocations: 4 kB / 492.5 MB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.2614, allocations: 0 / 492.5 MB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003611/0.265, allocations: 1.546 MB / 494.1 MB, free: 2.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/0.265, allocations: 0 / 494.1 MB, free: 2.133 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008727/0.2659, allocations: 111.9 kB / 494.2 MB, free: 2.023 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-05/0.2659, allocations: 7.938 kB / 494.2 MB, free: 2.016 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.628e-05/0.266, allocations: 19.98 kB / 494.2 MB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.05e-05/0.266, allocations: 4.188 kB / 494.2 MB, free: 1.992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.266, allocations: 0 / 494.2 MB, free: 1.992 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002583/0.2686, allocations: 1.211 MB / 495.4 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004929/0.2692, allocations: 188.1 kB / 495.6 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002129/0.2694, allocations: 19.98 kB / 495.6 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006874/0.2701, allocations: 23.98 kB / 495.6 MB, free: 0.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/0.2703, allocations: 44.31 kB / 495.7 MB, free: 468 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001418/0.2704, allocations: 63.98 kB / 495.7 MB, free: 404 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007921/0.2712, allocations: 391 kB / 496.1 MB, free: 20 kB / 366.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.2713, allocations: 0 / 496.1 MB, free: 20 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.001293/0.2726, allocations: 180 kB / 496.3 MB, free: 15.84 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (trafo1.i1,trafo2.i1) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tapRelay2.tap_1,tapRelay2.tap_2,tapRelay2.cnt_1,tapRelay2.cnt_2,tapRelay1.tap_1,tapRelay1.tap_2,tapRelay1.cnt_1,tapRelay1.cnt_2,system.initime) * Number of discrete states: 12 (tapRelay1.tap_2,tapRelay1.cnt_2,$whenCondition4,tapRelay1.tap_1,tapRelay1.cnt_1,$whenCondition3,tapRelay2.tap_2,tapRelay2.cnt_2,$whenCondition2,tapRelay2.tap_1,tapRelay2.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 2 * 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.0002569/0.2728, allocations: 127.1 kB / 496.4 MB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003132/0.276, allocations: 1.105 MB / 497.5 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.276, allocations: 384 / 497.5 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009382/0.2769, allocations: 497.2 kB / 498 MB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001527/0.2785, allocations: 166.4 kB / 498.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00476/0.2833, allocations: 1.905 MB / 0.4884 GB, free: 11.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001137/0.2844, allocations: 1.013 MB / 0.4893 GB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002727/0.2847, allocations: 55.42 kB / 0.4894 GB, free: 10.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.543e-06/0.2847, allocations: 8 kB / 0.4894 GB, free: 10.83 MB / 382.1 MB Notification: Performance of Templates: time 0.02306/0.3078, allocations: 12.04 MB / 0.5012 GB, free: 14.82 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches