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.001429/0.001429, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001534/0.001534, allocations: 211.4 kB / 22.99 MB, free: 4.984 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.531/1.531, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.794/3.794, allocations: 0.49 GB / 0.7959 GB, free: 35.54 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.002109/0.002109, allocations: 69.64 kB / 1.155 GB, free: 25.26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.36/0.3621, allocations: 176.1 MB / 1.327 GB, free: 1 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001943/0.3641, allocations: 0.7793 MB / 1.328 GB, free: 232 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001899/0.366, allocations: 1.451 MB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.177e-05/0.366, allocations: 0 / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.113e-05/0.366, allocations: 3.938 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 3.954e-05/0.3661, allocations: 3.938 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004954/0.3666, allocations: 151.4 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 9.728e-05/0.3667, allocations: 47.91 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.29e-05/0.3667, allocations: 3.984 kB / 1.33 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.764e-05/0.3668, allocations: 35.84 kB / 1.33 GB, free: 14.52 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.944e-05/0.3669, allocations: 31.91 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.762e-05/0.3669, allocations: 4 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003755/0.3673, allocations: 263.5 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.336e-05/0.3673, allocations: 19.92 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.945e-05/0.3673, allocations: 19.92 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002988/0.3676, allocations: 199.4 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.3676, allocations: 4 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3676, allocations: 0 / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.596e-06/0.3676, allocations: 0 / 1.33 GB, free: 13.98 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.0006344/0.3683, allocations: 321.8 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.033e-05/0.3683, allocations: 8.031 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004611/0.3687, allocations: 76.8 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.3689, allocations: 110.4 kB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.3689, allocations: 12.38 kB / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.044e-05/0.3689, allocations: 12.33 kB / 1.331 GB, free: 13.4 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004032/0.3693, allocations: 161.3 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.3693, allocations: 4 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.3693, allocations: 0 / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.3693, allocations: 3.938 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004701/0.3698, allocations: 103.9 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005701/0.3704, allocations: 284.2 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006252/0.371, allocations: 146.5 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.3712, allocations: 60.81 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.52e-05/0.3713, allocations: 0 / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.415e-05/0.3713, allocations: 34.55 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 7.32e-07/0.3713, allocations: 0 / 1.331 GB, free: 12.55 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.01967/0.391, allocations: 2.691 MB / 1.334 GB, free: 9.801 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/0.391, allocations: 55.41 kB / 1.334 GB, free: 9.734 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.815e-05/0.3911, allocations: 101.8 kB / 1.334 GB, free: 9.625 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.315e-05/0.3911, allocations: 25.7 kB / 1.334 GB, free: 9.594 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.897e-05/0.3912, allocations: 96.02 kB / 1.334 GB, free: 9.496 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 8.106e-05/0.3913, allocations: 51.62 kB / 1.334 GB, free: 9.445 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001764/0.3915, allocations: 69.58 kB / 1.334 GB, free: 9.371 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3916, allocations: 310.8 kB / 1.335 GB, free: 9.059 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006574/0.3922, allocations: 195.8 kB / 1.335 GB, free: 8.867 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006405/0.3929, allocations: 188.9 kB / 1.335 GB, free: 8.684 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001306/0.3942, allocations: 389.9 kB / 1.335 GB, free: 8.301 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.3942, allocations: 0 / 1.335 GB, free: 8.301 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001548/0.3957, allocations: 485.2 kB / 1.336 GB, free: 7.82 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.3958, allocations: 4 kB / 1.336 GB, free: 7.816 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.882e-06/0.3958, allocations: 4 kB / 1.336 GB, free: 7.812 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.3958, allocations: 4 kB / 1.336 GB, free: 7.809 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009017/0.3967, allocations: 103.8 kB / 1.336 GB, free: 7.707 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.3967, allocations: 0 / 1.336 GB, free: 7.707 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000673/0.3974, allocations: 51.88 kB / 1.336 GB, free: 7.656 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.24e-05/0.3974, allocations: 23.94 kB / 1.336 GB, free: 7.633 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.0001606/0.3976, allocations: 118.3 kB / 1.336 GB, free: 7.508 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.273e-05/0.3977, allocations: 8 kB / 1.336 GB, free: 7.5 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.848e-05/0.3977, allocations: 20.06 kB / 1.336 GB, free: 7.473 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.3977, allocations: 0 / 1.336 GB, free: 7.473 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3977, allocations: 0 / 1.336 GB, free: 7.473 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.3977, allocations: 3.938 kB / 1.336 GB, free: 7.469 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002218/0.4, allocations: 0.9529 MB / 1.337 GB, free: 6.422 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.4, allocations: 0 / 1.337 GB, free: 6.422 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009033/0.4009, allocations: 107.7 kB / 1.337 GB, free: 6.316 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.4009, allocations: 96 / 1.337 GB, free: 6.316 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.734e-05/0.4009, allocations: 31.86 kB / 1.337 GB, free: 6.285 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.4009, allocations: 3.938 kB / 1.337 GB, free: 6.281 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4009, allocations: 0 / 1.337 GB, free: 6.281 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002576/0.4035, allocations: 0.7893 MB / 1.338 GB, free: 5.477 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001639/0.4037, allocations: 43.88 kB / 1.338 GB, free: 5.434 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.816e-05/0.4037, allocations: 0 / 1.338 GB, free: 5.434 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000764/0.4045, allocations: 55.94 kB / 1.338 GB, free: 5.379 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.4046, allocations: 23.92 kB / 1.338 GB, free: 5.355 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.902e-05/0.4047, allocations: 23.94 kB / 1.338 GB, free: 5.332 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.098e-05/0.4048, allocations: 91.2 kB / 1.338 GB, free: 5.242 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4048, allocations: 0 / 1.338 GB, free: 5.242 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0005444/0.4053, allocations: 47.94 kB / 1.338 GB, free: 5.195 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.0002295/0.4055, allocations: 119.2 kB / 1.338 GB, free: 5.07 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001522/0.4071, allocations: 419.6 kB / 1.339 GB, free: 4.66 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.4071, allocations: 3.938 kB / 1.339 GB, free: 4.656 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0008224/0.4079, allocations: 215.7 kB / 1.339 GB, free: 4.445 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003689/0.4083, allocations: 15.94 kB / 1.339 GB, free: 4.43 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004723/0.413, allocations: 0.7555 MB / 1.34 GB, free: 3.648 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.479e-05/0.4131, allocations: 75.33 kB / 1.34 GB, free: 3.555 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0005042/0.4136, allocations: 92.98 kB / 1.34 GB, free: 3.465 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003248/0.4139, allocations: 59.3 kB / 1.34 GB, free: 3.406 MB / 1.029 GB Notification: Performance of SimCode: time 7.61e-07/0.4139, allocations: 7.938 kB / 1.34 GB, free: 3.398 MB / 1.029 GB Notification: Performance of Templates: time 0.007085/0.421, allocations: 3.743 MB / 1.344 GB, free: 15.66 MB / 1.045 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 -s cvode -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/jenkins1/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.820861939995666]