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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001474/0.001474, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 191.2 kB / 22.23 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 2.898/2.898, allocations: 495.7 MB / 0.7831 GB, free: 33.5 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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=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 0.001942/0.001942, allocations: 67.66 kB / 1.137 GB, free: 33.85 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3102, allocations: 173.6 MB / 1.307 GB, free: 1.879 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001926/0.3122, allocations: 0.8044 MB / 1.308 GB, free: 1.078 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001924/0.3141, allocations: 1.485 MB / 1.309 GB, free: 15.57 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.146e-05/0.3141, allocations: 0 / 1.309 GB, free: 15.57 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.764e-05/0.3141, allocations: 0 / 1.309 GB, free: 15.57 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 3.972e-05/0.3142, allocations: 3.938 kB / 1.309 GB, free: 15.57 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004889/0.3147, allocations: 154.6 kB / 1.309 GB, free: 15.42 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 9.392e-05/0.3148, allocations: 51.66 kB / 1.309 GB, free: 15.37 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.449e-05/0.3148, allocations: 7.984 kB / 1.309 GB, free: 15.36 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.443e-05/0.3149, allocations: 31.91 kB / 1.309 GB, free: 15.33 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.31e-05/0.315, allocations: 35.84 kB / 1.31 GB, free: 15.3 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.688e-05/0.315, allocations: 4 kB / 1.31 GB, free: 15.29 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000457/0.3154, allocations: 319.4 kB / 1.31 GB, free: 14.98 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.161e-05/0.3154, allocations: 11.98 kB / 1.31 GB, free: 14.97 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.635e-05/0.3155, allocations: 27.84 kB / 1.31 GB, free: 14.94 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003217/0.3158, allocations: 211.4 kB / 1.31 GB, free: 14.73 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3158, allocations: 0 / 1.31 GB, free: 14.73 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.203e-06/0.3158, allocations: 0 / 1.31 GB, free: 14.73 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.3158, allocations: 0 / 1.31 GB, free: 14.73 MB / 1.014 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.0006382/0.3165, allocations: 325.8 kB / 1.31 GB, free: 14.39 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.3165, allocations: 12.03 kB / 1.31 GB, free: 14.38 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004603/0.3169, allocations: 80.8 kB / 1.31 GB, free: 14.3 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.3171, allocations: 110.4 kB / 1.311 GB, free: 14.16 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.591e-05/0.3171, allocations: 12.38 kB / 1.311 GB, free: 14.15 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.582e-05/0.3171, allocations: 4.375 kB / 1.311 GB, free: 14.15 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003974/0.3175, allocations: 117.9 kB / 1.311 GB, free: 14.03 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.3175, allocations: 8 kB / 1.311 GB, free: 14.02 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.3175, allocations: 0 / 1.311 GB, free: 14.02 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.3175, allocations: 0 / 1.311 GB, free: 14.02 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005032/0.318, allocations: 107.8 kB / 1.311 GB, free: 13.91 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000575/0.3186, allocations: 299.7 kB / 1.311 GB, free: 13.58 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006724/0.3193, allocations: 154.4 kB / 1.311 GB, free: 13.42 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002502/0.3195, allocations: 56.8 kB / 1.311 GB, free: 13.36 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.3196, allocations: 4 kB / 1.311 GB, free: 13.36 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.3196, allocations: 30.56 kB / 1.311 GB, free: 13.32 MB / 1.014 GB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.3196, allocations: 4 kB / 1.311 GB, free: 13.31 MB / 1.014 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.01864/0.3382, allocations: 2.687 MB / 1.314 GB, free: 10.57 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/0.3383, allocations: 55.34 kB / 1.314 GB, free: 10.5 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.861e-05/0.3383, allocations: 101.8 kB / 1.314 GB, free: 10.39 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 5.52e-05/0.3384, allocations: 29.64 kB / 1.314 GB, free: 10.36 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 5.168e-05/0.3385, allocations: 92.09 kB / 1.314 GB, free: 10.26 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 7.074e-05/0.3385, allocations: 39.69 kB / 1.314 GB, free: 10.22 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001728/0.3387, allocations: 69.58 kB / 1.314 GB, free: 10.15 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3388, allocations: 314.8 kB / 1.315 GB, free: 9.832 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006873/0.3395, allocations: 191.8 kB / 1.315 GB, free: 9.645 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006881/0.3402, allocations: 191.7 kB / 1.315 GB, free: 9.457 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.3416, allocations: 400.7 kB / 1.315 GB, free: 9.062 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.3416, allocations: 0 / 1.315 GB, free: 9.062 MB / 1.014 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001602/0.3432, allocations: 480.3 kB / 1.316 GB, free: 8.59 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.3432, allocations: 8 kB / 1.316 GB, free: 8.582 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.3432, allocations: 0 / 1.316 GB, free: 8.582 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.3432, allocations: 0 / 1.316 GB, free: 8.582 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008455/0.3441, allocations: 103.7 kB / 1.316 GB, free: 8.48 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.3441, allocations: 11.94 kB / 1.316 GB, free: 8.469 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006227/0.3447, allocations: 39.94 kB / 1.316 GB, free: 8.43 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.206e-05/0.3448, allocations: 31.92 kB / 1.316 GB, free: 8.398 MB / 1.014 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.0001783/0.345, allocations: 113.8 kB / 1.316 GB, free: 8.277 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.291e-05/0.345, allocations: 7.953 kB / 1.316 GB, free: 8.27 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.084e-05/0.3451, allocations: 8.062 kB / 1.316 GB, free: 8.258 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3451, allocations: 4 kB / 1.316 GB, free: 8.254 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.3451, allocations: 3.938 kB / 1.316 GB, free: 8.25 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.3451, allocations: 0 / 1.316 GB, free: 8.25 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002311/0.3474, allocations: 1.026 MB / 1.317 GB, free: 7.117 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3474, allocations: 4 kB / 1.317 GB, free: 7.113 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008191/0.3482, allocations: 99.8 kB / 1.317 GB, free: 7.016 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.3483, allocations: 7.938 kB / 1.317 GB, free: 7.008 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.577e-05/0.3483, allocations: 19.94 kB / 1.317 GB, free: 6.988 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.3483, allocations: 7.984 kB / 1.317 GB, free: 6.98 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.3483, allocations: 4 kB / 1.317 GB, free: 6.977 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002405/0.3507, allocations: 0.7958 MB / 1.318 GB, free: 6.164 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001501/0.3509, allocations: 43.83 kB / 1.318 GB, free: 6.121 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.834e-05/0.3509, allocations: 3.984 kB / 1.318 GB, free: 6.117 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006845/0.3516, allocations: 55.98 kB / 1.318 GB, free: 6.062 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.757e-05/0.3517, allocations: 23.92 kB / 1.318 GB, free: 6.039 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-05/0.3518, allocations: 23.94 kB / 1.318 GB, free: 6.016 MB / 1.014 GB Notification: Performance of sorting global known variables: time 4.993e-05/0.3518, allocations: 83.28 kB / 1.318 GB, free: 5.934 MB / 1.014 GB Notification: Performance of sort global known variables: time 6e-08/0.3518, allocations: 96 / 1.318 GB, free: 5.934 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003681/0.3522, allocations: 59.86 kB / 1.318 GB, free: 5.875 MB / 1.014 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.0001954/0.3524, allocations: 108 kB / 1.318 GB, free: 5.762 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001496/0.3539, allocations: 419.5 kB / 1.319 GB, free: 5.352 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3539, allocations: 4 kB / 1.319 GB, free: 5.348 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0007287/0.3546, allocations: 223.6 kB / 1.319 GB, free: 5.129 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003422/0.355, allocations: 14.41 kB / 1.319 GB, free: 5.117 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00426/0.3592, allocations: 0.7556 MB / 1.32 GB, free: 4.336 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.3595, allocations: 0.6924 MB / 1.32 GB, free: 3.617 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0004981/0.36, allocations: 88.67 kB / 1.321 GB, free: 3.531 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002599/0.3603, allocations: 55.3 kB / 1.321 GB, free: 3.477 MB / 1.014 GB Notification: Performance of SimCode: time 4.9e-07/0.3603, allocations: 4 kB / 1.321 GB, free: 3.473 MB / 1.014 GB Notification: Performance of Templates: time 0.006718/0.367, allocations: 3.579 MB / 1.324 GB, free: 15.89 MB / 1.029 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.221421004272997]