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.006241/0.006241, allocations: 104.1 kB / 15.73 MB, free: 6.051 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.001484/0.001484, allocations: 196.2 kB / 16.68 MB, free: 5.961 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.292/1.292, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.046/2.046, allocations: 390.2 MB / 0.6648 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 63.91 kB / 0.9504 GB, free: 8.117 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6301/0.6312, allocations: 140.4 MB / 1.088 GB, free: 5.293 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001587/0.6328, allocations: 0.78 MB / 1.088 GB, free: 4.801 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00127/0.6341, allocations: 1.471 MB / 1.09 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.619e-05/0.6342, allocations: 1.031 kB / 1.09 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.53e-05/0.6342, allocations: 4.547 kB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.971e-05/0.6342, allocations: 9.516 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004111/0.6347, allocations: 148.1 kB / 1.09 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.147e-05/0.6347, allocations: 48.47 kB / 1.09 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.398e-05/0.6348, allocations: 8.141 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.321e-05/0.6349, allocations: 31.91 kB / 1.09 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.747e-05/0.6349, allocations: 35.34 kB / 1.09 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.47e-05/0.6349, allocations: 3.75 kB / 1.09 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004092/0.6353, allocations: 317.4 kB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.827e-05/0.6354, allocations: 18.48 kB / 1.09 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.983e-05/0.6354, allocations: 26.34 kB / 1.09 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000277/0.6357, allocations: 215 kB / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.6357, allocations: 0 / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.092e-06/0.6357, allocations: 0 / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.6357, allocations: 1.188 kB / 1.091 GB, free: 3.418 MB / 0.8575 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.0004992/0.6362, allocations: 398.7 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.6363, allocations: 10.28 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.543e-05/0.6363, allocations: 38.38 kB / 1.091 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004225/0.6367, allocations: 76.52 kB / 1.091 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.853e-05/0.6368, allocations: 171.5 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/0.6368, allocations: 3.594 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.397e-05/0.6368, allocations: 9.203 kB / 1.091 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003379/0.6372, allocations: 111.4 kB / 1.091 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.6372, allocations: 0.8125 kB / 1.091 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.6372, allocations: 4.812 kB / 1.091 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.6372, allocations: 2.125 kB / 1.091 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004698/0.6377, allocations: 98.67 kB / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004451/0.6381, allocations: 333.9 kB / 1.092 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006163/0.6388, allocations: 151 kB / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002305/0.639, allocations: 59.27 kB / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.392e-05/0.639, allocations: 4.719 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.477e-05/0.6391, allocations: 36.83 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.6391, allocations: 3.984 kB / 1.092 GB, free: 2.285 MB / 0.8575 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.01756/0.6566, allocations: 2.836 MB / 1.095 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.91e-05/0.6567, allocations: 61.03 kB / 1.095 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.159e-05/0.6567, allocations: 97.66 kB / 1.095 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.621e-05/0.6568, allocations: 30.77 kB / 1.095 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.235e-05/0.6568, allocations: 87.72 kB / 1.095 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.014e-05/0.6568, allocations: 43.08 kB / 1.095 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000156/0.657, allocations: 69.25 kB / 1.095 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.415e-05/0.657, allocations: 314.8 kB / 1.095 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006705/0.6577, allocations: 200.1 kB / 1.096 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006626/0.6584, allocations: 192.7 kB / 1.096 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.6597, allocations: 394.8 kB / 1.096 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.6597, allocations: 5.031 kB / 1.096 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001547/0.6613, allocations: 469.6 kB / 1.097 GB, free: 464 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.6613, allocations: 8.812 kB / 1.097 GB, free: 460 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.6613, allocations: 1.188 kB / 1.097 GB, free: 460 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.6613, allocations: 0.8438 kB / 1.097 GB, free: 460 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008067/0.6621, allocations: 118.1 kB / 1.097 GB, free: 444 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.6622, allocations: 1.094 kB / 1.097 GB, free: 444 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006002/0.6628, allocations: 45.52 kB / 1.097 GB, free: 440 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.848e-05/0.6628, allocations: 24.09 kB / 1.097 GB, free: 440 kB / 0.8575 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.0001196/0.663, allocations: 117.9 kB / 1.097 GB, free: 316 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.85e-05/0.663, allocations: 7.766 kB / 1.097 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.533e-05/0.6631, allocations: 13.92 kB / 1.097 GB, free: 292 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.6631, allocations: 5.875 kB / 1.097 GB, free: 288 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.6631, allocations: 4 kB / 1.097 GB, free: 284 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.6631, allocations: 1.422 kB / 1.097 GB, free: 284 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002165/0.6653, allocations: 1.046 MB / 1.098 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.6653, allocations: 0 / 1.098 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007987/0.6661, allocations: 110 kB / 1.098 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.6661, allocations: 1.828 kB / 1.098 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.74e-05/0.6662, allocations: 26.23 kB / 1.098 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.6662, allocations: 1.094 kB / 1.098 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.6662, allocations: 0 / 1.098 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00235/0.6685, allocations: 0.7845 MB / 1.099 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001561/0.6687, allocations: 117.5 kB / 1.099 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.974e-05/0.6688, allocations: 9.703 kB / 1.099 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006587/0.6694, allocations: 51.09 kB / 1.099 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.963e-05/0.6696, allocations: 26.41 kB / 1.099 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.149e-05/0.6696, allocations: 27.27 kB / 1.099 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.468e-05/0.6697, allocations: 80.92 kB / 1.099 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6697, allocations: 4 kB / 1.099 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003699/0.67, allocations: 51.34 kB / 1.099 GB, free: 15.08 MB / 0.8731 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.002639/0.6727, allocations: 1.34 MB / 1.101 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001517/0.6742, allocations: 424.6 kB / 1.101 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.6742, allocations: 0.5 kB / 1.101 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008019/0.675, allocations: 230.2 kB / 1.101 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.6754, allocations: 11.28 kB / 1.101 GB, free: 14.1 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008277/0.6837, allocations: 2.941 MB / 1.104 GB, free: 12.53 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001952/0.6839, allocations: 0.6946 MB / 1.105 GB, free: 11.83 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0004989/0.6844, allocations: 101.1 kB / 1.105 GB, free: 11.76 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002615/0.6847, allocations: 62.94 kB / 1.105 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of SimCode: time 3.21e-07/0.6847, allocations: 1.188 kB / 1.105 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.335/2.02, allocations: 4.575 MB / 1.109 GB, free: 11.24 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.86/11.88, allocations: 8.438 kB / 1.109 GB, free: 11.23 MB / 0.8731 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[388]=-1.113000 " 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