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.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.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.00127/0.00127, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001258/0.001258, allocations: 195.2 kB / 16.14 MB, free: 6.691 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 / 239.8 MB, free: 4.609 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.263/2.263, allocations: 390.2 MB / 0.6643 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 67.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5857/0.5871, allocations: 140.4 MB / 0.9491 GB, free: 9.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001875/0.589, allocations: 0.8432 MB / 0.9499 GB, free: 8.465 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001435/0.5905, allocations: 1.493 MB / 0.9513 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.472e-05/0.5905, allocations: 1.375 kB / 0.9513 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.127e-05/0.5905, allocations: 3.984 kB / 0.9513 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.985e-05/0.5906, allocations: 3.938 kB / 0.9513 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003898/0.591, allocations: 114.6 kB / 0.9515 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.581e-05/0.5911, allocations: 46.61 kB / 0.9515 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.831e-05/0.5911, allocations: 4.031 kB / 0.9515 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.255e-05/0.5912, allocations: 26.81 kB / 0.9515 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.359e-05/0.5912, allocations: 38.36 kB / 0.9516 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.603e-05/0.5912, allocations: 2.594 kB / 0.9516 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000366/0.5916, allocations: 318 kB / 0.9519 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.721e-05/0.5916, allocations: 14.92 kB / 0.9519 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.815e-05/0.5917, allocations: 25.39 kB / 0.9519 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002772/0.592, allocations: 212.5 kB / 0.9521 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.592, allocations: 1.656 kB / 0.9521 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.12e-07/0.592, allocations: 0 / 0.9521 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.592, allocations: 0 / 0.9521 GB, free: 6.785 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005178/0.5925, allocations: 403.5 kB / 0.9525 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.5926, allocations: 9.812 kB / 0.9525 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.926e-05/0.5926, allocations: 40.97 kB / 0.9525 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004293/0.593, allocations: 69.88 kB / 0.9526 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.564e-05/0.5931, allocations: 173.4 kB / 0.9528 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.487e-05/0.5931, allocations: 8.422 kB / 0.9528 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.369e-05/0.5932, allocations: 15.81 kB / 0.9528 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003227/0.5935, allocations: 106 kB / 0.9529 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.5935, allocations: 5.094 kB / 0.9529 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.5935, allocations: 1.125 kB / 0.9529 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.5935, allocations: 4.938 kB / 0.9529 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004306/0.594, allocations: 103.8 kB / 0.953 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004499/0.5944, allocations: 332.9 kB / 0.9533 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000591/0.595, allocations: 160.3 kB / 0.9535 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002113/0.5952, allocations: 54.31 kB / 0.9535 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.5953, allocations: 1.344 kB / 0.9535 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.526e-05/0.5953, allocations: 35.91 kB / 0.9536 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.5953, allocations: 0 / 0.9536 GB, free: 5.469 MB / 0.7169 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.01802/0.6133, allocations: 2.824 MB / 0.9563 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.012e-05/0.6134, allocations: 56.72 kB / 0.9564 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.556e-05/0.6134, allocations: 99.19 kB / 0.9565 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.283e-05/0.6135, allocations: 35.05 kB / 0.9565 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.544e-05/0.6135, allocations: 89.33 kB / 0.9566 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.553e-05/0.6136, allocations: 49.22 kB / 0.9566 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001517/0.6137, allocations: 63.95 kB / 0.9567 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.528e-05/0.6138, allocations: 320.7 kB / 0.957 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006277/0.6144, allocations: 197.4 kB / 0.9572 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006248/0.6151, allocations: 196.5 kB / 0.9574 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/0.6163, allocations: 389.1 kB / 0.9578 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.6163, allocations: 0 / 0.9578 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001443/0.6178, allocations: 476.5 kB / 0.9582 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.6178, allocations: 7 kB / 0.9582 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.6178, allocations: 1.5 kB / 0.9582 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.6178, allocations: 0 / 0.9582 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008361/0.6187, allocations: 117.4 kB / 0.9583 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.6187, allocations: 1.125 kB / 0.9583 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006159/0.6193, allocations: 50.03 kB / 0.9584 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.436e-05/0.6194, allocations: 25.98 kB / 0.9584 GB, free: 2.328 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 (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.000121/0.6195, allocations: 113.2 kB / 0.9585 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.307e-05/0.6196, allocations: 3.344 kB / 0.9585 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.088e-05/0.6197, allocations: 20.91 kB / 0.9585 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.6197, allocations: 5.094 kB / 0.9585 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.6197, allocations: 0.875 kB / 0.9585 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.6197, allocations: 96 / 0.9585 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001936/0.6216, allocations: 1.061 MB / 0.9596 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.6216, allocations: 0 / 0.9596 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008126/0.6225, allocations: 113.5 kB / 0.9597 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.6225, allocations: 0 / 0.9597 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.385e-05/0.6225, allocations: 25.19 kB / 0.9597 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.6225, allocations: 0 / 0.9597 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.6225, allocations: 1.156 kB / 0.9597 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002128/0.6247, allocations: 0.7902 MB / 0.9605 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.6248, allocations: 123.5 kB / 0.9606 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.208e-05/0.6249, allocations: 5.094 kB / 0.9606 GB, free: 0.5742 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006982/0.6256, allocations: 47.66 kB / 0.9606 GB, free: 0.5547 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.775e-05/0.6257, allocations: 26.23 kB / 0.9607 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.313e-05/0.6257, allocations: 29.23 kB / 0.9607 GB, free: 0.5117 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.36e-05/0.6258, allocations: 79.34 kB / 0.9608 GB, free: 448 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6258, allocations: 0 / 0.9608 GB, free: 448 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003867/0.6262, allocations: 55.19 kB / 0.9608 GB, free: 440 kB / 0.7169 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.002522/0.6287, allocations: 1.356 MB / 0.9622 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001406/0.6301, allocations: 416.2 kB / 0.9625 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.6301, allocations: 5.094 kB / 0.9626 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007266/0.6309, allocations: 229.4 kB / 0.9628 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004073/0.6313, allocations: 11.84 kB / 0.9628 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008358/0.6396, allocations: 2.946 MB / 0.9657 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.6399, allocations: 0.6912 MB / 0.9663 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0006861/0.6406, allocations: 90.52 kB / 0.9664 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002891/0.6409, allocations: 67.42 kB / 0.9665 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of SimCode: time 6.82e-07/0.6409, allocations: 0.9375 kB / 0.9665 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01452/0.6554, allocations: 4.285 MB / 0.9707 GB, free: 9.887 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001887/0.6557, allocations: 224.5 kB / 0.9709 GB, free: 9.633 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.773/2.429, allocations: 0 / 0.9709 GB, free: 9.633 MB / 0.7325 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