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.0008971/0.0008971, allocations: 84.72 kB / 19.44 MB, free: 344 kB / 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.001062/0.001062, allocations: 157.3 kB / 22.76 MB, free: 1.668 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.9107/0.9107, allocations: 177.1 MB / 203.1 MB, free: 5.605 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.05918/0.05918, allocations: 12.73 MB / 272.3 MB, free: 0.7383 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.203e-06/1.203e-06, allocations: 0 / 345.5 MB, free: 2.805 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.052e-05/2.172e-05, allocations: 6.25 kB / 345.5 MB, free: 2.797 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestFreeOffset): time 0.001893/0.001915, allocations: 1.598 MB / 347.1 MB, free: 1.191 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005879/0.002503, allocations: 474.7 kB / 347.6 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.191e-05/0.002574, allocations: 3.938 kB / 347.6 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.666e-05/0.002671, allocations: 7.875 kB / 347.6 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.467e-05/0.002726, allocations: 23.8 kB / 347.6 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001863/0.002912, allocations: 31.89 kB / 347.6 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001217/0.003034, allocations: 87.53 kB / 347.7 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.656e-05/0.00313, allocations: 5.312 kB / 347.7 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.003257, allocations: 51.88 kB / 347.8 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.759e-05/0.003305, allocations: 15.92 kB / 347.8 MB, free: 0.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.53e-05/0.00332, allocations: 4 kB / 347.8 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.514e-05/0.003365, allocations: 8 kB / 347.8 MB, free: 500 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.173e-05/0.003377, allocations: 7.938 kB / 347.8 MB, free: 492 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.25e-05/0.0034, allocations: 15.92 kB / 347.8 MB, free: 476 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001175/0.003517, allocations: 75.61 kB / 347.9 MB, free: 400 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.00352, allocations: 4 kB / 347.9 MB, free: 396 kB / 266.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.003521, allocations: 4 kB / 347.9 MB, free: 392 kB / 266.7 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.003524, allocations: 0 / 347.9 MB, free: 392 kB / 266.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.0003124/0.003837, allocations: 321.8 kB / 348.2 MB, free: 40 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.003873, allocations: 8.031 kB / 348.2 MB, free: 32 kB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.783e-05/0.003911, allocations: 30.75 kB / 348.2 MB, free: 15.99 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.004014, allocations: 20.88 kB / 348.3 MB, free: 15.97 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002023/0.004217, allocations: 153.5 kB / 348.4 MB, free: 15.8 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.00423, allocations: 8.375 kB / 348.4 MB, free: 15.79 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.887e-06/0.004239, allocations: 4.375 kB / 348.4 MB, free: 15.79 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001282/0.004367, allocations: 71.91 kB / 348.5 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.004373, allocations: 192 / 348.5 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.004383, allocations: 4.125 kB / 348.5 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.004388, allocations: 0 / 348.5 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.984e-05/0.004458, allocations: 27.97 kB / 348.5 MB, free: 15.67 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003662/0.004824, allocations: 336.1 kB / 348.9 MB, free: 15.3 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.396e-05/0.004898, allocations: 49.16 kB / 348.9 MB, free: 15.23 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.763e-05/0.004936, allocations: 33.7 kB / 348.9 MB, free: 15.19 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.459e-05/0.00495, allocations: 0 / 348.9 MB, free: 15.19 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.912e-05/0.00497, allocations: 34.56 kB / 349 MB, free: 15.15 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.004971, allocations: 0 / 349 MB, free: 15.15 MB / 282.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001901/0.005161, allocations: 77.56 kB / 349 MB, free: 15.07 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.005199, allocations: 77.11 kB / 349.1 MB, free: 14.97 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.005311, allocations: 171.8 kB / 349.3 MB, free: 14.8 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.005322, allocations: 29.7 kB / 349.3 MB, free: 14.76 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.738e-05/0.005379, allocations: 116 kB / 349.4 MB, free: 14.64 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.206e-06/0.005387, allocations: 15.91 kB / 349.5 MB, free: 14.63 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.103e-05/0.005418, allocations: 21.66 kB / 349.5 MB, free: 14.6 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.354e-05/0.005502, allocations: 322.8 kB / 349.8 MB, free: 14.28 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.092e-05/0.005533, allocations: 11.98 kB / 349.8 MB, free: 14.27 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.314e-05/0.005566, allocations: 34.56 kB / 349.8 MB, free: 14.22 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.428e-05/0.00563, allocations: 54.48 kB / 349.9 MB, free: 14.16 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.005633, allocations: 7.938 kB / 349.9 MB, free: 14.15 MB / 282.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.236e-05/0.005726, allocations: 81.56 kB / 350 MB, free: 14.07 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.00574, allocations: 4 kB / 350 MB, free: 14.06 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.005745, allocations: 4 kB / 350 MB, free: 14.06 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.005757, allocations: 0 / 350 MB, free: 14.06 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.04e-05/0.005817, allocations: 15.92 kB / 350 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.005824, allocations: 4 kB / 350 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.684e-05/0.00585, allocations: 7.953 kB / 350 MB, free: 14.03 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.005857, allocations: 8.062 kB / 350 MB, free: 14.02 MB / 282.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.146e-05/0.005918, allocations: 117.8 kB / 350.1 MB, free: 13.9 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.448e-05/0.005943, allocations: 7.953 kB / 350.1 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.547e-05/0.005968, allocations: 20.59 kB / 350.2 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.005971, allocations: 4 kB / 350.2 MB, free: 13.87 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.005975, allocations: 0 / 350.2 MB, free: 13.87 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.005979, allocations: 0 / 350.2 MB, free: 13.87 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002156/0.006194, allocations: 282.5 kB / 350.4 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.006196, allocations: 0 / 350.4 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.079e-05/0.006216, allocations: 8 kB / 350.4 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.339e-06/0.006221, allocations: 8.016 kB / 350.5 MB, free: 13.53 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.006227, allocations: 0 / 350.5 MB, free: 13.53 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.006229, allocations: 0 / 350.5 MB, free: 13.53 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.006231, allocations: 4 kB / 350.5 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001057/0.006336, allocations: 172.2 kB / 350.6 MB, free: 13.34 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.087e-06/0.006345, allocations: 7.891 kB / 350.6 MB, free: 13.33 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.172e-05/0.006357, allocations: 4 kB / 350.6 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.197e-05/0.006389, allocations: 0 / 350.6 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.078e-05/0.00642, allocations: 4 kB / 350.6 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-06/0.006423, allocations: 3.984 kB / 350.6 MB, free: 13.32 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.961e-05/0.006483, allocations: 131.2 kB / 350.8 MB, free: 13.19 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006483, allocations: 0 / 350.8 MB, free: 13.19 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001451/0.006628, allocations: 8 kB / 350.8 MB, free: 13.18 MB / 282.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.0002478/0.006876, allocations: 0.7015 MB / 351.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.993e-05/0.006966, allocations: 31.92 kB / 351.5 MB, free: 12.42 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.32e-07/0.006967, allocations: 0 / 351.5 MB, free: 12.42 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.511e-05/0.006992, allocations: 24.11 kB / 351.5 MB, free: 12.39 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002106/0.007202, allocations: 19.89 kB / 351.6 MB, free: 12.38 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.008297, allocations: 1.515 MB / 353.1 MB, free: 10.76 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.098e-05/0.008348, allocations: 88.38 kB / 353.2 MB, free: 10.65 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.616e-05/0.008384, allocations: 12.7 kB / 353.2 MB, free: 10.63 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.411e-05/0.008428, allocations: 28.5 kB / 353.2 MB, free: 10.61 MB / 282.7 MB Notification: Performance of SimCode: time 6.11e-07/0.008429, allocations: 0 / 353.2 MB, free: 10.61 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01371/0.02214, allocations: 3.045 MB / 356.2 MB, free: 7.699 MB / 282.7 MB Notification: Building FMU for platform 'static' (1/1). Notification: Finished FMU for platform 'static' (1/1). Notification: Performance of buildModelFMU: Generate platform static: time 7.239/7.261, allocations: 8.062 kB / 356.3 MB, free: 7.691 MB / 282.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: 9.018918335030321]