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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.00112/0.00112, allocations: 108.7 kB / 16.37 MB, free: 5.516 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.001179/0.001179, allocations: 193.3 kB / 17.31 MB, free: 5.16 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.379/1.379, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.447/2.447, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 68.12 kB / 0.8773 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3438, allocations: 153 MB / 1.027 GB, free: 2.012 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.00309/0.3469, allocations: 0.7911 MB / 1.028 GB, free: 1.223 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002714/0.3497, allocations: 1.477 MB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.392e-05/0.3497, allocations: 0 / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.355e-05/0.3498, allocations: 7.875 kB / 1.029 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.344e-05/0.3499, allocations: 3.938 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007321/0.3506, allocations: 143.4 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001174/0.3508, allocations: 47.95 kB / 1.029 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.224e-05/0.3508, allocations: 4 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.3509, allocations: 23.92 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9e-05/0.351, allocations: 39.83 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.264e-05/0.3511, allocations: 8 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006601/0.3517, allocations: 327.3 kB / 1.03 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.624e-05/0.3518, allocations: 7.984 kB / 1.03 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.077e-05/0.3519, allocations: 27.86 kB / 1.03 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004514/0.3523, allocations: 211.5 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3523, allocations: 0 / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.104e-06/0.3523, allocations: 0 / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.3524, allocations: 0 / 1.03 GB, free: 14.89 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.0008477/0.3532, allocations: 403.4 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.3533, allocations: 8.031 kB / 1.03 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005973/0.3539, allocations: 80.69 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001467/0.354, allocations: 172.3 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.172e-05/0.3541, allocations: 4.375 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.636e-05/0.3541, allocations: 8.375 kB / 1.03 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004643/0.3546, allocations: 113.9 kB / 1.031 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.3546, allocations: 0 / 1.031 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.3546, allocations: 4 kB / 1.031 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.3547, allocations: 4 kB / 1.031 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006214/0.3553, allocations: 99.89 kB / 1.031 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007248/0.356, allocations: 328.6 kB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008475/0.3569, allocations: 154.4 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003487/0.3573, allocations: 60.73 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.3573, allocations: 8.141 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.3573, allocations: 34.56 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.3573, allocations: 0 / 1.031 GB, free: 13.28 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.02456/0.3819, allocations: 2.833 MB / 1.034 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/0.382, allocations: 59.34 kB / 1.034 GB, free: 10.28 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.996e-05/0.3821, allocations: 101.8 kB / 1.034 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 6.63e-05/0.3822, allocations: 25.7 kB / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.735e-05/0.3822, allocations: 104 kB / 1.034 GB, free: 10.03 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 8.035e-05/0.3823, allocations: 31.47 kB / 1.034 GB, free: 10 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002318/0.3826, allocations: 69.58 kB / 1.034 GB, free: 9.926 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.3827, allocations: 318.8 kB / 1.035 GB, free: 9.605 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008891/0.3836, allocations: 187.8 kB / 1.035 GB, free: 9.422 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009099/0.3845, allocations: 195.9 kB / 1.035 GB, free: 9.23 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001806/0.3864, allocations: 399.6 kB / 1.035 GB, free: 8.84 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3864, allocations: 0 / 1.035 GB, free: 8.84 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.002146/0.3885, allocations: 481 kB / 1.036 GB, free: 8.363 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.3886, allocations: 4 kB / 1.036 GB, free: 8.359 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.3886, allocations: 3.984 kB / 1.036 GB, free: 8.355 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.3886, allocations: 4 kB / 1.036 GB, free: 8.352 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.3897, allocations: 103.8 kB / 1.036 GB, free: 8.25 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.3897, allocations: 3.938 kB / 1.036 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007842/0.3905, allocations: 43.94 kB / 1.036 GB, free: 8.203 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.531e-05/0.3906, allocations: 27.94 kB / 1.036 GB, free: 8.176 MB / 0.8106 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.0002044/0.3908, allocations: 117.8 kB / 1.036 GB, free: 8.051 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.391, allocations: 7.906 kB / 1.036 GB, free: 8.043 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.651e-05/0.391, allocations: 12.05 kB / 1.036 GB, free: 8.031 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.3911, allocations: 7.938 kB / 1.036 GB, free: 8.023 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.3911, allocations: 3.938 kB / 1.036 GB, free: 8.02 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3911, allocations: 0 / 1.036 GB, free: 8.02 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003095/0.3942, allocations: 1.039 MB / 1.037 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3942, allocations: 0 / 1.037 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/0.3953, allocations: 119.7 kB / 1.037 GB, free: 6.746 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.762e-06/0.3953, allocations: 3.938 kB / 1.037 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.124e-05/0.3954, allocations: 19.94 kB / 1.037 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.03e-06/0.3954, allocations: 4 kB / 1.037 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3954, allocations: 0 / 1.037 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003241/0.3987, allocations: 0.7917 MB / 1.038 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002251/0.3989, allocations: 120.9 kB / 1.038 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.436e-05/0.399, allocations: 0 / 1.038 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008849/0.3999, allocations: 48 kB / 1.038 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.4001, allocations: 27.92 kB / 1.038 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.126e-05/0.4002, allocations: 27.92 kB / 1.038 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.343e-05/0.4002, allocations: 79.28 kB / 1.038 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3e-07/0.4003, allocations: 0 / 1.038 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005851/0.4009, allocations: 52 kB / 1.038 GB, free: 5.543 MB / 0.8106 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.0002927/0.4012, allocations: 127.5 kB / 1.039 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00197/0.4031, allocations: 415.5 kB / 1.039 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4031, allocations: 0 / 1.039 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0009954/0.4042, allocations: 219.7 kB / 1.039 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004995/0.4047, allocations: 12 kB / 1.039 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005559/0.4102, allocations: 0.7558 MB / 1.04 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.4106, allocations: 0.7001 MB / 1.041 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0007689/0.4114, allocations: 88.66 kB / 1.041 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003679/0.4117, allocations: 55.31 kB / 1.041 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of SimCode: time 6.81e-07/0.4117, allocations: 0 / 1.041 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of Templates: time 0.007745/0.4195, allocations: 3.475 MB / 1.044 GB, free: 15.66 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 -s gbode -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/jenkins1/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