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.0007599/0.0007599, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008441/0.0008441, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9383/0.9383, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.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.04868/0.04868, allocations: 12.72 MB / 271.9 MB, free: 0.9297 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: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 402.6 MB, free: 9.305 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.867e-05/2.028e-05, allocations: 2.281 kB / 402.6 MB, free: 9.301 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestFreeOffset): time 0.002086/0.002106, allocations: 1.602 MB / 404.2 MB, free: 7.691 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008518/0.002958, allocations: 470.8 kB / 404.7 MB, free: 7.227 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.084e-05/0.003049, allocations: 0 / 404.7 MB, free: 7.227 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.003184, allocations: 19.8 kB / 404.7 MB, free: 7.207 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 7.897e-05/0.003263, allocations: 15.81 kB / 404.7 MB, free: 7.191 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.003597, allocations: 43.83 kB / 404.8 MB, free: 7.148 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002061/0.003803, allocations: 75.64 kB / 404.8 MB, free: 7.074 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.00393, allocations: 13.17 kB / 404.9 MB, free: 7.062 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001723/0.004102, allocations: 51.77 kB / 404.9 MB, free: 7.012 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.397e-05/0.004156, allocations: 19.92 kB / 404.9 MB, free: 6.992 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.628e-05/0.004172, allocations: 4 kB / 404.9 MB, free: 6.988 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.376e-05/0.004216, allocations: 4 kB / 404.9 MB, free: 6.984 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.457e-05/0.00423, allocations: 7.922 kB / 404.9 MB, free: 6.977 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.313e-05/0.004264, allocations: 23.86 kB / 405 MB, free: 6.953 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001479/0.004411, allocations: 63.73 kB / 405 MB, free: 6.891 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.004415, allocations: 0 / 405 MB, free: 6.891 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.004417, allocations: 4 kB / 405 MB, free: 6.887 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.004422, allocations: 0 / 405 MB, free: 6.887 MB / 330.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.0004394/0.004861, allocations: 317.8 kB / 405.3 MB, free: 6.547 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.004905, allocations: 15.97 kB / 405.4 MB, free: 6.531 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.575e-05/0.004941, allocations: 42.67 kB / 405.4 MB, free: 6.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.005048, allocations: 20.84 kB / 405.4 MB, free: 6.461 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002472/0.005295, allocations: 154.1 kB / 405.6 MB, free: 6.285 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.005305, allocations: 8.375 kB / 405.6 MB, free: 6.277 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.005316, allocations: 4.375 kB / 405.6 MB, free: 6.273 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001256/0.005442, allocations: 63.97 kB / 405.6 MB, free: 6.199 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.00545, allocations: 192 / 405.7 MB, free: 6.199 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.759e-06/0.00546, allocations: 4.125 kB / 405.7 MB, free: 6.195 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.005465, allocations: 4 kB / 405.7 MB, free: 6.191 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.082e-05/0.005526, allocations: 27.91 kB / 405.7 MB, free: 6.164 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003724/0.005899, allocations: 332.2 kB / 406 MB, free: 5.793 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.352e-05/0.005982, allocations: 57.08 kB / 406.1 MB, free: 5.719 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.109e-05/0.006023, allocations: 29.77 kB / 406.1 MB, free: 5.684 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.006036, allocations: 4 kB / 406.1 MB, free: 5.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.006055, allocations: 30.56 kB / 406.1 MB, free: 5.641 MB / 330.7 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.006056, allocations: 0 / 406.1 MB, free: 5.641 MB / 330.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002206/0.006277, allocations: 77.56 kB / 406.2 MB, free: 5.559 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.701e-05/0.006324, allocations: 81.11 kB / 406.3 MB, free: 5.461 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.006484, allocations: 171.5 kB / 406.5 MB, free: 5.285 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.006496, allocations: 33.69 kB / 406.5 MB, free: 5.246 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.049e-05/0.006567, allocations: 112 kB / 406.6 MB, free: 5.133 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.528e-06/0.006576, allocations: 11.89 kB / 406.6 MB, free: 5.121 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.032e-05/0.006607, allocations: 17.72 kB / 406.6 MB, free: 5.098 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000363/0.00697, allocations: 326.8 kB / 406.9 MB, free: 4.77 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.711e-05/0.007017, allocations: 11.98 kB / 407 MB, free: 4.758 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.376e-05/0.007051, allocations: 26.58 kB / 407 MB, free: 4.723 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.795e-05/0.007128, allocations: 58.55 kB / 407 MB, free: 4.656 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.007133, allocations: 7.875 kB / 407 MB, free: 4.648 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001051/0.007238, allocations: 77.58 kB / 407.1 MB, free: 4.566 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.007255, allocations: 8.922 kB / 407.1 MB, free: 4.559 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.00726, allocations: 0 / 407.1 MB, free: 4.559 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.007274, allocations: 4 kB / 407.1 MB, free: 4.555 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.481e-05/0.007349, allocations: 8 kB / 407.1 MB, free: 4.547 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.007355, allocations: 0 / 407.1 MB, free: 4.547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.875e-05/0.007383, allocations: 11.94 kB / 407.2 MB, free: 4.535 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.00739, allocations: 15.94 kB / 407.2 MB, free: 4.52 MB / 330.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.666e-05/0.007457, allocations: 121.7 kB / 407.3 MB, free: 4.391 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.767e-05/0.007485, allocations: 7.953 kB / 407.3 MB, free: 4.383 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.415e-05/0.007509, allocations: 16.61 kB / 407.3 MB, free: 4.371 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.007512, allocations: 3.984 kB / 407.3 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.007516, allocations: 0 / 407.3 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-06/0.007519, allocations: 0 / 407.3 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002425/0.007762, allocations: 282.5 kB / 407.6 MB, free: 4.039 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.007765, allocations: 4 kB / 407.6 MB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.071e-05/0.007795, allocations: 4 kB / 407.6 MB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.007799, allocations: 8.031 kB / 407.6 MB, free: 4.023 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.284e-06/0.007806, allocations: 0 / 407.6 MB, free: 4.023 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.007807, allocations: 0 / 407.6 MB, free: 4.023 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.007808, allocations: 0 / 407.6 MB, free: 4.023 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001233/0.007932, allocations: 180.2 kB / 407.8 MB, free: 3.828 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.136e-05/0.007943, allocations: 7.953 kB / 407.8 MB, free: 3.82 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.421e-05/0.007957, allocations: 3.984 kB / 407.8 MB, free: 3.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.88e-05/0.007996, allocations: 4 kB / 407.8 MB, free: 3.812 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.615e-05/0.008032, allocations: 4 kB / 407.8 MB, free: 3.809 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.487e-06/0.008036, allocations: 4 kB / 407.8 MB, free: 3.805 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.552e-05/0.008101, allocations: 127.2 kB / 407.9 MB, free: 3.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008101, allocations: 0 / 407.9 MB, free: 3.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001583/0.008259, allocations: 11.95 kB / 407.9 MB, free: 3.668 MB / 330.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.000328/0.008587, allocations: 0.6937 MB / 408.6 MB, free: 2.945 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000112/0.008699, allocations: 27.98 kB / 408.7 MB, free: 2.918 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.008701, allocations: 0 / 408.7 MB, free: 2.918 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.841e-05/0.008729, allocations: 24.05 kB / 408.7 MB, free: 2.895 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002469/0.008976, allocations: 15.62 kB / 408.7 MB, free: 2.883 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.01026, allocations: 1.527 MB / 410.2 MB, free: 1.254 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.558e-05/0.01033, allocations: 88.44 kB / 410.3 MB, free: 1.148 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4e-05/0.01037, allocations: 4.734 kB / 410.3 MB, free: 1.141 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.95e-05/0.01042, allocations: 28.48 kB / 410.3 MB, free: 1.113 MB / 330.7 MB Notification: Performance of SimCode: time 1.022e-06/0.01042, allocations: 0 / 410.3 MB, free: 1.113 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1799/0.1904, allocations: 2.765 MB / 413.1 MB, free: 21.17 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.326/7.517, allocations: 8.438 kB / 413.1 MB, free: 21.17 MB / 330.7 MB " [Timeout remaining time 652] (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: 9.454726866009878]