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.001218/0.001218, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001281/0.001281, allocations: 189.7 kB / 16.25 MB, free: 6.637 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.246/1.246, allocations: 222.9 MB / 239.9 MB, free: 4.562 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.131/2.131, allocations: 390.2 MB / 0.6644 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 67.89 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5194/0.5206, allocations: 140.4 MB / 0.9492 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001694/0.5223, allocations: 0.8395 MB / 0.9501 GB, free: 8.535 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001251/0.5236, allocations: 1.474 MB / 0.9515 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.897e-05/0.5236, allocations: 1.25 kB / 0.9515 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.137e-05/0.5236, allocations: 3.938 kB / 0.9515 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.348e-05/0.5237, allocations: 0 / 0.9515 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003985/0.5241, allocations: 126 kB / 0.9516 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.774e-05/0.5242, allocations: 47.98 kB / 0.9517 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.796e-05/0.5242, allocations: 2.906 kB / 0.9517 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.781e-05/0.5243, allocations: 27.89 kB / 0.9517 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.046e-05/0.5243, allocations: 37.05 kB / 0.9517 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.531e-05/0.5243, allocations: 4.375 kB / 0.9517 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000337/0.5247, allocations: 318.3 kB / 0.952 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.596e-05/0.5247, allocations: 23.03 kB / 0.9521 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.62e-05/0.5247, allocations: 26.14 kB / 0.9521 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002465/0.525, allocations: 205.7 kB / 0.9523 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.525, allocations: 0 / 0.9523 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.453e-06/0.525, allocations: 0 / 0.9523 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.525, allocations: 1.031 kB / 0.9523 GB, free: 6.859 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.0004917/0.5255, allocations: 402.8 kB / 0.9527 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.5255, allocations: 9.469 kB / 0.9527 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.085e-05/0.5256, allocations: 41.16 kB / 0.9527 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004037/0.526, allocations: 73.47 kB / 0.9528 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.086e-05/0.5261, allocations: 170.4 kB / 0.953 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.5261, allocations: 2.688 kB / 0.953 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.257e-05/0.5261, allocations: 9.969 kB / 0.953 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003203/0.5264, allocations: 117.7 kB / 0.9531 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.5265, allocations: 4 kB / 0.9531 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.5265, allocations: 5.031 kB / 0.9531 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.5265, allocations: 1.688 kB / 0.9531 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004321/0.5269, allocations: 98.67 kB / 0.9532 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004375/0.5274, allocations: 338.4 kB / 0.9535 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005488/0.5279, allocations: 160.3 kB / 0.9537 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000203/0.5281, allocations: 54.12 kB / 0.9537 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.5282, allocations: 5.156 kB / 0.9537 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.574e-05/0.5282, allocations: 31.69 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.5282, allocations: 0 / 0.9537 GB, free: 5.543 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.0178/0.546, allocations: 2.832 MB / 0.9565 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.277e-05/0.546, allocations: 56.72 kB / 0.9566 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.228e-05/0.5461, allocations: 99.34 kB / 0.9567 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.538e-05/0.5461, allocations: 33.7 kB / 0.9567 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.281e-05/0.5462, allocations: 86.8 kB / 0.9568 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.877e-05/0.5462, allocations: 47.41 kB / 0.9568 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/0.5464, allocations: 69.33 kB / 0.9569 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.682e-05/0.5464, allocations: 316.1 kB / 0.9572 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000604/0.547, allocations: 188.8 kB / 0.9574 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005841/0.5476, allocations: 197.5 kB / 0.9576 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/0.5488, allocations: 393 kB / 0.9579 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.5488, allocations: 0 / 0.9579 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00137/0.5502, allocations: 484.6 kB / 0.9584 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.5502, allocations: 5.688 kB / 0.9584 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.5502, allocations: 0 / 0.9584 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.5502, allocations: 1.375 kB / 0.9584 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008327/0.5511, allocations: 113.2 kB / 0.9585 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.5511, allocations: 1.484 kB / 0.9585 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006219/0.5517, allocations: 45.62 kB / 0.9586 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.313e-05/0.5518, allocations: 26.73 kB / 0.9586 GB, free: 2.402 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.0001112/0.5519, allocations: 112.1 kB / 0.9587 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.723e-05/0.552, allocations: 7.609 kB / 0.9587 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.612e-05/0.552, allocations: 16.91 kB / 0.9587 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.552, allocations: 5.625 kB / 0.9587 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.552, allocations: 0 / 0.9587 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.5521, allocations: 5.109 kB / 0.9587 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001818/0.5539, allocations: 1.051 MB / 0.9597 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.5539, allocations: 1.281 kB / 0.9597 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008041/0.5547, allocations: 112.3 kB / 0.9599 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.5547, allocations: 1.281 kB / 0.9599 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.052e-05/0.5548, allocations: 29.08 kB / 0.9599 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.5548, allocations: 0 / 0.9599 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.5548, allocations: 0 / 0.9599 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002016/0.5568, allocations: 0.7826 MB / 0.9607 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.5569, allocations: 123.8 kB / 0.9608 GB, free: 0.6602 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.676e-05/0.557, allocations: 5.438 kB / 0.9608 GB, free: 0.6562 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006704/0.5577, allocations: 46.59 kB / 0.9608 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.037e-05/0.5578, allocations: 26.23 kB / 0.9608 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.086e-05/0.5578, allocations: 30.25 kB / 0.9609 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.009e-05/0.5578, allocations: 82.61 kB / 0.961 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5578, allocations: 1.219 kB / 0.961 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003435/0.5582, allocations: 58.47 kB / 0.961 GB, free: 0.5039 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.002349/0.5605, allocations: 1.352 MB / 0.9623 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001357/0.5619, allocations: 433.1 kB / 0.9627 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.5619, allocations: 0 / 0.9627 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006716/0.5626, allocations: 225.6 kB / 0.963 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00034/0.563, allocations: 16.75 kB / 0.963 GB, free: 15.13 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008135/0.5711, allocations: 2.954 MB / 0.9659 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001944/0.5713, allocations: 0.6912 MB / 0.9665 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0006539/0.572, allocations: 94.52 kB / 0.9666 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/0.5722, allocations: 63.45 kB / 0.9667 GB, free: 12.15 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.5722, allocations: 1.312 kB / 0.9667 GB, free: 12.15 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01531/0.5876, allocations: 4.444 MB / 0.971 GB, free: 9.871 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002039/0.5878, allocations: 222.3 kB / 0.9712 GB, free: 9.621 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.777/2.365, allocations: 0 / 0.9712 GB, free: 9.621 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