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.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.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.001022/0.001022, allocations: 90.52 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.007668/0.007668, allocations: 174.1 kB / 16.26 MB, free: 6.613 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.22/1.22, allocations: 223.3 MB / 240.3 MB, free: 5.328 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.138/2.138, allocations: 390.9 MB / 0.6664 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003066/0.0003065, allocations: 16.28 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5522/0.5525, allocations: 142.4 MB / 0.9552 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.0006483/0.5532, allocations: 344.6 kB / 0.9555 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00141/0.5546, allocations: 1.443 MB / 0.9569 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.416e-05/0.5546, allocations: 0 / 0.9569 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.375e-05/0.5546, allocations: 3.938 kB / 0.9569 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.15e-05/0.5547, allocations: 0 / 0.9569 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003667/0.555, allocations: 114.6 kB / 0.957 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.054e-05/0.5551, allocations: 23.61 kB / 0.9571 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.904e-05/0.5551, allocations: 1.469 kB / 0.9571 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.461e-05/0.5552, allocations: 17.61 kB / 0.9571 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.417e-05/0.5553, allocations: 37.41 kB / 0.9571 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.516e-05/0.5553, allocations: 10.16 kB / 0.9571 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003625/0.5557, allocations: 307.9 kB / 0.9574 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.466e-05/0.5557, allocations: 9.422 kB / 0.9574 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.927e-05/0.5557, allocations: 44.33 kB / 0.9575 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.556, allocations: 182.5 kB / 0.9576 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.556, allocations: 1.031 kB / 0.9576 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.014e-06/0.556, allocations: 0 / 0.9576 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.878e-06/0.556, allocations: 0 / 0.9576 GB, free: 5.809 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.0004064/0.5564, allocations: 363.8 kB / 0.958 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.5564, allocations: 13.53 kB / 0.958 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.751e-05/0.5565, allocations: 36.19 kB / 0.958 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004304/0.5569, allocations: 78.81 kB / 0.9581 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.632e-05/0.557, allocations: 161.5 kB / 0.9583 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/0.557, allocations: 1.656 kB / 0.9583 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.049e-05/0.557, allocations: 1.688 kB / 0.9583 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002325/0.5573, allocations: 91.84 kB / 0.9584 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.291e-06/0.5573, allocations: 0 / 0.9584 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.5573, allocations: 5 kB / 0.9584 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.5573, allocations: 0 / 0.9584 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002797/0.5576, allocations: 74.81 kB / 0.9584 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001328/0.5577, allocations: 173.5 kB / 0.9586 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005464/0.5583, allocations: 145.5 kB / 0.9587 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001507/0.5585, allocations: 45.73 kB / 0.9588 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004027/0.5589, allocations: 176.2 kB / 0.9589 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.465e-05/0.5589, allocations: 43.81 kB / 0.959 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.5589, allocations: 0 / 0.959 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.001001/0.5599, allocations: 441.4 kB / 0.9594 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.674e-05/0.5599, allocations: 51.41 kB / 0.9595 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.85e-05/0.56, allocations: 92.61 kB / 0.9595 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/0.56, allocations: 31.08 kB / 0.9596 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.121e-05/0.56, allocations: 80.14 kB / 0.9596 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.15e-05/0.56, allocations: 14.47 kB / 0.9597 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.394e-05/0.5601, allocations: 19.2 kB / 0.9597 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.306e-05/0.5601, allocations: 316.2 kB / 0.96 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000147/0.5603, allocations: 38.09 kB / 0.96 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001374/0.5604, allocations: 44.84 kB / 0.9601 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002747/0.5607, allocations: 86.42 kB / 0.9601 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.72e-07/0.5607, allocations: 1.375 kB / 0.9601 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003273/0.561, allocations: 136.8 kB / 0.9603 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.398e-06/0.561, allocations: 5.5 kB / 0.9603 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.5611, allocations: 0 / 0.9603 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.927e-06/0.5611, allocations: 7.875 kB / 0.9603 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/0.5612, allocations: 27.12 kB / 0.9603 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.5612, allocations: 1.344 kB / 0.9603 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.551e-05/0.5613, allocations: 18.39 kB / 0.9603 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.736e-06/0.5613, allocations: 2.688 kB / 0.9603 GB, free: 3.449 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.68e-05/0.5614, allocations: 111 kB / 0.9604 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.255e-05/0.5614, allocations: 5.25 kB / 0.9604 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004151/0.5618, allocations: 150 kB / 0.9606 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.5618, allocations: 1.281 kB / 0.9606 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.5618, allocations: 0 / 0.9606 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.5618, allocations: 0 / 0.9606 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.439e-05/0.5619, allocations: 167.2 kB / 0.9608 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.5619, allocations: 9.125 kB / 0.9608 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001491/0.5621, allocations: 31.09 kB / 0.9608 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.5621, allocations: 1.219 kB / 0.9608 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-06/0.5621, allocations: 0.9062 kB / 0.9608 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.5621, allocations: 0.9688 kB / 0.9608 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.5621, allocations: 0 / 0.9608 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005257/0.5627, allocations: 213.9 kB / 0.961 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.857e-05/0.5627, allocations: 87.31 kB / 0.9611 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.533e-05/0.5627, allocations: 5.062 kB / 0.9611 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.5628, allocations: 15.14 kB / 0.9611 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.661e-05/0.5629, allocations: 6.688 kB / 0.9611 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.215e-06/0.5629, allocations: 2.094 kB / 0.9611 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.986e-05/0.5629, allocations: 81.36 kB / 0.9612 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5629, allocations: 0 / 0.9612 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002075/0.5631, allocations: 32.91 kB / 0.9612 GB, free: 2.68 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.0007281/0.5639, allocations: 0.7706 MB / 0.962 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003446/0.5642, allocations: 95 kB / 0.9621 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.5642, allocations: 0 / 0.9621 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001605/0.5644, allocations: 54.36 kB / 0.9621 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001391/0.5645, allocations: 8.688 kB / 0.9621 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/0.5662, allocations: 1.411 MB / 0.9635 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001206/0.5663, allocations: 0.6869 MB / 0.9642 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001046/0.5664, allocations: 14.72 kB / 0.9642 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.957e-05/0.5665, allocations: 27.45 kB / 0.9642 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of SimCode: time 4.51e-07/0.5665, allocations: 0 / 0.9642 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02858/0.5951, allocations: 1.82 MB / 0.966 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002096/0.5953, allocations: 219.5 kB / 0.9662 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.554/2.149, allocations: 6.812 kB / 0.9662 GB, free: 14.86 MB / 0.7325 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