Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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.InverseXDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",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.001249/0.001249, allocations: 108 kB / 15.61 MB, free: 152 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.001259/0.001259, allocations: 192.6 kB / 16.53 MB, free: 6.664 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.23/1.23, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.127/2.127, allocations: 390.3 MB / 0.6647 GB, free: 284 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 67.89 kB / 0.8127 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5259/0.5272, allocations: 140.4 MB / 0.9497 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001497/0.5287, allocations: 0.5958 MB / 0.9503 GB, free: 8.762 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001241/0.53, allocations: 1.453 MB / 0.9517 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.82e-05/0.53, allocations: 0 / 0.9517 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.005e-05/0.53, allocations: 0 / 0.9517 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.685e-05/0.5301, allocations: 0 / 0.9517 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000393/0.5304, allocations: 141.9 kB / 0.9519 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.941e-05/0.5305, allocations: 23.14 kB / 0.9519 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.578e-05/0.5305, allocations: 2.094 kB / 0.9519 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.516e-05/0.5306, allocations: 22.17 kB / 0.9519 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.555e-05/0.5307, allocations: 25.77 kB / 0.9519 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.517e-05/0.5307, allocations: 1.531 kB / 0.9519 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003633/0.531, allocations: 317 kB / 0.9522 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.489e-05/0.5311, allocations: 13.39 kB / 0.9523 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.232e-05/0.5311, allocations: 10.33 kB / 0.9523 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002338/0.5313, allocations: 190.9 kB / 0.9525 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.5313, allocations: 1.25 kB / 0.9525 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.112e-06/0.5313, allocations: 0 / 0.9525 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.5314, allocations: 0 / 0.9525 GB, free: 7.148 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003923/0.5318, allocations: 367.7 kB / 0.9528 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.5318, allocations: 8.844 kB / 0.9528 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.241e-05/0.5318, allocations: 31.97 kB / 0.9528 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000419/0.5322, allocations: 67.06 kB / 0.9529 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.986e-05/0.5323, allocations: 165.8 kB / 0.9531 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.5323, allocations: 5.719 kB / 0.9531 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.041e-05/0.5324, allocations: 1.781 kB / 0.9531 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002212/0.5326, allocations: 78.62 kB / 0.9531 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.523e-06/0.5326, allocations: 0 / 0.9531 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.5326, allocations: 0 / 0.9531 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.5326, allocations: 0 / 0.9531 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002879/0.5329, allocations: 70.94 kB / 0.9532 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001227/0.533, allocations: 181.4 kB / 0.9534 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005361/0.5336, allocations: 123.4 kB / 0.9535 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.5337, allocations: 40.11 kB / 0.9535 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003951/0.5341, allocations: 154.9 kB / 0.9537 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.301e-05/0.5342, allocations: 34.5 kB / 0.9537 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.5342, allocations: 1.438 kB / 0.9537 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.001004/0.5352, allocations: 409 kB / 0.9541 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.734e-05/0.5352, allocations: 52.53 kB / 0.9542 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.461e-05/0.5353, allocations: 93.08 kB / 0.9543 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.093e-05/0.5353, allocations: 29.83 kB / 0.9543 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.005e-05/0.5353, allocations: 81.14 kB / 0.9544 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.5353, allocations: 17.78 kB / 0.9544 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.972e-05/0.5354, allocations: 23.42 kB / 0.9544 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.278e-05/0.5354, allocations: 312.1 kB / 0.9547 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.5356, allocations: 41.23 kB / 0.9547 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.5357, allocations: 34.06 kB / 0.9548 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002796/0.536, allocations: 78.73 kB / 0.9548 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.536, allocations: 5.188 kB / 0.9548 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003299/0.5363, allocations: 112.5 kB / 0.955 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.5363, allocations: 9.703 kB / 0.955 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.5364, allocations: 0 / 0.955 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.5364, allocations: 1.156 kB / 0.955 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.5365, allocations: 19.3 kB / 0.955 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.5365, allocations: 5 kB / 0.955 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.375e-05/0.5366, allocations: 16.12 kB / 0.955 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.857e-06/0.5366, allocations: 2.375 kB / 0.955 GB, free: 4.805 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 (6): * Single equations (assignments): 6 * 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 4.653e-05/0.5367, allocations: 111 kB / 0.9551 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.171e-05/0.5367, allocations: 6.438 kB / 0.9551 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004083/0.5371, allocations: 141.2 kB / 0.9553 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.5371, allocations: 1.188 kB / 0.9553 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.5371, allocations: 0 / 0.9553 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.5371, allocations: 0 / 0.9553 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.942e-05/0.5372, allocations: 171.3 kB / 0.9554 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.5372, allocations: 3.938 kB / 0.9554 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.5374, allocations: 24.55 kB / 0.9554 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.5374, allocations: 1.156 kB / 0.9554 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.5374, allocations: 1.531 kB / 0.9554 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.5374, allocations: 0 / 0.9554 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.5374, allocations: 5.375 kB / 0.9555 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005003/0.5379, allocations: 194.8 kB / 0.9556 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.002e-05/0.538, allocations: 91.75 kB / 0.9557 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.744e-05/0.538, allocations: 3.156 kB / 0.9557 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.5381, allocations: 19.67 kB / 0.9557 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.171e-05/0.5381, allocations: 7.234 kB / 0.9558 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.263e-06/0.5382, allocations: 0 / 0.9558 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.591e-05/0.5382, allocations: 77.78 kB / 0.9558 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5382, allocations: 0 / 0.9558 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002075/0.5384, allocations: 33.34 kB / 0.9559 GB, free: 4.027 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0006919/0.5391, allocations: 0.7481 MB / 0.9566 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003434/0.5394, allocations: 96.58 kB / 0.9567 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.5395, allocations: 0 / 0.9567 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001509/0.5396, allocations: 43.66 kB / 0.9567 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001413/0.5398, allocations: 5.812 kB / 0.9567 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.5413, allocations: 1.345 MB / 0.958 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.628e-05/0.5414, allocations: 0.6832 MB / 0.9587 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.814e-05/0.5415, allocations: 14.53 kB / 0.9587 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.944e-05/0.5416, allocations: 23.2 kB / 0.9587 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.5416, allocations: 0 / 0.9587 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0246/0.5662, allocations: 2.025 MB / 0.9607 GB, free: 272 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.517/7.083, allocations: 10.78 kB / 0.9607 GB, free: 264 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[1]=-1.000000 " Variables in the reference:time,y_comp,y Variables in the result:delta,der(x),der(y_comp),err,time,x,y,y_comp