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.001072/0.001072, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001132/0.001132, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 223.3 MB / 240 MB, free: 5.289 MB / 190.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.475/2.475, allocations: 390.9 MB / 0.666 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000483/0.0004831, allocations: 16 kB / 0.8154 GB, free: 13.56 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7665/0.767, allocations: 142.4 MB / 0.9544 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.0009536/0.768, allocations: 0.494 MB / 0.9549 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001527/0.7695, allocations: 1.403 MB / 0.9563 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.916e-05/0.7696, allocations: 0 / 0.9563 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.745e-05/0.7696, allocations: 3.938 kB / 0.9563 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.088e-05/0.7697, allocations: 1.375 kB / 0.9563 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004028/0.7701, allocations: 113.4 kB / 0.9564 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.073e-05/0.7701, allocations: 41.31 kB / 0.9565 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.292e-05/0.7702, allocations: 6.984 kB / 0.9565 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.645e-05/0.7703, allocations: 19.11 kB / 0.9565 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.782e-05/0.7703, allocations: 33.94 kB / 0.9565 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.7703, allocations: 11.22 kB / 0.9565 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000398/0.7708, allocations: 312.5 kB / 0.9568 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.639e-05/0.7708, allocations: 6.438 kB / 0.9568 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.631e-05/0.7708, allocations: 37.58 kB / 0.9569 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002128/0.771, allocations: 143.1 kB / 0.957 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.7711, allocations: 5.438 kB / 0.957 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.703e-06/0.7711, allocations: 3.938 kB / 0.957 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.273e-06/0.7711, allocations: 0 / 0.957 GB, free: 5.816 MB / 0.7169 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.000516/0.7716, allocations: 395.9 kB / 0.9574 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.7716, allocations: 9.062 kB / 0.9574 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004066/0.7721, allocations: 88.27 kB / 0.9575 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.079e-05/0.7721, allocations: 165.3 kB / 0.9576 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.988e-05/0.7722, allocations: 7.406 kB / 0.9576 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.62e-05/0.7722, allocations: 4.75 kB / 0.9576 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003308/0.7725, allocations: 120.8 kB / 0.9578 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.7726, allocations: 1.969 kB / 0.9578 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.7726, allocations: 8 kB / 0.9578 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.7726, allocations: 1.938 kB / 0.9578 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004259/0.773, allocations: 125.9 kB / 0.9579 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004948/0.7735, allocations: 346.2 kB / 0.9582 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005597/0.7741, allocations: 180.7 kB / 0.9584 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002048/0.7743, allocations: 72.67 kB / 0.9585 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.7743, allocations: 0 / 0.9585 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.648e-05/0.7744, allocations: 35.94 kB / 0.9585 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.7744, allocations: 1.375 kB / 0.9585 GB, free: 4.547 MB / 0.7169 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.01666/0.791, allocations: 3.188 MB / 0.9616 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.7912, allocations: 56.88 kB / 0.9617 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.173e-05/0.7913, allocations: 102.8 kB / 0.9618 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.971e-05/0.7913, allocations: 25.7 kB / 0.9618 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.2e-05/0.7914, allocations: 90.55 kB / 0.9619 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.361e-05/0.7914, allocations: 39.45 kB / 0.9619 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.698e-05/0.7915, allocations: 0.9688 kB / 0.9619 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.984e-05/0.7915, allocations: 320.4 kB / 0.9622 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000621/0.7922, allocations: 218.1 kB / 0.9624 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006296/0.7928, allocations: 216 kB / 0.9626 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006903/0.7935, allocations: 220.6 kB / 0.9628 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.7935, allocations: 3.75 kB / 0.9628 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00144/0.795, allocations: 0.5107 MB / 0.9633 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.795, allocations: 9.562 kB / 0.9634 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.795, allocations: 3.938 kB / 0.9634 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.795, allocations: 4.875 kB / 0.9634 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007302/0.7958, allocations: 116.7 kB / 0.9635 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.7958, allocations: 1.375 kB / 0.9635 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005023/0.7963, allocations: 60.89 kB / 0.9635 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.315e-05/0.7964, allocations: 25.84 kB / 0.9636 GB, free: 1.496 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001375/0.7965, allocations: 116.8 kB / 0.9637 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.066e-05/0.7966, allocations: 11.56 kB / 0.9637 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.948e-05/0.7966, allocations: 13.27 kB / 0.9637 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.7967, allocations: 0.6875 kB / 0.9637 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.7967, allocations: 0.9375 kB / 0.9637 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.7967, allocations: 4 kB / 0.9637 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001956/0.7986, allocations: 1.104 MB / 0.9648 GB, free: 448 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.7987, allocations: 0 / 0.9648 GB, free: 448 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007165/0.7994, allocations: 124.2 kB / 0.9649 GB, free: 384 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.7994, allocations: 1 kB / 0.9649 GB, free: 384 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.167e-05/0.7994, allocations: 20.94 kB / 0.9649 GB, free: 368 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.7995, allocations: 0 / 0.9649 GB, free: 368 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.7995, allocations: 8.875 kB / 0.9649 GB, free: 360 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002192/0.8017, allocations: 0.8695 MB / 0.9658 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001479/0.8018, allocations: 119.6 kB / 0.9659 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.7e-05/0.8019, allocations: 4.75 kB / 0.9659 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005812/0.8025, allocations: 62.53 kB / 0.966 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.815e-05/0.8026, allocations: 25.92 kB / 0.966 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.906e-05/0.8026, allocations: 27.05 kB / 0.966 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.37e-05/0.8027, allocations: 82.34 kB / 0.9661 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8027, allocations: 0 / 0.9661 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004154/0.8031, allocations: 51.09 kB / 0.9661 GB, free: 15.58 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002238/0.8034, allocations: 124.5 kB / 0.9663 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001342/0.8047, allocations: 470.8 kB / 0.9667 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.8047, allocations: 0 / 0.9667 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006813/0.8054, allocations: 254.6 kB / 0.9669 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.8058, allocations: 8.328 kB / 0.967 GB, free: 15.13 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003809/0.8096, allocations: 0.8639 MB / 0.9678 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.8099, allocations: 0.6957 MB / 0.9685 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0007075/0.8106, allocations: 88.34 kB / 0.9686 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002624/0.8108, allocations: 59.73 kB / 0.9686 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of SimCode: time 7.61e-07/0.8108, allocations: 0 / 0.9686 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of Templates: time 0.007108/0.818, allocations: 3.256 MB / 0.9718 GB, free: 12.06 MB / 0.7325 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 -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/jenkins/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