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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 215.8 kB / 23.73 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.466/1.466, allocations: 230.6 MB / 257.5 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2134/0.2134, allocations: 38.56 MB / 352.5 MB, free: 12.3 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002262/0.002262, allocations: 63.91 kB / 492.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3664/0.3687, allocations: 62.47 MB / 0.5419 GB, free: 236 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.01105/0.3797, allocations: 6.93 MB / 0.5487 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003377/0.3831, allocations: 1.656 MB / 0.5503 GB, free: 9.656 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004748/0.3836, allocations: 36.72 kB / 0.5504 GB, free: 9.637 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006513/0.3842, allocations: 225.7 kB / 0.5506 GB, free: 9.465 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001398/0.3856, allocations: 0.5831 MB / 0.5511 GB, free: 8.992 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004873/0.3861, allocations: 223.5 kB / 0.5514 GB, free: 8.809 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001361/0.3875, allocations: 1.262 MB / 0.5526 GB, free: 8.102 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003513/0.3878, allocations: 209.4 kB / 0.5528 GB, free: 7.984 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008367/0.3887, allocations: 0.5745 MB / 0.5534 GB, free: 7.648 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000961/0.3896, allocations: 0.6576 MB / 0.554 GB, free: 7.277 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.3897, allocations: 62.12 kB / 0.5541 GB, free: 7.277 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001594/0.3899, allocations: 63.44 kB / 0.5541 GB, free: 7.277 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003564/0.3902, allocations: 338.6 kB / 0.5544 GB, free: 7.062 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004201/0.3907, allocations: 350.5 kB / 0.5548 GB, free: 6.863 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001084/0.3917, allocations: 0.9362 MB / 0.5557 GB, free: 6.156 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3917, allocations: 0 / 0.5557 GB, free: 6.156 MB / 398.1 MB Notification: Performance of FrontEnd: time 5.28e-06/0.3917, allocations: 7.984 kB / 0.5557 GB, free: 6.148 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.608e-05/0.3918, allocations: 0 / 0.5557 GB, free: 6.148 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.002113/0.3939, allocations: 1.18 MB / 0.5568 GB, free: 4.918 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.3939, allocations: 11.98 kB / 0.5569 GB, free: 4.906 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001417/0.3941, allocations: 106.7 kB / 0.557 GB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000155/0.3942, allocations: 96.33 kB / 0.5571 GB, free: 4.699 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001418/0.3956, allocations: 0.6469 MB / 0.5577 GB, free: 4.023 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.196e-05/0.3957, allocations: 49.31 kB / 0.5577 GB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.3958, allocations: 60 kB / 0.5578 GB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.3972, allocations: 0.8757 MB / 0.5586 GB, free: 2.988 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.3972, allocations: 3.984 kB / 0.5586 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.153e-05/0.3972, allocations: 28 kB / 0.5587 GB, free: 2.957 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.336e-05/0.3973, allocations: 33.3 kB / 0.5587 GB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.3984, allocations: 0.672 MB / 0.5594 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003886/0.4023, allocations: 2.35 MB / 0.5617 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/0.4034, allocations: 0.6255 MB / 0.5623 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007484/0.4041, allocations: 394.4 kB / 0.5626 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.329e-05/0.4041, allocations: 4.438 kB / 0.5626 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006677/0.4048, allocations: 0.5381 MB / 0.5632 GB, free: 14.15 MB / 414.1 MB Notification: Performance of pre-optimization done (n=63): time 4.538e-06/0.4048, allocations: 3.984 kB / 0.5632 GB, free: 14.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=64): time 0.003206/0.408, allocations: 2.063 MB / 0.5652 GB, free: 11.99 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001617/0.4082, allocations: 255.8 kB / 0.5654 GB, free: 11.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007008/0.4089, allocations: 0.5742 MB / 0.566 GB, free: 11.1 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.647e-05/0.4089, allocations: 37.7 kB / 0.566 GB, free: 11.05 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003466/0.4093, allocations: 412.3 kB / 0.5664 GB, free: 10.65 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/0.4095, allocations: 218.2 kB / 0.5666 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002047/0.4097, allocations: 142.6 kB / 0.5668 GB, free: 10.29 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002086/0.4099, allocations: 386.8 kB / 0.5671 GB, free: 9.902 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004118/0.4103, allocations: 277.3 kB / 0.5674 GB, free: 9.617 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006203/0.4109, allocations: 0.5052 MB / 0.5679 GB, free: 9.004 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/0.412, allocations: 0.7924 MB / 0.5687 GB, free: 8.094 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.412, allocations: 4 kB / 0.5687 GB, free: 8.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001704/0.4137, allocations: 1.005 MB / 0.5697 GB, free: 7.043 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.037e-05/0.4138, allocations: 67.39 kB / 0.5697 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.4138, allocations: 11.94 kB / 0.5697 GB, free: 6.953 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004135/0.4142, allocations: 109.8 kB / 0.5698 GB, free: 6.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005105/0.4147, allocations: 147.7 kB / 0.57 GB, free: 6.695 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003538/0.4182, allocations: 3.332 MB / 0.5732 GB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004527/0.4187, allocations: 31.98 kB / 0.5733 GB, free: 3.102 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.4188, allocations: 59.89 kB / 0.5733 GB, free: 3.043 MB / 414.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.0004622/0.4193, allocations: 362.7 kB / 0.5737 GB, free: 2.664 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.4194, allocations: 75.53 kB / 0.5737 GB, free: 2.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001291/0.4207, allocations: 0.8455 MB / 0.5746 GB, free: 1.711 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.4207, allocations: 8 kB / 0.5746 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.4207, allocations: 7.922 kB / 0.5746 GB, free: 1.695 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.4207, allocations: 0 / 0.5746 GB, free: 1.695 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002482/0.4232, allocations: 1.555 MB / 0.5761 GB, free: 64 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.4232, allocations: 0 / 0.5761 GB, free: 64 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005214/0.4237, allocations: 111.8 kB / 0.5762 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.4237, allocations: 7.938 kB / 0.5762 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.567e-05/0.4237, allocations: 23.98 kB / 0.5762 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.4237, allocations: 0 / 0.5762 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.4237, allocations: 4 kB / 0.5762 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001773/0.4255, allocations: 1.332 MB / 0.5775 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002935/0.4258, allocations: 119.3 kB / 0.5777 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.974e-05/0.4259, allocations: 19.98 kB / 0.5777 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003312/0.4262, allocations: 27.98 kB / 0.5777 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.99e-05/0.4263, allocations: 40.36 kB / 0.5777 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.442e-05/0.4264, allocations: 63.98 kB / 0.5778 GB, free: 14.25 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005134/0.4269, allocations: 391.1 kB / 0.5782 GB, free: 13.88 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4269, allocations: 0 / 0.5782 GB, free: 13.88 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000749/0.4277, allocations: 180.1 kB / 0.5783 GB, free: 13.7 MB / 430.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.002362/0.43, allocations: 1.896 MB / 0.5802 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001963/0.432, allocations: 1.095 MB / 0.5813 GB, free: 10.55 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.432, allocations: 0 / 0.5813 GB, free: 10.55 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006182/0.4326, allocations: 498.1 kB / 0.5817 GB, free: 10.04 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008964/0.4335, allocations: 165.1 kB / 0.5819 GB, free: 9.883 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/0.4447, allocations: 6.593 MB / 0.5883 GB, free: 2.898 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006181/0.4454, allocations: 409.1 kB / 0.5887 GB, free: 2.473 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005534/0.4459, allocations: 145.9 kB / 0.5889 GB, free: 2.328 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003782/0.4463, allocations: 283.3 kB / 0.5891 GB, free: 2.051 MB / 430.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4463, allocations: 7.875 kB / 0.5891 GB, free: 2.043 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07817/0.5245, allocations: 15.21 MB / 0.604 GB, free: 3.066 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.75, allocations: 10.23 kB / 0.604 GB, free: 3.062 MB / 446.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --stepSize=0.001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.76365819806233]