Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Validation.Derivatives.CheckDerivativeSetState.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.001053/0.001053, allocations: 80.44 kB / 19.17 MB, free: 0.7383 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.000933/0.000933, allocations: 165.9 kB / 22.45 MB, free: 2.098 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 1.032/1.032, 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/HelmholtzMedia main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo): time 0.04397/0.04397, allocations: 11.37 MB / 270.6 MB, free: 2.566 MB / 250.7 MB " [Timeout remaining time 180] Using package HelmholtzMedia with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/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(HelmholtzMedia.Validation.Derivatives.CheckDerivativeSetState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Validation_Derivatives_CheckDerivativeSetState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Validation.Derivatives.CheckDerivativeSetState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Validation_Derivatives_CheckDerivativeSetState",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.415e-06/2.415e-06, allocations: 0 / 397.7 MB, free: 444 kB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.492e-05/2.733e-05, allocations: 5.094 kB / 397.7 MB, free: 440 kB / 362.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Validation.Derivatives.CheckDerivativeSetState): time 0.3289/0.3289, allocations: 52.66 MB / 450.3 MB, free: 43.37 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03237/0.3613, allocations: 47.82 MB / 498.1 MB, free: 27.29 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003813/0.3617, allocations: 7 kB / 498.1 MB, free: 27.28 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001091/0.3627, allocations: 349.1 kB / 498.5 MB, free: 27.14 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05121/0.414, allocations: 17.02 MB / 0.5034 GB, free: 18.64 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01688/0.4308, allocations: 6.78 MB / 0.51 GB, free: 15.07 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.05065/0.4815, allocations: 59.83 MB / 0.5685 GB, free: 13.26 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.633e-05/0.4816, allocations: 16.52 kB / 0.5685 GB, free: 13.25 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004089/0.482, allocations: 327.3 kB / 0.5688 GB, free: 12.93 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02156/0.5035, allocations: 25.78 MB / 0.594 GB, free: 3.09 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000173/0.5037, allocations: 12 kB / 0.594 GB, free: 3.078 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04478/0.5485, allocations: 18.93 MB / 0.6125 GB, free: 112 kB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002859/0.5488, allocations: 279.2 kB / 0.6127 GB, free: 15.84 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0003557/0.5491, allocations: 199.4 kB / 0.6129 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.03812/0.5873, allocations: 9.619 MB / 0.6223 GB, free: 6 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.5873, allocations: 0 / 0.6223 GB, free: 6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.256e-06/0.5873, allocations: 0 / 0.6223 GB, free: 6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.481e-05/0.5873, allocations: 0 / 0.6223 GB, free: 6 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.004238/0.5915, allocations: 2.252 MB / 0.6245 GB, free: 3.703 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.67e-05/0.5916, allocations: 8.031 kB / 0.6245 GB, free: 3.695 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001027/0.5917, allocations: 94.14 kB / 0.6246 GB, free: 3.598 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009199/0.5926, allocations: 271.1 kB / 0.6249 GB, free: 3.332 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009245/0.5935, allocations: 401 kB / 0.6253 GB, free: 2.914 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.24e-05/0.5936, allocations: 41 kB / 0.6253 GB, free: 2.875 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001358/0.5937, allocations: 107.8 kB / 0.6254 GB, free: 2.77 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.5949, allocations: 1.165 MB / 0.6265 GB, free: 1.59 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.5949, allocations: 0 / 0.6265 GB, free: 1.59 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.564e-05/0.5949, allocations: 16 kB / 0.6266 GB, free: 1.574 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.787e-05/0.595, allocations: 49.28 kB / 0.6266 GB, free: 1.523 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001307/0.5963, allocations: 1.207 MB / 0.6278 GB, free: 324 kB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2705/0.8668, allocations: 1.755 MB / 0.6295 GB, free: 176.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/0.8681, allocations: 1.138 MB / 0.6306 GB, free: 176.6 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006178/0.8688, allocations: 0.5086 MB / 0.6311 GB, free: 176.5 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02323/0.892, allocations: 25.26 MB / 0.6558 GB, free: 169.6 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001334/0.8933, allocations: 1.044 MB / 0.6568 GB, free: 169.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=124): time 5.27e-06/0.8933, allocations: 0 / 0.6568 GB, free: 169.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=161): time 0.02261/0.9159, allocations: 8.655 MB / 0.6652 GB, free: 166.9 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.003e-05/0.916, allocations: 96.31 kB / 0.6653 GB, free: 166.8 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006182/0.9166, allocations: 0.5605 MB / 0.6659 GB, free: 166.6 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 8.677e-05/0.9167, allocations: 61.95 kB / 0.6659 GB, free: 166.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.9168, allocations: 194.9 kB / 0.6661 GB, free: 166.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003312/0.9172, allocations: 0.5986 MB / 0.6667 GB, free: 165.9 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005356/0.9177, allocations: 498.2 kB / 0.6672 GB, free: 165.8 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.82e-05/0.9178, allocations: 325.8 kB / 0.6675 GB, free: 165.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.919, allocations: 1.069 MB / 0.6685 GB, free: 165.1 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001337/0.9204, allocations: 1.306 MB / 0.6698 GB, free: 164.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002687/0.9231, allocations: 2.504 MB / 0.6723 GB, free: 163.2 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.9231, allocations: 0 / 0.6723 GB, free: 163.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=273) (initialization): time 0.003217/0.9263, allocations: 2.952 MB / 0.6751 GB, free: 160.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.755e-05/0.9263, allocations: 37.78 kB / 0.6752 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.9263, allocations: 4.75 kB / 0.6752 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.035e-05/0.9264, allocations: 12 kB / 0.6752 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008862/0.9273, allocations: 472.9 kB / 0.6756 GB, free: 160.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.187e-05/0.9273, allocations: 13.12 kB / 0.6757 GB, free: 160.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003079/0.9276, allocations: 44.59 kB / 0.6757 GB, free: 160.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001556/0.9278, allocations: 135.9 kB / 0.6758 GB, free: 159.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 3 (s0.phase,s1.phase,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (231): * Single equations (assignments): 229 * Array equations: 1 * Algorithm blocks: 1 * 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 0.0003556/0.9281, allocations: 333.9 kB / 0.6762 GB, free: 159.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.9283, allocations: 103.3 kB / 0.6762 GB, free: 159.5 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01242/0.9407, allocations: 19.06 MB / 0.6949 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.631e-05/0.9407, allocations: 42.86 kB / 0.6949 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.9407, allocations: 0 / 0.6949 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-05/0.9408, allocations: 11.95 kB / 0.6949 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01416/0.9549, allocations: 22.47 MB / 0.7169 GB, free: 119.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/0.9549, allocations: 1 kB / 0.7169 GB, free: 119.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008391/0.9558, allocations: 387.4 kB / 0.7172 GB, free: 118.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.359e-05/0.9558, allocations: 8 kB / 0.7172 GB, free: 118.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.127e-05/0.9559, allocations: 78.45 kB / 0.7173 GB, free: 118.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.767e-05/0.9559, allocations: 15.92 kB / 0.7173 GB, free: 118.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.9559, allocations: 0 / 0.7173 GB, free: 118.8 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01162/0.9675, allocations: 25.9 MB / 0.7426 GB, free: 92.84 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004194/0.9679, allocations: 350.8 kB / 0.7429 GB, free: 92.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.968, allocations: 55.91 kB / 0.743 GB, free: 92.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002703/0.9683, allocations: 41.84 kB / 0.743 GB, free: 92.43 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.9684, allocations: 145.6 kB / 0.7432 GB, free: 92.28 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.99e-05/0.9685, allocations: 91.94 kB / 0.7433 GB, free: 92.19 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002332/0.9687, allocations: 342.8 kB / 0.7436 GB, free: 91.86 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.1e-08/0.9687, allocations: 0 / 0.7436 GB, free: 91.86 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00477/0.9735, allocations: 2.155 MB / 0.7457 GB, free: 89.82 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 43 (y_int[1],y_int[2],y_int[3],y_int[4],y_int[5],y_int[6],y_int[7],y_int[8],y_int[9],y_int[10],y_int[11],y_int[12],y_int[13],y_int[14],y_int[15],y_int[16],y_int[17],y_int[18],y_int[19],y_int[20],y_int[21],y_int[22],y_int[23],y_int[24],y_int[25],y_int[26],y_int[27],y_int[28],y_int[29],y_int[30],y_int[31],y_int[32],y_int[33],y_int[34],y_int[35],y_int[36],y_int[37],y_int[38],y_int[39],y_int[40],y_int[41],y_int[42],y_int[43]) * Number of discrete variables: 11 ($cse1.phase,$cse2.sat.vap.phase,$cse2.sat.liq.phase,$cse3.phase,$cse4.phase,$cse5.phase,$cse6.phase,$cse50.phase,$cse51.phase,$cse52.phase,$whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (213): * Single equations (assignments): 203 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 9 * 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.01871/0.9922, allocations: 29.96 MB / 0.775 GB, free: 60.28 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005131/0.9973, allocations: 8.959 MB / 0.7837 GB, free: 51.28 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.9973, allocations: 4 kB / 0.7837 GB, free: 51.28 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00322/1.001, allocations: 7.425 MB / 0.791 GB, free: 43.83 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009234/1.001, allocations: 227 kB / 0.7912 GB, free: 43.63 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01591/1.017, allocations: 20.65 MB / 0.8113 GB, free: 22.66 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000355/1.018, allocations: 0.6447 MB / 0.812 GB, free: 21.99 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001333/1.019, allocations: 1.627 MB / 0.8136 GB, free: 20.44 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000593/1.02, allocations: 0.5896 MB / 0.8141 GB, free: 19.86 MB / 0.4948 GB Notification: Performance of SimCode: time 1.724e-06/1.02, allocations: 3.125 kB / 0.8141 GB, free: 19.86 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4534/1.473, allocations: 104.6 MB / 0.9163 GB, free: 117.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/13.21, allocations: 6.828 kB / 0.9163 GB, free: 117.1 MB / 0.4948 GB " [Timeout remaining time 647] (rm -f HelmholtzMedia_HelmholtzMedia.Validation.Derivatives.CheckDerivativeSetState.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Validation.Derivatives.CheckDerivativeSetState.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Validation.Derivatives.CheckDerivativeSetState.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Validation.Derivatives.CheckDerivativeSetState.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Validation_Derivatives_CheckDerivativeSetState_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-10 ../HelmholtzMedia_HelmholtzMedia_Validation_Derivatives_CheckDerivativeSetState.fmu) > HelmholtzMedia_HelmholtzMedia.Validation.Derivatives.CheckDerivativeSetState.pipe 2>&1) [Timeout 52.5] (rm -f HelmholtzMedia_HelmholtzMedia.Validation.Derivatives.CheckDerivativeSetState_fmpy.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Validation.Derivatives.CheckDerivativeSetState_fmpy.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Validation.Derivatives.CheckDerivativeSetState_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/HelmholtzMedia_HelmholtzMedia.Validation.Derivatives.CheckDerivativeSetState_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../HelmholtzMedia_HelmholtzMedia.Validation.Derivatives.CheckDerivativeSetState_fmpy_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ../HelmholtzMedia_HelmholtzMedia_Validation_Derivatives_CheckDerivativeSetState.fmu) > HelmholtzMedia_HelmholtzMedia.Validation.Derivatives.CheckDerivativeSetState_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.49009746313095]