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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001604/0.001604, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001969/0.001969, allocations: 192 kB / 16.53 MB, free: 6.391 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.416/1.416, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.798/2.798, allocations: 472.7 MB / 0.7451 GB, free: 4.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 67.38 kB / 0.9121 GB, free: 33.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3081, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002223/0.3104, allocations: 0.7824 MB / 1.069 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001943/0.3124, allocations: 1.476 MB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.452e-05/0.3124, allocations: 4 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.202e-05/0.3125, allocations: 7.922 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.651e-05/0.3125, allocations: 7.938 kB / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005215/0.3131, allocations: 139.4 kB / 1.071 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.606e-05/0.3131, allocations: 47.91 kB / 1.071 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.487e-05/0.3132, allocations: 11.98 kB / 1.071 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.483e-05/0.3133, allocations: 31.86 kB / 1.071 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.299e-05/0.3133, allocations: 31.89 kB / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.84e-05/0.3134, allocations: 4 kB / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004345/0.3138, allocations: 315.4 kB / 1.071 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.819e-05/0.3138, allocations: 23.91 kB / 1.071 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.663e-05/0.3139, allocations: 19.86 kB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000317/0.3142, allocations: 203.6 kB / 1.071 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.3142, allocations: 0 / 1.071 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.186e-06/0.3142, allocations: 4 kB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.461e-06/0.3142, allocations: 0 / 1.071 GB, free: 7.27 MB / 0.8262 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.0006282/0.3149, allocations: 395.7 kB / 1.072 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.3149, allocations: 12.03 kB / 1.072 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004554/0.3154, allocations: 76.75 kB / 1.072 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.3155, allocations: 172.3 kB / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.3155, allocations: 8.312 kB / 1.072 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/0.3156, allocations: 8.375 kB / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003691/0.316, allocations: 117.9 kB / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.316, allocations: 0 / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.316, allocations: 8 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.316, allocations: 0 / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004961/0.3165, allocations: 99.89 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005874/0.3171, allocations: 332.6 kB / 1.072 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006485/0.3178, allocations: 154.4 kB / 1.073 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000237/0.318, allocations: 56.81 kB / 1.073 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.431e-05/0.318, allocations: 0 / 1.073 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.3181, allocations: 34.56 kB / 1.073 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.032e-06/0.3181, allocations: 0 / 1.073 GB, free: 5.664 MB / 0.8262 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.01834/0.3364, allocations: 2.844 MB / 1.075 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.716e-05/0.3365, allocations: 55.44 kB / 1.075 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.455e-05/0.3366, allocations: 113.8 kB / 1.076 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.671e-05/0.3366, allocations: 25.7 kB / 1.076 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.907e-05/0.3367, allocations: 95.97 kB / 1.076 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.845e-05/0.3368, allocations: 31.47 kB / 1.076 GB, free: 2.379 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001638/0.3369, allocations: 69.58 kB / 1.076 GB, free: 2.305 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.37e-05/0.337, allocations: 318.8 kB / 1.076 GB, free: 1.984 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006692/0.3377, allocations: 195.8 kB / 1.076 GB, free: 1.793 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006531/0.3384, allocations: 195.8 kB / 1.076 GB, free: 1.602 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001332/0.3397, allocations: 391.9 kB / 1.077 GB, free: 1.219 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.3397, allocations: 0 / 1.077 GB, free: 1.219 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001579/0.3413, allocations: 477.3 kB / 1.077 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.3414, allocations: 4 kB / 1.077 GB, free: 0.7422 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.3414, allocations: 3.984 kB / 1.077 GB, free: 0.7383 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.3414, allocations: 0 / 1.077 GB, free: 0.7383 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008255/0.3422, allocations: 111.8 kB / 1.077 GB, free: 0.6289 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.3422, allocations: 3.938 kB / 1.077 GB, free: 0.625 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006075/0.3428, allocations: 43.94 kB / 1.077 GB, free: 0.582 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.491e-05/0.3429, allocations: 23.94 kB / 1.078 GB, free: 0.5586 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.3431, allocations: 123.5 kB / 1.078 GB, free: 440 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.46e-05/0.3432, allocations: 7.906 kB / 1.078 GB, free: 432 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.231e-05/0.3432, allocations: 11.95 kB / 1.078 GB, free: 416 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3432, allocations: 0 / 1.078 GB, free: 416 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3433, allocations: 7.938 kB / 1.078 GB, free: 408 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3433, allocations: 0 / 1.078 GB, free: 408 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002348/0.3456, allocations: 1.043 MB / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3456, allocations: 0 / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008345/0.3465, allocations: 111.7 kB / 1.079 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.3465, allocations: 3.938 kB / 1.079 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.195e-05/0.3465, allocations: 27.94 kB / 1.079 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.185e-06/0.3466, allocations: 0 / 1.079 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3466, allocations: 0 / 1.079 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002387/0.349, allocations: 0.7917 MB / 1.08 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001467/0.3491, allocations: 120.9 kB / 1.08 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.003e-05/0.3492, allocations: 0 / 1.08 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000689/0.3499, allocations: 48 kB / 1.08 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.35, allocations: 27.92 kB / 1.08 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.473e-05/0.3501, allocations: 27.92 kB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.721e-05/0.3501, allocations: 83.28 kB / 1.08 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3501, allocations: 0 / 1.08 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003897/0.3505, allocations: 56 kB / 1.08 GB, free: 13.92 MB / 0.8419 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.0002055/0.3507, allocations: 111.7 kB / 1.08 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00152/0.3523, allocations: 435.7 kB / 1.08 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3523, allocations: 7.938 kB / 1.08 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000735/0.353, allocations: 223.7 kB / 1.081 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.3534, allocations: 8 kB / 1.081 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004316/0.3577, allocations: 0.7557 MB / 1.081 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.358, allocations: 0.6923 MB / 1.082 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0006498/0.3586, allocations: 93.67 kB / 1.082 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002468/0.3589, allocations: 51.31 kB / 1.082 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of SimCode: time 4.51e-07/0.3589, allocations: 0 / 1.082 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of Templates: time 0.006452/0.3654, allocations: 3.476 MB / 1.086 GB, free: 8.023 MB / 0.8419 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