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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0007361/0.0007361, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004513/0.004513, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.217/1.217, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.114/2.114, allocations: 390.9 MB / 0.6664 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002957/0.0002957, allocations: 12 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.575/0.5753, allocations: 142.4 MB / 0.9552 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.0008263/0.5761, allocations: 0.5047 MB / 0.9557 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001512/0.5777, allocations: 1.474 MB / 0.9571 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.2e-05/0.5777, allocations: 0 / 0.9571 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.427e-05/0.5777, allocations: 3.938 kB / 0.9571 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.707e-05/0.5778, allocations: 1.094 kB / 0.9571 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003554/0.5781, allocations: 121.6 kB / 0.9572 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.114e-05/0.5782, allocations: 43.47 kB / 0.9573 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.402e-05/0.5782, allocations: 10.58 kB / 0.9573 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.388e-05/0.5783, allocations: 22.98 kB / 0.9573 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001152/0.5784, allocations: 41.89 kB / 0.9573 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.392e-05/0.5784, allocations: 3.438 kB / 0.9573 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003448/0.5788, allocations: 313.4 kB / 0.9576 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.488e-05/0.5788, allocations: 17.84 kB / 0.9577 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.205e-05/0.5788, allocations: 49.22 kB / 0.9577 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002379/0.5791, allocations: 212 kB / 0.9579 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.5791, allocations: 0 / 0.9579 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.222e-06/0.5791, allocations: 0 / 0.9579 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.426e-06/0.5791, allocations: 1.062 kB / 0.9579 GB, free: 5.617 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.0004669/0.5796, allocations: 388.6 kB / 0.9583 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.5796, allocations: 9.812 kB / 0.9583 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.769e-05/0.5797, allocations: 41.67 kB / 0.9583 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004289/0.5801, allocations: 80.8 kB / 0.9584 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.906e-05/0.5802, allocations: 178 kB / 0.9586 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.684e-05/0.5802, allocations: 11.97 kB / 0.9586 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.175e-05/0.5803, allocations: 8.438 kB / 0.9586 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003521/0.5806, allocations: 124.1 kB / 0.9587 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.5806, allocations: 0 / 0.9587 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.5807, allocations: 1.375 kB / 0.9587 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.5807, allocations: 1.375 kB / 0.9587 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004889/0.5812, allocations: 122.3 kB / 0.9588 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000512/0.5817, allocations: 346 kB / 0.9592 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000652/0.5824, allocations: 182.5 kB / 0.9593 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002472/0.5826, allocations: 60.41 kB / 0.9594 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.5826, allocations: 7.984 kB / 0.9594 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.5827, allocations: 36.59 kB / 0.9594 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.5827, allocations: 3.938 kB / 0.9594 GB, free: 4.301 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.01758/0.6003, allocations: 3.177 MB / 0.9625 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.677e-05/0.6003, allocations: 56.22 kB / 0.9626 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.58e-05/0.6004, allocations: 102.8 kB / 0.9627 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.279e-05/0.6004, allocations: 30.7 kB / 0.9627 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.516e-05/0.6005, allocations: 86.89 kB / 0.9628 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.578e-05/0.6005, allocations: 39.2 kB / 0.9629 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.916e-05/0.6006, allocations: 21.14 kB / 0.9629 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.696e-05/0.6006, allocations: 321.2 kB / 0.9632 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006202/0.6012, allocations: 216.9 kB / 0.9634 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006086/0.6019, allocations: 220.3 kB / 0.9636 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001264/0.6031, allocations: 441.7 kB / 0.964 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.6031, allocations: 5.188 kB / 0.964 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00143/0.6046, allocations: 0.5181 MB / 0.9645 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.6046, allocations: 5 kB / 0.9645 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.6046, allocations: 4.938 kB / 0.9645 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.6046, allocations: 1.125 kB / 0.9645 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008025/0.6054, allocations: 120.6 kB / 0.9647 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.241e-06/0.6055, allocations: 1.344 kB / 0.9647 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006193/0.6061, allocations: 60.41 kB / 0.9647 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.898e-05/0.6061, allocations: 26.08 kB / 0.9647 GB, free: 1.133 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.0001168/0.6063, allocations: 116.8 kB / 0.9648 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.147e-05/0.6063, allocations: 4.031 kB / 0.9649 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.619e-05/0.6064, allocations: 13.22 kB / 0.9649 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.6064, allocations: 5.062 kB / 0.9649 GB, free: 0.9922 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.6064, allocations: 7.984 kB / 0.9649 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.6064, allocations: 4.922 kB / 0.9649 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001927/0.6083, allocations: 1.103 MB / 0.966 GB, free: 72 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.6084, allocations: 0 / 0.966 GB, free: 72 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007879/0.6091, allocations: 124.5 kB / 0.9661 GB, free: 8 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.6092, allocations: 1.031 kB / 0.9661 GB, free: 8 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.149e-05/0.6092, allocations: 24.11 kB / 0.9661 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.6092, allocations: 4.891 kB / 0.9661 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.6092, allocations: 5 kB / 0.9661 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002333/0.6116, allocations: 0.8654 MB / 0.967 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.6117, allocations: 124.5 kB / 0.9671 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.905e-05/0.6118, allocations: 1.281 kB / 0.9671 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006875/0.6125, allocations: 61.56 kB / 0.9671 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.478e-05/0.6126, allocations: 30.42 kB / 0.9672 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.186e-05/0.6127, allocations: 30.11 kB / 0.9672 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.499e-05/0.6127, allocations: 83.03 kB / 0.9673 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6127, allocations: 96 / 0.9673 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003599/0.6131, allocations: 58.47 kB / 0.9673 GB, free: 15.2 MB / 0.7325 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.002654/0.6157, allocations: 1.421 MB / 0.9687 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001453/0.6172, allocations: 472 kB / 0.9692 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.6172, allocations: 0 / 0.9692 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007221/0.6179, allocations: 256 kB / 0.9694 GB, free: 13.83 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.6183, allocations: 10.22 kB / 0.9694 GB, free: 13.82 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008328/0.6266, allocations: 3.167 MB / 0.9725 GB, free: 11.63 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001878/0.6268, allocations: 0.6909 MB / 0.9732 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000613/0.6274, allocations: 93.33 kB / 0.9733 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002612/0.6277, allocations: 67.38 kB / 0.9733 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of SimCode: time 3.5e-07/0.6277, allocations: 0 / 0.9733 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01466/0.6424, allocations: 4.23 MB / 0.9775 GB, free: 8.094 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002202/0.6426, allocations: 218.5 kB / 0.9777 GB, free: 7.844 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.717/2.36, allocations: 2.031 kB / 0.9777 GB, free: 7.844 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