Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_11_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.001368/0.001368, allocations: 108 kB / 15.6 MB, free: 132 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.001386/0.001386, allocations: 197.9 kB / 16.54 MB, free: 6.672 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.415/1.415, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.785/2.785, allocations: 469.8 MB / 0.7424 GB, free: 7.414 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001764/0.001764, allocations: 75.39 kB / 0.9087 GB, free: 34.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2507, allocations: 159.2 MB / 1.064 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001562/0.2523, allocations: 0.605 MB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00161/0.2539, allocations: 1.452 MB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.224e-05/0.254, allocations: 4 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.433e-05/0.254, allocations: 3.938 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 1.688e-05/0.254, allocations: 0 / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004146/0.2544, allocations: 140.2 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.191e-05/0.2545, allocations: 23.98 kB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.87e-05/0.2545, allocations: 11.98 kB / 1.066 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.117e-05/0.2546, allocations: 8 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.207e-05/0.2546, allocations: 31.88 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.662e-05/0.2547, allocations: 4 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004333/0.2551, allocations: 311.4 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.911e-05/0.2551, allocations: 15.97 kB / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.352e-05/0.2552, allocations: 11.92 kB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002675/0.2554, allocations: 183.7 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2554, allocations: 0 / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.042e-06/0.2555, allocations: 0 / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.707e-06/0.2555, allocations: 0 / 1.067 GB, free: 11.36 MB / 0.8262 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.0004836/0.2559, allocations: 375.6 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 2.975e-05/0.256, allocations: 8.031 kB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.537e-05/0.256, allocations: 30.75 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004285/0.2565, allocations: 76.75 kB / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.2566, allocations: 168.4 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.2566, allocations: 4.375 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.51e-05/0.2566, allocations: 384 / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000235/0.2569, allocations: 77.75 kB / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.2569, allocations: 0 / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.2569, allocations: 4 kB / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-06/0.2569, allocations: 0 / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002915/0.2572, allocations: 63.88 kB / 1.068 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001763/0.2574, allocations: 173.6 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005598/0.258, allocations: 118.6 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.2581, allocations: 44.92 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004344/0.2586, allocations: 153 kB / 1.068 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.2586, allocations: 42.5 kB / 1.068 GB, free: 9.863 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.2586, allocations: 0 / 1.068 GB, free: 9.863 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.001088/0.2597, allocations: 406.5 kB / 1.068 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/0.2597, allocations: 51.41 kB / 1.069 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.176e-05/0.2598, allocations: 97.86 kB / 1.069 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.2598, allocations: 29.64 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3e-05/0.2599, allocations: 80.14 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.744e-05/0.2599, allocations: 19.73 kB / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.462e-05/0.26, allocations: 21.72 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.2601, allocations: 314.8 kB / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.2602, allocations: 36.09 kB / 1.069 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.2604, allocations: 35.97 kB / 1.069 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002933/0.2607, allocations: 80.8 kB / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2607, allocations: 0 / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000353/0.2611, allocations: 117.4 kB / 1.069 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.036e-05/0.2611, allocations: 8 kB / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.337e-06/0.2611, allocations: 0 / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.798e-06/0.2611, allocations: 0 / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.2612, allocations: 27.92 kB / 1.069 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.607e-06/0.2613, allocations: 0 / 1.069 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/0.2614, allocations: 20.22 kB / 1.069 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.2614, allocations: 4 kB / 1.069 GB, free: 8.434 MB / 0.8262 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 7.446e-05/0.2615, allocations: 105.8 kB / 1.069 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.794e-05/0.2615, allocations: 7.938 kB / 1.069 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004266/0.2619, allocations: 141.2 kB / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.2619, allocations: 0 / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.2619, allocations: 0 / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.2619, allocations: 3.938 kB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001299/0.2621, allocations: 161.7 kB / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.2621, allocations: 7.938 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001447/0.2622, allocations: 23.98 kB / 1.07 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.2622, allocations: 0 / 1.07 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.2623, allocations: 3.984 kB / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.2623, allocations: 0 / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2623, allocations: 3.938 kB / 1.07 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005548/0.2628, allocations: 193 kB / 1.07 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.563e-05/0.2629, allocations: 92.97 kB / 1.07 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.607e-05/0.2629, allocations: 0 / 1.07 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.263, allocations: 15.98 kB / 1.07 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.428e-05/0.2631, allocations: 7.984 kB / 1.07 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/0.2631, allocations: 3.938 kB / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.658e-05/0.2631, allocations: 83.34 kB / 1.07 GB, free: 7.496 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2631, allocations: 0 / 1.07 GB, free: 7.496 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002105/0.2633, allocations: 35.98 kB / 1.07 GB, free: 7.461 MB / 0.8262 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.0008713/0.2642, allocations: 0.7336 MB / 1.071 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003529/0.2646, allocations: 87.92 kB / 1.071 GB, free: 6.609 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2646, allocations: 3.938 kB / 1.071 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.2648, allocations: 48.27 kB / 1.071 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00013/0.2649, allocations: 8 kB / 1.071 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.2668, allocations: 1.364 MB / 1.072 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002538/0.2671, allocations: 0.6768 MB / 1.073 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000101/0.2672, allocations: 20.06 kB / 1.073 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.176e-05/0.2672, allocations: 15.42 kB / 1.073 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.2672, allocations: 0 / 1.073 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.15/1.418, allocations: 2.035 MB / 1.075 GB, free: 2.445 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/11.87, allocations: 11.92 kB / 1.075 GB, free: 2.438 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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