Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 106.2 kB / 16.36 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 195.8 kB / 17.3 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.198/1.198, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.006/2.006, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 67.27 kB / 0.814 GB, free: 32.62 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.2279, allocations: 140.4 MB / 0.9511 GB, free: 8.066 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001946/0.2298, allocations: 0.7897 MB / 0.9519 GB, free: 7.273 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001592/0.2314, allocations: 1.476 MB / 0.9533 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.973e-05/0.2315, allocations: 4 kB / 0.9533 GB, free: 5.777 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.555e-05/0.2315, allocations: 7.938 kB / 0.9533 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.06e-05/0.2316, allocations: 3.938 kB / 0.9534 GB, free: 5.766 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000452/0.232, allocations: 135.4 kB / 0.9535 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.418e-05/0.2321, allocations: 47.97 kB / 0.9535 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.927e-05/0.2322, allocations: 11.91 kB / 0.9535 GB, free: 5.574 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.527e-05/0.2322, allocations: 31.84 kB / 0.9536 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.785e-05/0.2323, allocations: 35.83 kB / 0.9536 GB, free: 5.508 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.488e-05/0.2323, allocations: 4 kB / 0.9536 GB, free: 5.504 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003986/0.2327, allocations: 319.4 kB / 0.9539 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.85e-05/0.2328, allocations: 11.98 kB / 0.9539 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.369e-05/0.2328, allocations: 23.86 kB / 0.9539 GB, free: 5.156 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002749/0.2331, allocations: 211.5 kB / 0.9541 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.2331, allocations: 4 kB / 0.9541 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2331, allocations: 0 / 0.9541 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.376e-06/0.2331, allocations: 4 kB / 0.9542 GB, free: 4.941 MB / 0.7325 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.0005538/0.2337, allocations: 399.4 kB / 0.9545 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 2.985e-05/0.2337, allocations: 12.03 kB / 0.9545 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003984/0.2341, allocations: 68.84 kB / 0.9546 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.2342, allocations: 172.2 kB / 0.9548 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.629e-05/0.2342, allocations: 4.375 kB / 0.9548 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.269e-05/0.2343, allocations: 4.375 kB / 0.9548 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003412/0.2346, allocations: 117.9 kB / 0.9549 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.2346, allocations: 3.938 kB / 0.9549 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.2347, allocations: 7.984 kB / 0.9549 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.2347, allocations: 0 / 0.9549 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004133/0.2351, allocations: 107.8 kB / 0.955 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005434/0.2356, allocations: 328.7 kB / 0.9553 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005516/0.2362, allocations: 154.4 kB / 0.9555 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002125/0.2364, allocations: 60.8 kB / 0.9555 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.351e-05/0.2364, allocations: 4.141 kB / 0.9555 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.2365, allocations: 34.56 kB / 0.9556 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.2365, allocations: 0 / 0.9556 GB, free: 3.332 MB / 0.7325 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.01616/0.2526, allocations: 2.822 MB / 0.9583 GB, free: 424 kB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.102e-05/0.2527, allocations: 59.34 kB / 0.9584 GB, free: 352 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.163e-05/0.2528, allocations: 109.7 kB / 0.9585 GB, free: 232 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.288e-05/0.2528, allocations: 25.7 kB / 0.9585 GB, free: 200 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.85e-05/0.2529, allocations: 95.97 kB / 0.9586 GB, free: 100 kB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.208e-05/0.2529, allocations: 35.45 kB / 0.9586 GB, free: 64 kB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001628/0.2531, allocations: 69.58 kB / 0.9587 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 9.987e-05/0.2532, allocations: 318.8 kB / 0.959 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000578/0.2538, allocations: 191.8 kB / 0.9592 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005653/0.2544, allocations: 195.8 kB / 0.9594 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.2555, allocations: 396.5 kB / 0.9598 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.2555, allocations: 4 kB / 0.9598 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001369/0.2569, allocations: 477.2 kB / 0.9602 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.2569, allocations: 4 kB / 0.9602 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.2569, allocations: 0 / 0.9602 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.257, allocations: 3.938 kB / 0.9602 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007593/0.2577, allocations: 111.8 kB / 0.9603 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.2577, allocations: 3.938 kB / 0.9603 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005396/0.2583, allocations: 43.94 kB / 0.9604 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.028e-05/0.2584, allocations: 31.92 kB / 0.9604 GB, free: 14.23 MB / 0.7481 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.0001368/0.2585, allocations: 116.7 kB / 0.9605 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.341e-05/0.2586, allocations: 7.906 kB / 0.9605 GB, free: 14.1 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.654e-05/0.2586, allocations: 7.969 kB / 0.9605 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.2586, allocations: 0 / 0.9605 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.2587, allocations: 7.938 kB / 0.9605 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2587, allocations: 0 / 0.9605 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002052/0.2607, allocations: 1.051 MB / 0.9616 GB, free: 12.92 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.2607, allocations: 0 / 0.9616 GB, free: 12.92 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007439/0.2615, allocations: 107.8 kB / 0.9617 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.2615, allocations: 3.938 kB / 0.9617 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.123e-05/0.2616, allocations: 23.94 kB / 0.9617 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2616, allocations: 3.984 kB / 0.9617 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.2616, allocations: 3.938 kB / 0.9617 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002093/0.2637, allocations: 0.7878 MB / 0.9625 GB, free: 11.98 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/0.2638, allocations: 117 kB / 0.9626 GB, free: 11.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.132e-05/0.2639, allocations: 3.984 kB / 0.9626 GB, free: 11.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006151/0.2645, allocations: 52 kB / 0.9626 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.918e-05/0.2646, allocations: 28.11 kB / 0.9627 GB, free: 11.76 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-05/0.2647, allocations: 19.94 kB / 0.9627 GB, free: 11.74 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 3.545e-05/0.2647, allocations: 83.27 kB / 0.9628 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2647, allocations: 4 kB / 0.9628 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000347/0.2651, allocations: 56 kB / 0.9628 GB, free: 11.6 MB / 0.7481 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.0002011/0.2653, allocations: 115.2 kB / 0.9629 GB, free: 11.48 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001292/0.2666, allocations: 415.5 kB / 0.9633 GB, free: 11.07 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.2666, allocations: 8 kB / 0.9633 GB, free: 11.06 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0006413/0.2672, allocations: 227.9 kB / 0.9635 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003099/0.2676, allocations: 12.56 kB / 0.9636 GB, free: 10.83 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003782/0.2714, allocations: 0.7743 MB / 0.9643 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002417/0.2716, allocations: 0.6924 MB / 0.965 GB, free: 9.316 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0004659/0.2721, allocations: 92.61 kB / 0.9651 GB, free: 9.227 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002339/0.2723, allocations: 55.3 kB / 0.9651 GB, free: 9.172 MB / 0.7481 GB Notification: Performance of SimCode: time 3.41e-07/0.2723, allocations: 0 / 0.9651 GB, free: 9.172 MB / 0.7481 GB Notification: Performance of Templates: time 0.005638/0.278, allocations: 3.462 MB / 0.9685 GB, free: 5.703 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches