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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 106.6 kB / 17.06 MB, free: 5.969 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.001834/0.001834, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1755/0.1755, allocations: 38.05 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 59.91 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3218, allocations: 58.06 MB / 0.5036 GB, free: 7.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.007379/0.3292, allocations: 7.304 MB / 0.5108 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002922/0.3322, allocations: 1.714 MB / 0.5124 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005454/0.3328, allocations: 32.69 kB / 0.5125 GB, free: 1.082 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006732/0.3334, allocations: 234.1 kB / 0.5127 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001405/0.3349, allocations: 0.5868 MB / 0.5133 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006063/0.3355, allocations: 212.2 kB / 0.5135 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001615/0.3371, allocations: 1.263 MB / 0.5147 GB, free: 15.97 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004386/0.3376, allocations: 352.1 kB / 0.515 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008303/0.3384, allocations: 0.5575 MB / 0.5156 GB, free: 15.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00105/0.3395, allocations: 0.6451 MB / 0.5162 GB, free: 15.33 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001382/0.3397, allocations: 63.47 kB / 0.5163 GB, free: 15.33 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001831/0.3398, allocations: 62.75 kB / 0.5163 GB, free: 15.33 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004125/0.3403, allocations: 336.5 kB / 0.5166 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005471/0.3408, allocations: 425.8 kB / 0.517 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00125/0.3421, allocations: 0.9206 MB / 0.5179 GB, free: 14.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3421, allocations: 1.344 kB / 0.5179 GB, free: 14.59 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.3421, allocations: 4 kB / 0.518 GB, free: 14.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.182e-05/0.3421, allocations: 0 / 0.518 GB, free: 14.59 MB / 398.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.00224/0.3444, allocations: 1.248 MB / 0.5192 GB, free: 13.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.3444, allocations: 13.08 kB / 0.5192 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001342/0.3446, allocations: 111.6 kB / 0.5193 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.3447, allocations: 102.5 kB / 0.5194 GB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/0.3461, allocations: 0.7268 MB / 0.5201 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.903e-05/0.3461, allocations: 47.41 kB / 0.5201 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.3462, allocations: 62.03 kB / 0.5202 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.3475, allocations: 0.8121 MB / 0.521 GB, free: 12.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.3475, allocations: 0 / 0.521 GB, free: 12.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.038e-05/0.3476, allocations: 23.44 kB / 0.521 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.912e-05/0.3476, allocations: 35.64 kB / 0.5211 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000963/0.3486, allocations: 0.6123 MB / 0.5216 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003631/0.3522, allocations: 2.625 MB / 0.5242 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009047/0.3532, allocations: 0.6187 MB / 0.5248 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006318/0.3538, allocations: 378.8 kB / 0.5252 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.809e-05/0.3539, allocations: 9.156 kB / 0.5252 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006711/0.3545, allocations: 482.7 kB / 0.5256 GB, free: 10.08 MB / 398.1 MB Notification: Performance of pre-optimization done (n=63): time 2.535e-06/0.3545, allocations: 5.094 kB / 0.5257 GB, free: 10.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=64): time 0.003173/0.3577, allocations: 1.994 MB / 0.5276 GB, free: 8.941 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/0.3579, allocations: 254.1 kB / 0.5278 GB, free: 8.652 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006421/0.3585, allocations: 0.5637 MB / 0.5284 GB, free: 8.402 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.491e-05/0.3586, allocations: 41.98 kB / 0.5284 GB, free: 8.359 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002818/0.3588, allocations: 403.3 kB / 0.5288 GB, free: 8.043 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000161/0.359, allocations: 229.1 kB / 0.529 GB, free: 7.863 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001918/0.3592, allocations: 146.8 kB / 0.5292 GB, free: 7.789 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.3594, allocations: 384 kB / 0.5295 GB, free: 7.445 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003554/0.3598, allocations: 224 kB / 0.5298 GB, free: 7.379 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005354/0.3603, allocations: 462 kB / 0.5302 GB, free: 7.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000908/0.3612, allocations: 0.7904 MB / 0.531 GB, free: 6.402 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.3612, allocations: 6.969 kB / 0.531 GB, free: 6.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001555/0.3628, allocations: 0.9533 MB / 0.5319 GB, free: 5.961 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.036e-05/0.3628, allocations: 62.64 kB / 0.532 GB, free: 5.898 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.3629, allocations: 11.94 kB / 0.532 GB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003803/0.3633, allocations: 112.9 kB / 0.5321 GB, free: 5.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004856/0.3638, allocations: 145.1 kB / 0.5322 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003071/0.3668, allocations: 3.555 MB / 0.5357 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005035/0.3674, allocations: 40.27 kB / 0.5357 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.795e-05/0.3675, allocations: 65.25 kB / 0.5358 GB, free: 2.477 MB / 398.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.0004611/0.3679, allocations: 343.6 kB / 0.5361 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.3681, allocations: 79.67 kB / 0.5362 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00114/0.3692, allocations: 0.7807 MB / 0.537 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.3692, allocations: 7 kB / 0.537 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.3692, allocations: 4 kB / 0.537 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.3692, allocations: 4.734 kB / 0.537 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002403/0.3717, allocations: 1.562 MB / 0.5385 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.3717, allocations: 1.062 kB / 0.5385 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000489/0.3722, allocations: 112.8 kB / 0.5386 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.818e-06/0.3722, allocations: 7.562 kB / 0.5386 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.037e-05/0.3722, allocations: 25.36 kB / 0.5386 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.421e-06/0.3723, allocations: 3.5 kB / 0.5386 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.3723, allocations: 1.281 kB / 0.5386 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001564/0.3738, allocations: 1.204 MB / 0.5398 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003234/0.3742, allocations: 188.9 kB / 0.54 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.3743, allocations: 15.81 kB / 0.54 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003512/0.3746, allocations: 26.47 kB / 0.54 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.183e-05/0.3747, allocations: 38.02 kB / 0.5401 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-05/0.3748, allocations: 62.7 kB / 0.5401 GB, free: 15.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004565/0.3753, allocations: 390.4 kB / 0.5405 GB, free: 15.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.3753, allocations: 0 / 0.5405 GB, free: 15.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008057/0.3761, allocations: 178.4 kB / 0.5407 GB, free: 15.43 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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.002073/0.3782, allocations: 1.772 MB / 0.5424 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001754/0.38, allocations: 1 MB / 0.5434 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.38, allocations: 0 / 0.5434 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000638/0.3806, allocations: 0.4932 MB / 0.5439 GB, free: 13.22 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009971/0.3816, allocations: 163.4 kB / 0.544 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.3918, allocations: 6.309 MB / 0.5502 GB, free: 7.344 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000786/0.3927, allocations: 1.016 MB / 0.5512 GB, free: 6.297 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005163/0.3932, allocations: 157.8 kB / 0.5513 GB, free: 6.141 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003544/0.3936, allocations: 279.3 kB / 0.5516 GB, free: 5.867 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3936, allocations: 0 / 0.5516 GB, free: 5.867 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04062/0.4342, allocations: 14.09 MB / 0.5654 GB, free: 8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.12, allocations: 15.22 kB / 0.5654 GB, free: 7.988 MB / 430.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.csv","/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