Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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.001081/0.001081, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001477/0.002558, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001526/0.001526, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001663/0.003189, allocations: 479.5 kB / 11.82 MB, free: 2.344 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.011/1.011, allocations: 177.2 MB / 189.8 MB, free: 5.258 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09881/1.109, allocations: 53.66 MB / 243.4 MB, free: 15.52 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.858/1.858, allocations: 378.4 MB / 0.6079 GB, free: 7.715 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4433/2.302, allocations: 123.3 MB / 0.7283 GB, free: 5.742 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/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: translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.303e-06/1.303e-06, allocations: 0 / 0.7297 GB, free: 4.359 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.227e-05/2.357e-05, allocations: 8.5 kB / 0.7297 GB, free: 4.352 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001389/0.001413, allocations: 0.8532 MB / 0.7306 GB, free: 3.535 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001266/0.002679, allocations: 1.506 MB / 0.732 GB, free: 2.023 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.439e-05/0.002704, allocations: 0.6875 kB / 0.732 GB, free: 2.023 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.619e-05/0.00273, allocations: 3.938 kB / 0.732 GB, free: 2.02 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 2.049e-05/0.00275, allocations: 3.438 kB / 0.732 GB, free: 2.02 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002865/0.003037, allocations: 145 kB / 0.7322 GB, free: 1.883 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 7.655e-05/0.003113, allocations: 47.58 kB / 0.7322 GB, free: 1.84 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 3.562e-05/0.003149, allocations: 8.625 kB / 0.7322 GB, free: 1.832 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.003252, allocations: 43.19 kB / 0.7323 GB, free: 1.793 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.103e-05/0.003303, allocations: 26.05 kB / 0.7323 GB, free: 1.77 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.549e-05/0.003319, allocations: 5.281 kB / 0.7323 GB, free: 1.766 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002752/0.003594, allocations: 260 kB / 0.7325 GB, free: 1.512 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.027e-05/0.003614, allocations: 7.938 kB / 0.7326 GB, free: 1.504 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 1.894e-05/0.003633, allocations: 16.81 kB / 0.7326 GB, free: 1.488 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0002319/0.003865, allocations: 179.6 kB / 0.7327 GB, free: 1.312 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.275e-05/0.003878, allocations: 0.5938 kB / 0.7327 GB, free: 1.312 MB / 0.698 GB Notification: Performance of FrontEnd: time 9.72e-07/0.003879, allocations: 0 / 0.7327 GB, free: 1.312 MB / 0.698 GB Notification: Performance of Transformations before backend: time 9.848e-06/0.003888, allocations: 1.719 kB / 0.7327 GB, free: 1.312 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004343/0.004323, allocations: 320 kB / 0.733 GB, free: 0.9766 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.004353, allocations: 8.031 kB / 0.7331 GB, free: 0.9688 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000243/0.004596, allocations: 145.1 kB / 0.7332 GB, free: 0.8125 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.011e-05/0.004676, allocations: 109.7 kB / 0.7333 GB, free: 0.6797 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.004693, allocations: 8.375 kB / 0.7333 GB, free: 0.6719 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.004715, allocations: 9.203 kB / 0.7333 GB, free: 0.6641 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.004894, allocations: 152 kB / 0.7335 GB, free: 0.4961 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.004903, allocations: 4.141 kB / 0.7335 GB, free: 0.4922 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.004913, allocations: 4.375 kB / 0.7335 GB, free: 500 kB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.004919, allocations: 8.438 kB / 0.7335 GB, free: 492 kB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.831e-05/0.004968, allocations: 25.02 kB / 0.7335 GB, free: 468 kB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002938/0.005261, allocations: 200.8 kB / 0.7337 GB, free: 252 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001173/0.005379, allocations: 71.58 kB / 0.7338 GB, free: 172 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.088e-05/0.0054, allocations: 12.86 kB / 0.7338 GB, free: 156 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.211e-05/0.005412, allocations: 4.656 kB / 0.7338 GB, free: 152 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001038/0.005516, allocations: 42.55 kB / 0.7338 GB, free: 100 kB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.873e-06/0.005517, allocations: 0.5312 kB / 0.7338 GB, free: 100 kB / 0.698 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=11): time 0.007561/0.01308, allocations: 2.172 MB / 0.7359 GB, free: 13.92 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.829e-05/0.01311, allocations: 51.41 kB / 0.736 GB, free: 13.86 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.104e-05/0.01317, allocations: 113.4 kB / 0.7361 GB, free: 13.74 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.693e-05/0.0132, allocations: 29.7 kB / 0.7361 GB, free: 13.7 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 2.795e-05/0.01323, allocations: 80.14 kB / 0.7362 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 5.477e-05/0.01329, allocations: 47.62 kB / 0.7362 GB, free: 13.57 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.907e-05/0.01338, allocations: 57.58 kB / 0.7363 GB, free: 13.51 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.96e-05/0.01345, allocations: 318.8 kB / 0.7366 GB, free: 13.19 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.01355, allocations: 91.94 kB / 0.7367 GB, free: 13.1 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.01366, allocations: 102.6 kB / 0.7368 GB, free: 13 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002474/0.01391, allocations: 224.6 kB / 0.737 GB, free: 12.78 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.02e-07/0.01391, allocations: 0 / 0.737 GB, free: 12.78 MB / 0.7136 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003013/0.01421, allocations: 254.7 kB / 0.7372 GB, free: 12.53 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.01423, allocations: 6.094 kB / 0.7373 GB, free: 12.52 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.01423, allocations: 0 / 0.7373 GB, free: 12.52 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.01425, allocations: 0.9688 kB / 0.7373 GB, free: 12.52 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003716/0.01462, allocations: 124.9 kB / 0.7374 GB, free: 12.4 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.015e-06/0.01462, allocations: 1.969 kB / 0.7374 GB, free: 12.4 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001904/0.01481, allocations: 31.95 kB / 0.7374 GB, free: 12.37 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.065e-05/0.01484, allocations: 19.94 kB / 0.7374 GB, free: 12.35 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (13): * Single equations (assignments): 13 * 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 0.0001057/0.01495, allocations: 118.7 kB / 0.7375 GB, free: 12.23 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.086e-05/0.01501, allocations: 8.516 kB / 0.7375 GB, free: 12.22 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.065e-05/0.01505, allocations: 16.12 kB / 0.7376 GB, free: 12.2 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.01505, allocations: 0.625 kB / 0.7376 GB, free: 12.2 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.01505, allocations: 1.312 kB / 0.7376 GB, free: 12.2 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.01506, allocations: 0 / 0.7376 GB, free: 12.2 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005736/0.01563, allocations: 471.5 kB / 0.738 GB, free: 11.71 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.01563, allocations: 0 / 0.738 GB, free: 11.71 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003567/0.01599, allocations: 121.8 kB / 0.7381 GB, free: 11.6 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.713e-05/0.01606, allocations: 27.89 kB / 0.7382 GB, free: 11.57 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.01606, allocations: 0 / 0.7382 GB, free: 11.57 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.995e-05/0.01609, allocations: 23.92 kB / 0.7382 GB, free: 11.55 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.01609, allocations: 0.625 kB / 0.7382 GB, free: 11.55 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.01609, allocations: 0 / 0.7382 GB, free: 11.55 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004915/0.01658, allocations: 452.8 kB / 0.7386 GB, free: 11.09 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.901e-05/0.01662, allocations: 8 kB / 0.7386 GB, free: 11.08 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.01684, allocations: 34.17 kB / 0.7386 GB, free: 11.05 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.051e-05/0.0169, allocations: 27.92 kB / 0.7387 GB, free: 11.02 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.931e-05/0.01693, allocations: 15.94 kB / 0.7387 GB, free: 11.01 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.507e-05/0.01695, allocations: 14.25 kB / 0.7387 GB, free: 10.99 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6e-08/0.01695, allocations: 0 / 0.7387 GB, free: 10.99 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002215/0.01717, allocations: 55.94 kB / 0.7388 GB, free: 10.94 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * 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 (11): * Single equations (assignments): 11 * 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.0001731/0.01734, allocations: 93.64 kB / 0.7388 GB, free: 10.84 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002989/0.01764, allocations: 240 kB / 0.7391 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.01764, allocations: 0 / 0.7391 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.01779, allocations: 144.9 kB / 0.7392 GB, free: 10.46 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.018, allocations: 114.1 kB / 0.7393 GB, free: 10.34 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.01944, allocations: 0.5609 MB / 0.7399 GB, free: 9.785 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.252e-05/0.01948, allocations: 63.34 kB / 0.7399 GB, free: 9.703 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0002968/0.01977, allocations: 90.34 kB / 0.74 GB, free: 9.668 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002611/0.02003, allocations: 103.2 kB / 0.7401 GB, free: 9.566 MB / 0.7136 GB Notification: Performance of SimCode: time 9.82e-07/0.02003, allocations: 0 / 0.7401 GB, free: 9.566 MB / 0.7136 GB Notification: Performance of Templates: time 0.004729/0.02476, allocations: 3.892 MB / 0.7439 GB, free: 5.688 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check/Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.9321421924978495]