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.0014/0.0014, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 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.001606/0.001606, allocations: 208.8 kB / 22.24 MB, free: 4.859 MB / 14.72 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.592/1.592, allocations: 230.6 MB / 256 MB, free: 8.062 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.311/3.311, allocations: 0.4892 GB / 0.7943 GB, free: 35.48 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings 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.002157/0.002157, allocations: 72.08 kB / 1.154 GB, free: 25.61 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3936/0.3957, allocations: 176.1 MB / 1.326 GB, free: 1.863 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.00241/0.3981, allocations: 0.7674 MB / 1.326 GB, free: 1.102 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002392/0.4005, allocations: 1.455 MB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.553e-05/0.4006, allocations: 0 / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.212e-05/0.4006, allocations: 7.922 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.201e-05/0.4007, allocations: 3.938 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006906/0.4014, allocations: 155.3 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000112/0.4015, allocations: 51.89 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.741e-05/0.4015, allocations: 0 / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.944e-05/0.4016, allocations: 23.92 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.054e-05/0.4017, allocations: 31.89 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.061e-05/0.4017, allocations: 4 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000459/0.4022, allocations: 259.5 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.554e-05/0.4022, allocations: 15.92 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.247e-05/0.4022, allocations: 15.92 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004295/0.4027, allocations: 207.3 kB / 1.328 GB, free: 14.87 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.4027, allocations: 0 / 1.328 GB, free: 14.87 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.693e-06/0.4027, allocations: 0 / 1.328 GB, free: 14.87 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.555e-06/0.4027, allocations: 0 / 1.328 GB, free: 14.87 MB / 1.029 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.0007914/0.4035, allocations: 325.8 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.4035, allocations: 12.03 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004942/0.404, allocations: 72.81 kB / 1.329 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.4041, allocations: 114.5 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.514e-05/0.4042, allocations: 4.375 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.314e-05/0.4042, allocations: 12.33 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004449/0.4047, allocations: 157.3 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.4047, allocations: 7.938 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.4047, allocations: 4 kB / 1.329 GB, free: 14.1 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.4047, allocations: 7.938 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004996/0.4052, allocations: 99.89 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006261/0.4058, allocations: 264.4 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006835/0.4065, allocations: 166.4 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002431/0.4068, allocations: 56.81 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.968e-05/0.4068, allocations: 3.938 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.4068, allocations: 30.56 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.4068, allocations: 4 kB / 1.33 GB, free: 13.43 MB / 1.029 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.01826/0.4251, allocations: 2.681 MB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/0.4251, allocations: 59.34 kB / 1.332 GB, free: 10.62 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.506e-05/0.4252, allocations: 109.7 kB / 1.333 GB, free: 10.51 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.703e-05/0.4253, allocations: 25.7 kB / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.918e-05/0.4253, allocations: 96.09 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.765e-05/0.4254, allocations: 39.64 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.4256, allocations: 69.58 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.4257, allocations: 314.8 kB / 1.333 GB, free: 9.949 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006933/0.4264, allocations: 191.8 kB / 1.333 GB, free: 9.762 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006799/0.4271, allocations: 187.8 kB / 1.333 GB, free: 9.578 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.4285, allocations: 396.5 kB / 1.334 GB, free: 9.188 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.4285, allocations: 0 / 1.334 GB, free: 9.188 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001601/0.4301, allocations: 477.3 kB / 1.334 GB, free: 8.715 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.4301, allocations: 8 kB / 1.334 GB, free: 8.707 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.4301, allocations: 4 kB / 1.334 GB, free: 8.703 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.4301, allocations: 3.938 kB / 1.334 GB, free: 8.699 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008287/0.431, allocations: 99.8 kB / 1.334 GB, free: 8.602 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.431, allocations: 4 kB / 1.334 GB, free: 8.598 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006062/0.4316, allocations: 47.88 kB / 1.334 GB, free: 8.551 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.914e-05/0.4316, allocations: 31.92 kB / 1.334 GB, free: 8.52 MB / 1.029 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.0001778/0.4318, allocations: 114.4 kB / 1.335 GB, free: 8.398 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.7e-05/0.4319, allocations: 4.188 kB / 1.335 GB, free: 8.395 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.538e-05/0.432, allocations: 16.05 kB / 1.335 GB, free: 8.371 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.432, allocations: 0 / 1.335 GB, free: 8.371 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.432, allocations: 0 / 1.335 GB, free: 8.371 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.432, allocations: 7.922 kB / 1.335 GB, free: 8.363 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002342/0.4343, allocations: 0.9606 MB / 1.336 GB, free: 7.309 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.4343, allocations: 0 / 1.336 GB, free: 7.309 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008097/0.4352, allocations: 107.8 kB / 1.336 GB, free: 7.203 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.274e-05/0.4352, allocations: 4 kB / 1.336 GB, free: 7.199 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.808e-05/0.4352, allocations: 23.94 kB / 1.336 GB, free: 7.176 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.421e-06/0.4352, allocations: 4.25 kB / 1.336 GB, free: 7.172 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.4352, allocations: 3.938 kB / 1.336 GB, free: 7.168 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002459/0.4377, allocations: 0.7879 MB / 1.336 GB, free: 6.363 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.4379, allocations: 39.98 kB / 1.336 GB, free: 6.324 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.463e-05/0.4379, allocations: 7.938 kB / 1.336 GB, free: 6.316 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006698/0.4386, allocations: 51.94 kB / 1.337 GB, free: 6.266 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.241e-05/0.4387, allocations: 23.92 kB / 1.337 GB, free: 6.242 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.014e-05/0.4387, allocations: 35.92 kB / 1.337 GB, free: 6.207 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.013e-05/0.4388, allocations: 79.28 kB / 1.337 GB, free: 6.129 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4388, allocations: 0 / 1.337 GB, free: 6.129 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003881/0.4392, allocations: 55.94 kB / 1.337 GB, free: 6.074 MB / 1.029 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.0002368/0.4394, allocations: 115.1 kB / 1.337 GB, free: 5.953 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001504/0.4409, allocations: 411.5 kB / 1.337 GB, free: 5.551 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.4409, allocations: 0 / 1.337 GB, free: 5.551 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0007347/0.4417, allocations: 231.6 kB / 1.337 GB, free: 5.324 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003672/0.442, allocations: 8 kB / 1.337 GB, free: 5.316 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004235/0.4463, allocations: 0.756 MB / 1.338 GB, free: 4.535 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.884e-05/0.4464, allocations: 75.33 kB / 1.338 GB, free: 4.441 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0005549/0.4469, allocations: 96.64 kB / 1.338 GB, free: 4.348 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002638/0.4472, allocations: 55.31 kB / 1.338 GB, free: 4.293 MB / 1.029 GB Notification: Performance of SimCode: time 1.683e-06/0.4472, allocations: 0 / 1.338 GB, free: 4.293 MB / 1.029 GB Notification: Performance of Templates: time 0.009862/0.457, allocations: 3.715 MB / 1.342 GB, free: 0.5859 MB / 1.029 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.566607801243663]