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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.00123, 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.001165/0.001165, allocations: 193.1 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.216/1.216, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.126/2.126, allocations: 390.3 MB / 0.6647 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 63.91 kB / 0.8127 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5282/0.5293, allocations: 140.4 MB / 0.9497 GB, free: 9.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001826/0.5312, allocations: 0.783 MB / 0.9505 GB, free: 8.59 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001449/0.5327, allocations: 1.468 MB / 0.9519 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.745e-05/0.5327, allocations: 0 / 0.9519 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.435e-05/0.5328, allocations: 3.938 kB / 0.9519 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.999e-05/0.5328, allocations: 1.438 kB / 0.9519 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004832/0.5333, allocations: 144.3 kB / 0.9521 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.03e-05/0.5334, allocations: 48.5 kB / 0.9521 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.682e-05/0.5334, allocations: 11.03 kB / 0.9521 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.34e-05/0.5335, allocations: 31.5 kB / 0.9522 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.62e-05/0.5335, allocations: 37.3 kB / 0.9522 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.806e-05/0.5336, allocations: 4.375 kB / 0.9522 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003951/0.534, allocations: 315 kB / 0.9525 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.882e-05/0.534, allocations: 14.55 kB / 0.9525 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.41e-05/0.534, allocations: 22.17 kB / 0.9525 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002771/0.5343, allocations: 218 kB / 0.9527 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.5343, allocations: 0 / 0.9527 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.412e-06/0.5343, allocations: 0 / 0.9527 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.607e-06/0.5343, allocations: 0 / 0.9527 GB, free: 6.891 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.0005196/0.5349, allocations: 406.2 kB / 0.9531 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.5349, allocations: 9.531 kB / 0.9531 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.685e-05/0.5349, allocations: 37.34 kB / 0.9532 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004322/0.5354, allocations: 69.12 kB / 0.9532 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.343e-05/0.5355, allocations: 178.4 kB / 0.9534 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.5355, allocations: 7.656 kB / 0.9534 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.571e-05/0.5355, allocations: 8.969 kB / 0.9534 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003327/0.5359, allocations: 113.7 kB / 0.9535 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.5359, allocations: 0.9688 kB / 0.9535 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.5359, allocations: 1.094 kB / 0.9535 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.5359, allocations: 1.094 kB / 0.9535 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004563/0.5364, allocations: 103.1 kB / 0.9536 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004513/0.5368, allocations: 333.1 kB / 0.954 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000601/0.5374, allocations: 160.7 kB / 0.9541 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.5377, allocations: 60.19 kB / 0.9542 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.5377, allocations: 5 kB / 0.9542 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.296e-05/0.5377, allocations: 32.28 kB / 0.9542 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.5377, allocations: 0 / 0.9542 GB, free: 5.574 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.01683/0.5545, allocations: 2.82 MB / 0.957 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.045e-05/0.5546, allocations: 64.72 kB / 0.957 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.484e-05/0.5546, allocations: 98.88 kB / 0.9571 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.966e-05/0.5547, allocations: 30.77 kB / 0.9571 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.644e-05/0.5547, allocations: 86.23 kB / 0.9572 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.143e-05/0.5548, allocations: 39.77 kB / 0.9573 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.5549, allocations: 72.64 kB / 0.9573 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.888e-05/0.555, allocations: 321.5 kB / 0.9576 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006361/0.5556, allocations: 188.4 kB / 0.9578 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006073/0.5562, allocations: 201.5 kB / 0.958 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/0.5575, allocations: 399.7 kB / 0.9584 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.5575, allocations: 4 kB / 0.9584 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001408/0.5589, allocations: 473.5 kB / 0.9588 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.5589, allocations: 3.875 kB / 0.9588 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.5589, allocations: 1.5 kB / 0.9588 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.559, allocations: 0 / 0.9588 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000753/0.5597, allocations: 113.4 kB / 0.959 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.5597, allocations: 4.891 kB / 0.959 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005651/0.5603, allocations: 50.12 kB / 0.959 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.614e-05/0.5603, allocations: 26.19 kB / 0.959 GB, free: 2.43 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001047/0.5605, allocations: 112.7 kB / 0.9591 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.922e-05/0.5605, allocations: 3.844 kB / 0.9591 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.43e-05/0.5606, allocations: 13.12 kB / 0.9592 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.5606, allocations: 5.125 kB / 0.9592 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.5606, allocations: 3.984 kB / 0.9592 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.5606, allocations: 5.531 kB / 0.9592 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001842/0.5625, allocations: 1.055 MB / 0.9602 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.5625, allocations: 3.984 kB / 0.9602 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007479/0.5632, allocations: 112.4 kB / 0.9603 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.5632, allocations: 0 / 0.9603 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.271e-05/0.5633, allocations: 23.48 kB / 0.9603 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.5633, allocations: 0 / 0.9603 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.5633, allocations: 0 / 0.9603 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002105/0.5654, allocations: 0.7949 MB / 0.9611 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.5655, allocations: 122.7 kB / 0.9612 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.32e-05/0.5656, allocations: 5.219 kB / 0.9612 GB, free: 0.6758 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006296/0.5662, allocations: 47.47 kB / 0.9613 GB, free: 0.6562 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.221e-05/0.5663, allocations: 26.64 kB / 0.9613 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.569e-05/0.5664, allocations: 21.84 kB / 0.9613 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.417e-05/0.5664, allocations: 86.83 kB / 0.9614 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5664, allocations: 4 kB / 0.9614 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003719/0.5668, allocations: 50.44 kB / 0.9615 GB, free: 0.5312 MB / 0.7169 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.002425/0.5692, allocations: 1.349 MB / 0.9628 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00141/0.5707, allocations: 415.8 kB / 0.9632 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5707, allocations: 5.312 kB / 0.9632 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006965/0.5714, allocations: 224.8 kB / 0.9634 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003377/0.5717, allocations: 16.36 kB / 0.9634 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008105/0.5798, allocations: 2.932 MB / 0.9663 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002001/0.5801, allocations: 0.6948 MB / 0.9669 GB, free: 12.33 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0006074/0.5807, allocations: 92.05 kB / 0.967 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002506/0.5809, allocations: 67.83 kB / 0.9671 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of SimCode: time 5.01e-07/0.5809, allocations: 0 / 0.9671 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02067/0.6016, allocations: 4.533 MB / 0.9715 GB, free: 9.805 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.714/7.316, allocations: 11.91 kB / 0.9715 GB, free: 9.797 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check_fmu --startTime=-1.5 --stopTime=1.5 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.500000 File[1]=-1.500000 " Variables in the reference:time,y,y_comp,der_y,der_y_comp,der_err,err Variables in the result:cheEqu1.threShold,cheEqu1.u1,cheEqu1.u2,cheEqu1.y,cheEqu2.threShold,cheEqu2.u1,cheEqu2.u2,cheEqu2.y,delta,der(der(x)),der(der_y),der(der_y_comp),der(x),der(y),der(y_comp),der_err,der_y,der_y_comp,err,time,x,y,y_comp