Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Controls.Test.TestFreeOffset.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.001243/0.001243, allocations: 101.5 kB / 18.95 MB, free: 1.184 MB / 13.93 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.001869/0.001869, allocations: 213.2 kB / 22.25 MB, free: 3.586 MB / 13.93 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.014/1.014, allocations: 230.6 MB / 256 MB, free: 9.613 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.0498/0.0498, allocations: 17.18 MB / 329.6 MB, free: 1.246 MB / 250.7 MB " [Timeout remaining time 180] Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/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(PowerGrids.Controls.Test.TestFreeOffset,fileNamePrefix="PowerGrids_dev_PowerGrids_Controls_Test_TestFreeOffset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestFreeOffset,fileNamePrefix="PowerGrids_dev_PowerGrids_Controls_Test_TestFreeOffset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerGrids 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.000969/0.000969, allocations: 68.08 kB / 460.3 MB, free: 27.65 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09292/0.09389, allocations: 57.8 MB / 0.5059 GB, free: 1.746 MB / 362.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestFreeOffset): time 0.002207/0.0961, allocations: 1.604 MB / 0.5075 GB, free: 140 kB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007902/0.09689, allocations: 466.8 kB / 0.5079 GB, free: 15.68 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.766e-05/0.09695, allocations: 4 kB / 0.5079 GB, free: 15.67 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.917e-05/0.09705, allocations: 19.8 kB / 0.508 GB, free: 15.65 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.592e-05/0.09711, allocations: 11.88 kB / 0.508 GB, free: 15.64 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001827/0.09729, allocations: 27.91 kB / 0.508 GB, free: 15.61 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001448/0.09744, allocations: 83.64 kB / 0.5081 GB, free: 15.53 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.733e-05/0.09753, allocations: 9.297 kB / 0.5081 GB, free: 15.52 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.09766, allocations: 39.8 kB / 0.5081 GB, free: 15.48 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.266e-05/0.09771, allocations: 27.8 kB / 0.5081 GB, free: 15.46 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.157e-05/0.09773, allocations: 0 / 0.5081 GB, free: 15.46 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.771e-05/0.09776, allocations: 8 kB / 0.5082 GB, free: 15.45 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.452e-05/0.09778, allocations: 15.92 kB / 0.5082 GB, free: 15.43 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.63e-05/0.0978, allocations: 27.8 kB / 0.5082 GB, free: 15.41 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001209/0.09793, allocations: 67.62 kB / 0.5083 GB, free: 15.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.09793, allocations: 3.938 kB / 0.5083 GB, free: 15.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.09793, allocations: 0 / 0.5083 GB, free: 15.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.09794, allocations: 0 / 0.5083 GB, free: 15.34 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000398/0.09833, allocations: 325.8 kB / 0.5086 GB, free: 14.99 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.09838, allocations: 8.031 kB / 0.5086 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.05e-05/0.09841, allocations: 34.69 kB / 0.5086 GB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.09851, allocations: 24.83 kB / 0.5086 GB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002329/0.09874, allocations: 158.8 kB / 0.5088 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.09876, allocations: 4.375 kB / 0.5088 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.828e-06/0.09877, allocations: 4.375 kB / 0.5088 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.09889, allocations: 71.47 kB / 0.5089 GB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.0989, allocations: 0 / 0.5089 GB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.255e-06/0.0989, allocations: 0 / 0.5089 GB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.09891, allocations: 4 kB / 0.5089 GB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.124e-05/0.09897, allocations: 27.95 kB / 0.5089 GB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003689/0.09934, allocations: 352 kB / 0.5092 GB, free: 14.22 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.447e-05/0.09941, allocations: 41.22 kB / 0.5093 GB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.112e-05/0.09945, allocations: 29.77 kB / 0.5093 GB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.09947, allocations: 3.938 kB / 0.5093 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.09949, allocations: 34.56 kB / 0.5093 GB, free: 14.08 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 8.21e-07/0.09949, allocations: 0 / 0.5093 GB, free: 14.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002013/0.09969, allocations: 77.66 kB / 0.5094 GB, free: 14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.09973, allocations: 85.11 kB / 0.5095 GB, free: 13.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.09984, allocations: 167.5 kB / 0.5097 GB, free: 13.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.09985, allocations: 25.7 kB / 0.5097 GB, free: 13.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.606e-05/0.0999, allocations: 112.1 kB / 0.5098 GB, free: 13.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.855e-06/0.09991, allocations: 11.91 kB / 0.5098 GB, free: 13.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.644e-05/0.09994, allocations: 21.66 kB / 0.5098 GB, free: 13.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.876e-05/0.1, allocations: 326.8 kB / 0.5101 GB, free: 13.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.288e-05/0.1001, allocations: 15.98 kB / 0.5101 GB, free: 13.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.277e-05/0.1001, allocations: 34.72 kB / 0.5102 GB, free: 13.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.339e-05/0.1001, allocations: 50.5 kB / 0.5102 GB, free: 13.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1001, allocations: 0 / 0.5102 GB, free: 13.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.256e-05/0.1002, allocations: 81.56 kB / 0.5103 GB, free: 13.01 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.1003, allocations: 4 kB / 0.5103 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1003, allocations: 0 / 0.5103 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.1003, allocations: 4 kB / 0.5103 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.266e-05/0.1003, allocations: 16.05 kB / 0.5103 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.553e-06/0.1003, allocations: 4 kB / 0.5103 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.46e-05/0.1004, allocations: 7.891 kB / 0.5103 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.1004, allocations: 8 kB / 0.5103 GB, free: 12.97 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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 6.229e-05/0.1004, allocations: 125.7 kB / 0.5105 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.275e-05/0.1005, allocations: 7.953 kB / 0.5105 GB, free: 12.83 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.357e-05/0.1005, allocations: 20.59 kB / 0.5105 GB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1005, allocations: 0 / 0.5105 GB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.1005, allocations: 0 / 0.5105 GB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.1005, allocations: 4 kB / 0.5105 GB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002198/0.1007, allocations: 274.4 kB / 0.5108 GB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1007, allocations: 0 / 0.5108 GB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.403e-05/0.1007, allocations: 4 kB / 0.5108 GB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.1007, allocations: 11.92 kB / 0.5108 GB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.1008, allocations: 4 kB / 0.5108 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1008, allocations: 0 / 0.5108 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.1008, allocations: 4.062 kB / 0.5108 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001021/0.1009, allocations: 168.3 kB / 0.5109 GB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.18e-05/0.1009, allocations: 11.95 kB / 0.511 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.142e-05/0.1009, allocations: 4.031 kB / 0.511 GB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.478e-05/0.1009, allocations: 4 kB / 0.511 GB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.603e-05/0.1009, allocations: 3.938 kB / 0.511 GB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.1009, allocations: 7.984 kB / 0.511 GB, free: 12.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.732e-05/0.101, allocations: 123.2 kB / 0.5111 GB, free: 12.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.101, allocations: 0 / 0.5111 GB, free: 12.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001474/0.1012, allocations: 11.95 kB / 0.5111 GB, free: 12.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0002928/0.1014, allocations: 0.7016 MB / 0.5118 GB, free: 11.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001009/0.1015, allocations: 35.92 kB / 0.5118 GB, free: 11.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1015, allocations: 0 / 0.5118 GB, free: 11.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.423e-05/0.1016, allocations: 15.98 kB / 0.5118 GB, free: 11.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002304/0.1018, allocations: 24.8 kB / 0.5119 GB, free: 11.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.1029, allocations: 1.529 MB / 0.5134 GB, free: 9.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.666e-05/0.1029, allocations: 88.19 kB / 0.5134 GB, free: 9.574 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.904e-05/0.103, allocations: 8.656 kB / 0.5134 GB, free: 9.562 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.823e-05/0.103, allocations: 23.44 kB / 0.5135 GB, free: 9.539 MB / 378.7 MB Notification: Performance of SimCode: time 7.41e-07/0.103, allocations: 0 / 0.5135 GB, free: 9.539 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01935/0.1224, allocations: 2.631 MB / 0.516 GB, free: 7.016 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.612/6.734, allocations: 2.344 kB / 0.516 GB, free: 7.016 MB / 378.7 MB " [Timeout remaining time 653] (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestFreeOffset_OMSimulator.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestFreeOffset_OMSimulator.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestFreeOffset_OMSimulator.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestFreeOffset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerGrids_dev_PowerGrids_Controls_Test_TestFreeOffset_OMSimulator_fmu --startTime=0 --stopTime=1 --stepSize=0.002 --timeout=50 --tolerance=1e-06 PowerGrids_dev_PowerGrids_Controls_Test_TestFreeOffset.fmu > PowerGrids_dev_PowerGrids.Controls.Test.TestFreeOffset_OMSimulator.pipe 2>&1) [Timeout 52.5] (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestFreeOffset_fmpy.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestFreeOffset_fmpy.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestFreeOffset_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Controls.Test.TestFreeOffset_fmpy.sim & python3 -m fmpy simulate --output-file PowerGrids_dev_PowerGrids.Controls.Test.TestFreeOffset_fmpy_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 PowerGrids_dev_PowerGrids_Controls_Test_TestFreeOffset.fmu > PowerGrids_dev_PowerGrids.Controls.Test.TestFreeOffset_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.84970540300128]