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.001722/0.001722, allocations: 112.9 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.001918/0.001918, allocations: 200 kB / 18.01 MB, free: 5.047 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.41/1.41, 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.1829/0.1829, allocations: 38.05 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 59.91 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.301, allocations: 58.07 MB / 0.5036 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.006698/0.3078, allocations: 7.296 MB / 0.5108 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002584/0.3104, allocations: 1.716 MB / 0.5124 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003737/0.3108, allocations: 33.41 kB / 0.5125 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006237/0.3114, allocations: 229.8 kB / 0.5127 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00124/0.3127, allocations: 0.5704 MB / 0.5132 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005299/0.3132, allocations: 216.4 kB / 0.5134 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00147/0.3147, allocations: 1.262 MB / 0.5147 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005071/0.3152, allocations: 357.4 kB / 0.515 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009439/0.3162, allocations: 0.5424 MB / 0.5155 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001043/0.3172, allocations: 0.6451 MB / 0.5162 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001171/0.3174, allocations: 63.03 kB / 0.5162 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.3175, allocations: 63.31 kB / 0.5163 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004194/0.318, allocations: 339 kB / 0.5166 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000616/0.3186, allocations: 427.1 kB / 0.517 GB, free: 14.99 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001492/0.3201, allocations: 0.925 MB / 0.5179 GB, free: 14.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3201, allocations: 0 / 0.5179 GB, free: 14.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3201, allocations: 1.125 kB / 0.5179 GB, free: 14.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.471e-05/0.3202, allocations: 0 / 0.5179 GB, free: 14.61 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.002279/0.3224, allocations: 1.25 MB / 0.5191 GB, free: 13.74 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.3225, allocations: 13.36 kB / 0.5192 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001543/0.3226, allocations: 112 kB / 0.5193 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.3228, allocations: 101.5 kB / 0.5194 GB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001335/0.3242, allocations: 0.7204 MB / 0.5201 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.643e-05/0.3242, allocations: 47.41 kB / 0.5201 GB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.3244, allocations: 65.83 kB / 0.5202 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.3258, allocations: 0.8107 MB / 0.521 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.3259, allocations: 0 / 0.521 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.997e-05/0.3259, allocations: 31.91 kB / 0.521 GB, free: 12.74 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.989e-05/0.326, allocations: 36.2 kB / 0.521 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/0.3273, allocations: 0.6156 MB / 0.5216 GB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004366/0.3317, allocations: 2.618 MB / 0.5242 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009784/0.3327, allocations: 0.62 MB / 0.5248 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006222/0.3333, allocations: 378 kB / 0.5252 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.79e-05/0.3333, allocations: 7.031 kB / 0.5252 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007238/0.3341, allocations: 487.3 kB / 0.5256 GB, free: 10.1 MB / 398.1 MB Notification: Performance of pre-optimization done (n=63): time 2.405e-06/0.3341, allocations: 0 / 0.5256 GB, free: 10.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=64): time 0.003232/0.3373, allocations: 1.995 MB / 0.5276 GB, free: 8.965 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001594/0.3375, allocations: 258 kB / 0.5278 GB, free: 8.672 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007424/0.3383, allocations: 0.5675 MB / 0.5284 GB, free: 8.418 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.601e-05/0.3383, allocations: 38.17 kB / 0.5284 GB, free: 8.379 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003537/0.3387, allocations: 407.6 kB / 0.5288 GB, free: 8.059 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.3389, allocations: 216.1 kB / 0.529 GB, free: 7.891 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002008/0.3391, allocations: 146.2 kB / 0.5291 GB, free: 7.816 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002127/0.3393, allocations: 393.5 kB / 0.5295 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003726/0.3397, allocations: 223.1 kB / 0.5297 GB, free: 7.398 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005605/0.3402, allocations: 452.6 kB / 0.5302 GB, free: 7.047 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009632/0.3412, allocations: 0.7963 MB / 0.5309 GB, free: 6.426 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.3412, allocations: 3.5 kB / 0.5309 GB, free: 6.426 MB / 398.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001643/0.3429, allocations: 0.9522 MB / 0.5319 GB, free: 5.988 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.647e-05/0.3429, allocations: 63.59 kB / 0.5319 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.343, allocations: 10.98 kB / 0.5319 GB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003972/0.3434, allocations: 113 kB / 0.5321 GB, free: 5.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004799/0.3439, allocations: 148.9 kB / 0.5322 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003374/0.3472, allocations: 3.555 MB / 0.5357 GB, free: 2.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004895/0.3478, allocations: 40.98 kB / 0.5357 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.15e-05/0.3478, allocations: 58.56 kB / 0.5358 GB, free: 2.508 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.0004943/0.3483, allocations: 353.8 kB / 0.5361 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.3485, allocations: 76.81 kB / 0.5362 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001217/0.3497, allocations: 0.7816 MB / 0.5369 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.3497, allocations: 5.875 kB / 0.5369 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.3497, allocations: 0 / 0.5369 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.3497, allocations: 4.891 kB / 0.537 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002394/0.3521, allocations: 1.565 MB / 0.5385 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.3522, allocations: 1.062 kB / 0.5385 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004921/0.3527, allocations: 105.9 kB / 0.5386 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.11e-05/0.3527, allocations: 7.344 kB / 0.5386 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.771e-05/0.3527, allocations: 27.95 kB / 0.5386 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.3527, allocations: 3.438 kB / 0.5386 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3527, allocations: 1.281 kB / 0.5386 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/0.3544, allocations: 1.201 MB / 0.5398 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002508/0.3547, allocations: 189 kB / 0.54 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.908e-05/0.3547, allocations: 16.75 kB / 0.54 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003178/0.3551, allocations: 25.77 kB / 0.54 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.971e-05/0.3552, allocations: 42.16 kB / 0.5401 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.059e-05/0.3553, allocations: 66.12 kB / 0.5401 GB, free: 15.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004639/0.3558, allocations: 387.1 kB / 0.5405 GB, free: 15.49 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3558, allocations: 4.062 kB / 0.5405 GB, free: 15.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007879/0.3566, allocations: 177.8 kB / 0.5407 GB, free: 15.46 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.001993/0.3586, allocations: 1.772 MB / 0.5424 GB, free: 14.22 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00151/0.3601, allocations: 1.005 MB / 0.5434 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3601, allocations: 0 / 0.5434 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005891/0.3607, allocations: 0.4964 MB / 0.5439 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008427/0.3615, allocations: 163.3 kB / 0.544 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008946/0.3705, allocations: 6.298 MB / 0.5502 GB, free: 7.352 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007075/0.3712, allocations: 1.02 MB / 0.5512 GB, free: 6.301 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004505/0.3717, allocations: 149.8 kB / 0.5513 GB, free: 6.152 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003815/0.3721, allocations: 279.3 kB / 0.5516 GB, free: 5.879 MB / 414.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3721, allocations: 0 / 0.5516 GB, free: 5.879 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04531/0.4174, allocations: 14.11 MB / 0.5653 GB, free: 7.996 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.57, allocations: 22.11 kB / 0.5654 GB, free: 7.984 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