Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001177/0.001177, allocations: 110.1 kB / 16.37 MB, free: 5.984 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.001139/0.001139, allocations: 194.5 kB / 17.31 MB, free: 5.602 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.192/1.192, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.194/2.194, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 67.7 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2473, allocations: 153 MB / 1.027 GB, free: 2.039 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001795/0.2491, allocations: 0.7962 MB / 1.028 GB, free: 1.242 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001526/0.2507, allocations: 1.477 MB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.002e-05/0.2507, allocations: 4 kB / 1.029 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.711e-05/0.2508, allocations: 7.938 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.86e-05/0.2508, allocations: 3.938 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004486/0.2512, allocations: 142.8 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.009e-05/0.2513, allocations: 47.97 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.892e-05/0.2514, allocations: 7.984 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.407e-05/0.2515, allocations: 27.92 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.901e-05/0.2515, allocations: 35.83 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.601e-05/0.2515, allocations: 4 kB / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003921/0.2519, allocations: 323.3 kB / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.044e-05/0.252, allocations: 15.98 kB / 1.03 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.065e-05/0.252, allocations: 19.86 kB / 1.03 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002803/0.2523, allocations: 215.5 kB / 1.03 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2523, allocations: 0 / 1.03 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.673e-06/0.2523, allocations: 8 kB / 1.03 GB, free: 14.9 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.2523, allocations: 0 / 1.03 GB, free: 14.9 MB / 0.8106 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.0005607/0.2529, allocations: 391.4 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.2529, allocations: 12.03 kB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004051/0.2533, allocations: 72.75 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/0.2534, allocations: 168.3 kB / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.2535, allocations: 4.375 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.374e-05/0.2535, allocations: 12.31 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003271/0.2538, allocations: 113.9 kB / 1.031 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.2539, allocations: 4 kB / 1.031 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.539e-05/0.2539, allocations: 4 kB / 1.031 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.2539, allocations: 0 / 1.031 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000411/0.2543, allocations: 99.89 kB / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004907/0.2548, allocations: 336.6 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005581/0.2554, allocations: 154.4 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.2556, allocations: 56.81 kB / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.39e-05/0.2556, allocations: 0 / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.011e-05/0.2556, allocations: 34.5 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 9.51e-07/0.2556, allocations: 4 kB / 1.031 GB, free: 13.3 MB / 0.8106 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.01638/0.272, allocations: 2.838 MB / 1.034 GB, free: 10.37 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.2721, allocations: 59.34 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.452e-05/0.2722, allocations: 97.84 kB / 1.034 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.772e-05/0.2722, allocations: 33.7 kB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.077e-05/0.2723, allocations: 88.06 kB / 1.034 GB, free: 10.07 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.122e-05/0.2724, allocations: 39.45 kB / 1.034 GB, free: 10.03 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.2725, allocations: 69.58 kB / 1.034 GB, free: 9.953 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.2726, allocations: 318.8 kB / 1.035 GB, free: 9.633 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005921/0.2732, allocations: 195.8 kB / 1.035 GB, free: 9.441 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000585/0.2738, allocations: 187.9 kB / 1.035 GB, free: 9.258 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001197/0.275, allocations: 396.5 kB / 1.035 GB, free: 8.867 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.275, allocations: 4 kB / 1.035 GB, free: 8.863 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001424/0.2765, allocations: 479.2 kB / 1.036 GB, free: 8.391 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.2765, allocations: 4 kB / 1.036 GB, free: 8.387 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.2765, allocations: 0 / 1.036 GB, free: 8.387 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.2765, allocations: 192 / 1.036 GB, free: 8.387 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007867/0.2773, allocations: 115.8 kB / 1.036 GB, free: 8.273 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.2774, allocations: 3.938 kB / 1.036 GB, free: 8.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005574/0.2779, allocations: 43.94 kB / 1.036 GB, free: 8.227 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.809e-05/0.278, allocations: 27.92 kB / 1.036 GB, free: 8.199 MB / 0.8106 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.0001671/0.2782, allocations: 117.8 kB / 1.036 GB, free: 8.074 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.402e-05/0.2782, allocations: 3.906 kB / 1.036 GB, free: 8.07 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.516e-05/0.2783, allocations: 15.97 kB / 1.036 GB, free: 8.055 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.2783, allocations: 3.984 kB / 1.036 GB, free: 8.051 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.2783, allocations: 7.938 kB / 1.036 GB, free: 8.043 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.2783, allocations: 0 / 1.036 GB, free: 8.043 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001999/0.2803, allocations: 1.039 MB / 1.037 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.2803, allocations: 4 kB / 1.037 GB, free: 6.883 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007401/0.2811, allocations: 107.7 kB / 1.037 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.2811, allocations: 3.938 kB / 1.037 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.926e-05/0.2812, allocations: 31.92 kB / 1.037 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2812, allocations: 0 / 1.037 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.2812, allocations: 0 / 1.037 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002042/0.2832, allocations: 0.7839 MB / 1.038 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/0.2834, allocations: 121 kB / 1.038 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.037e-05/0.2834, allocations: 4.094 kB / 1.038 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006181/0.2841, allocations: 51.94 kB / 1.038 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.859e-05/0.2842, allocations: 27.92 kB / 1.038 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.352e-05/0.2842, allocations: 23.94 kB / 1.038 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.796e-05/0.2843, allocations: 83.27 kB / 1.038 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2843, allocations: 4 kB / 1.038 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000338/0.2846, allocations: 56 kB / 1.038 GB, free: 5.559 MB / 0.8106 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.0001771/0.2848, allocations: 114.4 kB / 1.039 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001271/0.2861, allocations: 423.5 kB / 1.039 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2861, allocations: 4 kB / 1.039 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006181/0.2867, allocations: 223.7 kB / 1.039 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.287, allocations: 8.547 kB / 1.039 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003689/0.2907, allocations: 0.7557 MB / 1.04 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002062/0.291, allocations: 0.6924 MB / 1.041 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0004566/0.2914, allocations: 88.67 kB / 1.041 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002328/0.2917, allocations: 59.3 kB / 1.041 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.2917, allocations: 0 / 1.041 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of Templates: time 0.005275/0.2969, allocations: 3.467 MB / 1.044 GB, free: 15.69 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches