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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.0009053/0.00091, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008196/0.008196, allocations: 169.8 kB / 16.27 MB, free: 6.652 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.386/1.386, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.791/2.791, allocations: 462.7 MB / 0.7364 GB, free: 208 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003829/0.0003835, allocations: 15.69 kB / 0.9028 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3155, allocations: 159.6 MB / 1.059 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001158/0.3167, allocations: 0.5075 MB / 1.059 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002152/0.3189, allocations: 1.489 MB / 1.061 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.957e-05/0.319, allocations: 0 / 1.061 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.933e-05/0.319, allocations: 4 kB / 1.061 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.639e-05/0.3191, allocations: 7.938 kB / 1.061 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005258/0.3196, allocations: 103.7 kB / 1.061 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.675e-05/0.3197, allocations: 55.84 kB / 1.061 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.274e-05/0.3197, allocations: 11.97 kB / 1.061 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.76e-05/0.3198, allocations: 23.92 kB / 1.061 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.219e-05/0.3199, allocations: 27.91 kB / 1.061 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.642e-05/0.3199, allocations: 4 kB / 1.061 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004996/0.3204, allocations: 315.3 kB / 1.061 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.943e-05/0.3205, allocations: 15.92 kB / 1.061 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.498e-05/0.3206, allocations: 57.55 kB / 1.061 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000347/0.3209, allocations: 195.6 kB / 1.061 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3209, allocations: 0 / 1.061 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.286e-06/0.3209, allocations: 8 kB / 1.061 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.3209, allocations: 0 / 1.061 GB, free: 2.566 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.000702/0.3216, allocations: 391.6 kB / 1.062 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.3217, allocations: 8.031 kB / 1.062 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004855/0.3222, allocations: 88.84 kB / 1.062 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000152/0.3224, allocations: 172.2 kB / 1.062 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.575e-05/0.3224, allocations: 8.375 kB / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.143e-05/0.3224, allocations: 8.312 kB / 1.062 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004196/0.3229, allocations: 133.9 kB / 1.062 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.3229, allocations: 0 / 1.062 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.3229, allocations: 0 / 1.062 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.3229, allocations: 0 / 1.062 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005213/0.3234, allocations: 131.1 kB / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006606/0.3241, allocations: 340.6 kB / 1.063 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006984/0.3248, allocations: 186.4 kB / 1.063 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002584/0.3251, allocations: 68.75 kB / 1.063 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.3251, allocations: 0 / 1.063 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.3251, allocations: 38.56 kB / 1.063 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.3252, allocations: 0 / 1.063 GB, free: 0.8672 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.0199/0.3451, allocations: 3.174 MB / 1.066 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.801e-05/0.3451, allocations: 59.34 kB / 1.066 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.29e-05/0.3452, allocations: 101.8 kB / 1.066 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.926e-05/0.3453, allocations: 29.7 kB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.476e-05/0.3454, allocations: 95.97 kB / 1.066 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.245e-05/0.3454, allocations: 39.45 kB / 1.066 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.208e-05/0.3455, allocations: 21.7 kB / 1.066 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.3456, allocations: 314.8 kB / 1.067 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007195/0.3464, allocations: 215.8 kB / 1.067 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007043/0.3471, allocations: 219.8 kB / 1.067 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001485/0.3486, allocations: 444.5 kB / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3486, allocations: 0 / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001664/0.3503, allocations: 0.5207 MB / 1.068 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.3503, allocations: 4 kB / 1.068 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.3503, allocations: 0 / 1.068 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.3503, allocations: 4 kB / 1.068 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008739/0.3512, allocations: 123.7 kB / 1.068 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.3512, allocations: 3.938 kB / 1.068 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000689/0.3519, allocations: 59.94 kB / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.537e-05/0.352, allocations: 23.94 kB / 1.068 GB, free: 11.3 MB / 0.8262 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.0001647/0.3522, allocations: 115.5 kB / 1.068 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.936e-05/0.3522, allocations: 3.938 kB / 1.068 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.682e-05/0.3523, allocations: 23.95 kB / 1.068 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.3523, allocations: 0 / 1.068 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.3523, allocations: 3.938 kB / 1.068 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3523, allocations: 0 / 1.068 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002294/0.3546, allocations: 1.098 MB / 1.069 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3547, allocations: 0 / 1.069 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008638/0.3555, allocations: 119.8 kB / 1.07 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.3555, allocations: 3.938 kB / 1.07 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.201e-05/0.3556, allocations: 23.94 kB / 1.07 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.3556, allocations: 4.312 kB / 1.07 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3556, allocations: 0 / 1.07 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002476/0.3581, allocations: 0.8659 MB / 1.07 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001425/0.3582, allocations: 120.9 kB / 1.071 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.156e-05/0.3583, allocations: 4 kB / 1.071 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007304/0.3591, allocations: 56 kB / 1.071 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.3592, allocations: 31.92 kB / 1.071 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.75e-05/0.3592, allocations: 31.92 kB / 1.071 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.86e-05/0.3593, allocations: 79.28 kB / 1.071 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3593, allocations: 4 kB / 1.071 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003986/0.3597, allocations: 48 kB / 1.071 GB, free: 8.516 MB / 0.8262 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.0002099/0.3599, allocations: 115.2 kB / 1.071 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001531/0.3614, allocations: 478.8 kB / 1.071 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3615, allocations: 4 kB / 1.071 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0007677/0.3622, allocations: 248 kB / 1.072 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/0.3626, allocations: 13.69 kB / 1.072 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004506/0.3671, allocations: 0.8774 MB / 1.072 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002508/0.3674, allocations: 0.6926 MB / 1.073 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0006763/0.3681, allocations: 96.66 kB / 1.073 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000263/0.3683, allocations: 55.3 kB / 1.073 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of SimCode: time 6.01e-07/0.3684, allocations: 0 / 1.073 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of Templates: time 0.006962/0.3753, allocations: 3.319 MB / 1.077 GB, free: 2.586 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 -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/jenkins/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