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.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.001378/0.001378, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.001578/0.001578, allocations: 157.7 kB / 22.75 MB, free: 1.684 MB / 18.57 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.464/1.464, allocations: 177.1 MB / 203.1 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.254/3.254, allocations: 429.6 MB / 0.673 GB, free: 3.871 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 0.8776 GB, free: 6.422 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.688e-05/2.821e-05, allocations: 4.984 kB / 0.8776 GB, free: 6.418 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001895/0.001924, allocations: 0.7836 MB / 0.8784 GB, free: 5.66 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002446/0.00437, allocations: 1.463 MB / 0.8798 GB, free: 4.184 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.345e-05/0.004403, allocations: 1.281 kB / 0.8798 GB, free: 4.184 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.524e-05/0.004439, allocations: 3.938 kB / 0.8798 GB, free: 4.18 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.071e-05/0.004489, allocations: 0 / 0.8798 GB, free: 4.18 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005721/0.005061, allocations: 151.7 kB / 0.88 GB, free: 4.035 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001043/0.005166, allocations: 51.89 kB / 0.88 GB, free: 3.984 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.855e-05/0.005204, allocations: 3.984 kB / 0.88 GB, free: 3.98 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001199/0.005324, allocations: 35.91 kB / 0.8801 GB, free: 3.945 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.929e-05/0.005393, allocations: 23.95 kB / 0.8801 GB, free: 3.922 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.604e-05/0.00542, allocations: 4.594 kB / 0.8801 GB, free: 3.918 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004506/0.00587, allocations: 251.5 kB / 0.8803 GB, free: 3.672 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.866e-05/0.005899, allocations: 21.25 kB / 0.8804 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.869e-05/0.005937, allocations: 11.98 kB / 0.8804 GB, free: 3.641 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003881/0.006326, allocations: 231.3 kB / 0.8806 GB, free: 3.414 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.006328, allocations: 0 / 0.8806 GB, free: 3.414 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.11e-07/0.006329, allocations: 1.531 kB / 0.8806 GB, free: 3.414 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.006333, allocations: 0 / 0.8806 GB, free: 3.414 MB / 0.8386 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.0007126/0.007046, allocations: 333.8 kB / 0.8809 GB, free: 3.059 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.007081, allocations: 8.031 kB / 0.8809 GB, free: 3.051 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000525/0.007606, allocations: 84.78 kB / 0.881 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.007746, allocations: 117.7 kB / 0.8811 GB, free: 2.828 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.488e-05/0.007771, allocations: 4.375 kB / 0.8811 GB, free: 2.824 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.812e-05/0.007809, allocations: 8.375 kB / 0.8811 GB, free: 2.816 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004771/0.008286, allocations: 164.8 kB / 0.8813 GB, free: 2.641 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.008301, allocations: 4.188 kB / 0.8813 GB, free: 2.637 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.037e-05/0.008322, allocations: 4.375 kB / 0.8813 GB, free: 2.633 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.008334, allocations: 7.938 kB / 0.8813 GB, free: 2.625 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005076/0.008842, allocations: 95.84 kB / 0.8814 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006796/0.009521, allocations: 264.5 kB / 0.8816 GB, free: 2.242 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007261/0.01025, allocations: 158.3 kB / 0.8818 GB, free: 2.078 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000259/0.01051, allocations: 56.81 kB / 0.8819 GB, free: 2.02 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.548e-05/0.01053, allocations: 4 kB / 0.8819 GB, free: 2.016 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.471e-05/0.01058, allocations: 34.56 kB / 0.8819 GB, free: 1.973 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.01058, allocations: 3.938 kB / 0.8819 GB, free: 1.969 MB / 0.8386 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.01921/0.02979, allocations: 2.683 MB / 0.8845 GB, free: 15.23 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/0.02983, allocations: 55.41 kB / 0.8846 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.02994, allocations: 105.8 kB / 0.8847 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.616e-05/0.03, allocations: 25.7 kB / 0.8847 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.835e-05/0.03007, allocations: 88.14 kB / 0.8848 GB, free: 14.93 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 9.247e-05/0.03016, allocations: 43.58 kB / 0.8848 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001802/0.03034, allocations: 69.58 kB / 0.8849 GB, free: 14.81 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001778/0.03052, allocations: 326.8 kB / 0.8852 GB, free: 14.48 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007448/0.03126, allocations: 187.8 kB / 0.8854 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007321/0.03199, allocations: 191.8 kB / 0.8856 GB, free: 14.11 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001496/0.03349, allocations: 396.5 kB / 0.8859 GB, free: 13.72 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.03349, allocations: 4 kB / 0.8859 GB, free: 13.71 MB / 0.8542 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001833/0.03532, allocations: 484.9 kB / 0.8864 GB, free: 13.24 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.03534, allocations: 4 kB / 0.8864 GB, free: 13.23 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.03535, allocations: 0 / 0.8864 GB, free: 13.23 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.381e-05/0.03537, allocations: 4 kB / 0.8864 GB, free: 13.23 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000866/0.03624, allocations: 107.8 kB / 0.8865 GB, free: 13.12 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.03625, allocations: 0 / 0.8865 GB, free: 13.12 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006413/0.03689, allocations: 47.94 kB / 0.8866 GB, free: 13.08 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.479e-05/0.03695, allocations: 20.95 kB / 0.8866 GB, free: 13.06 MB / 0.8542 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.0001844/0.03714, allocations: 125.7 kB / 0.8867 GB, free: 12.93 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.03727, allocations: 12 kB / 0.8867 GB, free: 12.91 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.391e-05/0.03733, allocations: 12.11 kB / 0.8867 GB, free: 12.9 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.03733, allocations: 192 / 0.8867 GB, free: 12.9 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.03734, allocations: 0 / 0.8867 GB, free: 12.9 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.03734, allocations: 3.984 kB / 0.8867 GB, free: 12.9 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0025/0.03985, allocations: 0.9688 MB / 0.8877 GB, free: 11.84 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.03985, allocations: 0 / 0.8877 GB, free: 11.84 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008391/0.04069, allocations: 103.8 kB / 0.8878 GB, free: 11.73 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.04069, allocations: 0 / 0.8878 GB, free: 11.73 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.588e-05/0.04075, allocations: 23.94 kB / 0.8878 GB, free: 11.71 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.04075, allocations: 4 kB / 0.8878 GB, free: 11.71 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.04075, allocations: 0 / 0.8878 GB, free: 11.71 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002645/0.0434, allocations: 0.7995 MB / 0.8886 GB, free: 10.89 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001495/0.04355, allocations: 35.94 kB / 0.8886 GB, free: 10.86 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.632e-05/0.04361, allocations: 8.062 kB / 0.8886 GB, free: 10.85 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007334/0.04435, allocations: 47.92 kB / 0.8887 GB, free: 10.8 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.04446, allocations: 27.86 kB / 0.8887 GB, free: 10.77 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.399e-05/0.04453, allocations: 27.88 kB / 0.8887 GB, free: 10.75 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 7.109e-05/0.0446, allocations: 87.28 kB / 0.8888 GB, free: 10.66 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.0446, allocations: 0 / 0.8888 GB, free: 10.66 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003981/0.045, allocations: 51.98 kB / 0.8889 GB, free: 10.61 MB / 0.8542 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.0002395/0.04524, allocations: 107.2 kB / 0.889 GB, free: 10.5 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.00164/0.04688, allocations: 415.5 kB / 0.8894 GB, free: 10.09 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.04688, allocations: 0 / 0.8894 GB, free: 10.09 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0008821/0.04776, allocations: 223.7 kB / 0.8896 GB, free: 9.871 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004095/0.04817, allocations: 35.81 kB / 0.8896 GB, free: 9.84 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00445/0.05262, allocations: 0.7621 MB / 0.8903 GB, free: 9.051 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.033e-05/0.05271, allocations: 79.52 kB / 0.8904 GB, free: 8.953 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0005579/0.05327, allocations: 96.72 kB / 0.8905 GB, free: 8.859 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000336/0.05361, allocations: 52.38 kB / 0.8906 GB, free: 8.809 MB / 0.8542 GB Notification: Performance of SimCode: time 1.173e-06/0.05361, allocations: 3.938 kB / 0.8906 GB, free: 8.805 MB / 0.8542 GB Notification: Performance of Templates: time 0.008392/0.062, allocations: 3.723 MB / 0.8942 GB, free: 5.098 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.22612180095166]