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.008185/0.008186, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.001957/0.001957, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.188/2.188, allocations: 390.3 MB / 0.6648 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 68.08 kB / 0.9504 GB, free: 8.137 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8068/0.8085, allocations: 140.4 MB / 1.088 GB, free: 5.297 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002085/0.8107, allocations: 0.7807 MB / 1.088 GB, free: 4.805 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001987/0.8127, allocations: 1.477 MB / 1.09 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.431e-05/0.8127, allocations: 0 / 1.09 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.035e-05/0.8128, allocations: 4.594 kB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.039e-05/0.8128, allocations: 8.938 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005565/0.8134, allocations: 148.8 kB / 1.09 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001003/0.8135, allocations: 52.88 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.189e-05/0.8136, allocations: 4.344 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.046e-05/0.8137, allocations: 23.31 kB / 1.09 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.116e-05/0.8137, allocations: 34.95 kB / 1.09 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.308e-05/0.8138, allocations: 12.97 kB / 1.09 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005672/0.8143, allocations: 317.4 kB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.17e-05/0.8144, allocations: 13.78 kB / 1.09 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.229e-05/0.8144, allocations: 25.91 kB / 1.09 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000408/0.8148, allocations: 210.5 kB / 1.091 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.8148, allocations: 1.188 kB / 1.091 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.354e-06/0.8149, allocations: 0.5625 kB / 1.091 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.8149, allocations: 0 / 1.091 GB, free: 3.426 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.0006282/0.8155, allocations: 403.3 kB / 1.091 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.8156, allocations: 9.844 kB / 1.091 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.245e-05/0.8156, allocations: 38.06 kB / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004662/0.8161, allocations: 73.23 kB / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.09e-05/0.8162, allocations: 171.5 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.8162, allocations: 7.469 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.122e-05/0.8162, allocations: 4.625 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003804/0.8166, allocations: 120.4 kB / 1.091 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.8166, allocations: 0 / 1.091 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.8167, allocations: 1.516 kB / 1.091 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.8167, allocations: 2.219 kB / 1.091 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004883/0.8172, allocations: 102 kB / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005436/0.8177, allocations: 326.2 kB / 1.092 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006279/0.8184, allocations: 155 kB / 1.092 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002269/0.8186, allocations: 59.09 kB / 1.092 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.279e-05/0.8186, allocations: 0.8438 kB / 1.092 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.8187, allocations: 48.94 kB / 1.092 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.8187, allocations: 0 / 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.01886/0.8375, allocations: 2.839 MB / 1.095 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/0.8376, allocations: 57 kB / 1.095 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.506e-05/0.8377, allocations: 101.6 kB / 1.095 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.043e-05/0.8378, allocations: 30.55 kB / 1.095 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.951e-05/0.8378, allocations: 91.62 kB / 1.095 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.066e-05/0.8379, allocations: 39.09 kB / 1.095 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002053/0.8381, allocations: 69.95 kB / 1.095 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.847e-05/0.8382, allocations: 318.3 kB / 1.095 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007463/0.8389, allocations: 192.6 kB / 1.096 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006946/0.8396, allocations: 196.5 kB / 1.096 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001363/0.841, allocations: 394.5 kB / 1.096 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.841, allocations: 1.125 kB / 1.096 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001626/0.8426, allocations: 476.4 kB / 1.097 GB, free: 456 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.8427, allocations: 8.312 kB / 1.097 GB, free: 456 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.8427, allocations: 1.188 kB / 1.097 GB, free: 456 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.8427, allocations: 0 / 1.097 GB, free: 456 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008355/0.8435, allocations: 110.7 kB / 1.097 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.8436, allocations: 1.344 kB / 1.097 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000591/0.8442, allocations: 45.8 kB / 1.097 GB, free: 444 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.249e-05/0.8443, allocations: 27.2 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.0001936/0.8445, allocations: 117.6 kB / 1.097 GB, free: 316 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.075e-05/0.8445, allocations: 7.766 kB / 1.097 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.428e-05/0.8446, allocations: 10.34 kB / 1.097 GB, free: 296 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.8447, allocations: 6.125 kB / 1.097 GB, free: 292 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.8447, allocations: 0 / 1.097 GB, free: 292 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.8447, allocations: 0.6094 kB / 1.097 GB, free: 292 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002561/0.8472, allocations: 1.051 MB / 1.098 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.8473, allocations: 0 / 1.098 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008581/0.8481, allocations: 114.3 kB / 1.098 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.8481, allocations: 1.062 kB / 1.098 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-05/0.8482, allocations: 21.84 kB / 1.098 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.8483, allocations: 1.5 kB / 1.098 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.8483, allocations: 0 / 1.098 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00265/0.8509, allocations: 0.7883 MB / 1.099 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001839/0.8511, allocations: 122.1 kB / 1.099 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.261e-05/0.8512, allocations: 0.875 kB / 1.099 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006556/0.8518, allocations: 51.55 kB / 1.099 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.852, allocations: 25.73 kB / 1.099 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.458e-05/0.8521, allocations: 24.03 kB / 1.099 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 6.228e-05/0.8521, allocations: 79.52 kB / 1.099 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8521, allocations: 96 / 1.099 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000441/0.8526, allocations: 55.98 kB / 1.099 GB, free: 15.09 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.002881/0.8555, allocations: 1.353 MB / 1.101 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001692/0.8572, allocations: 424.1 kB / 1.101 GB, free: 14.15 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/0.8572, allocations: 0.5 kB / 1.101 GB, free: 14.15 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008228/0.858, allocations: 222.3 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.0003883/0.8584, allocations: 18.78 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.009023/0.8675, allocations: 2.945 MB / 1.104 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002903/0.8678, allocations: 0.6908 MB / 1.105 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000617/0.8684, allocations: 95.58 kB / 1.105 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002968/0.8687, allocations: 62.28 kB / 1.105 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of SimCode: time 1.062e-06/0.8687, allocations: 0 / 1.105 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03421/0.9029, allocations: 4.569 MB / 1.109 GB, free: 11.25 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.455/8.358, allocations: 5.531 kB / 1.109 GB, free: 11.25 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[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