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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.378/2.378, allocations: 390.3 MB / 405.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 175.3 kB / 498.1 MB, free: 5.754 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.674/1.674, allocations: 223.2 MB / 0.7948 GB, free: 17.85 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 102.4 kB / 0.9346 GB, free: 6.133 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000331/0.000331, allocations: 10.5 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3096, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.197/0.5067, allocations: 150 MB / 1.369 GB, free: 11.92 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.507, allocations: 83.89 kB / 1.37 GB, free: 11.84 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01265/0.5197, allocations: 4.128 MB / 1.374 GB, free: 7.703 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.893e-06/0.5197, allocations: 0 / 1.374 GB, free: 7.703 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.164e-05/0.5197, allocations: 4 kB / 1.374 GB, free: 7.699 MB / 0.8698 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.000464/0.5202, allocations: 363.2 kB / 1.374 GB, free: 7.297 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.5202, allocations: 12.03 kB / 1.374 GB, free: 7.285 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.145e-05/0.5203, allocations: 38.56 kB / 1.374 GB, free: 7.238 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003688/0.5207, allocations: 67.83 kB / 1.374 GB, free: 7.172 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.5208, allocations: 163 kB / 1.374 GB, free: 6.973 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.5208, allocations: 4 kB / 1.374 GB, free: 6.969 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.054e-05/0.5209, allocations: 3.938 kB / 1.374 GB, free: 6.965 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002643/0.5211, allocations: 85.56 kB / 1.374 GB, free: 6.875 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.5212, allocations: 0 / 1.374 GB, free: 6.875 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.5212, allocations: 8 kB / 1.374 GB, free: 6.867 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.5212, allocations: 0 / 1.374 GB, free: 6.867 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000292/0.5215, allocations: 71.94 kB / 1.374 GB, free: 6.797 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001922/0.5217, allocations: 165.6 kB / 1.374 GB, free: 6.586 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005703/0.5223, allocations: 142.6 kB / 1.375 GB, free: 6.438 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.923e-05/0.5223, allocations: 8 kB / 1.375 GB, free: 6.43 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.475e-05/0.5224, allocations: 38.5 kB / 1.375 GB, free: 6.383 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.5224, allocations: 4 kB / 1.375 GB, free: 6.379 MB / 0.8698 GB Notification: Performance of matching and sorting (n=5): time 0.001152/0.5235, allocations: 438.2 kB / 1.375 GB, free: 5.898 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.231e-05/0.5236, allocations: 55.34 kB / 1.375 GB, free: 5.832 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.244e-05/0.5236, allocations: 93.05 kB / 1.375 GB, free: 5.734 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.5237, allocations: 25.7 kB / 1.375 GB, free: 5.703 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.154e-05/0.5237, allocations: 84.27 kB / 1.375 GB, free: 5.617 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.853e-05/0.5237, allocations: 15.81 kB / 1.375 GB, free: 5.602 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.773e-06/0.5237, allocations: 0 / 1.375 GB, free: 5.602 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.5239, allocations: 318.8 kB / 1.376 GB, free: 5.281 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.524, allocations: 47.95 kB / 1.376 GB, free: 5.234 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.5242, allocations: 39.97 kB / 1.376 GB, free: 5.195 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.5243, allocations: 44.16 kB / 1.376 GB, free: 5.152 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.5243, allocations: 0 / 1.376 GB, free: 5.152 MB / 0.8698 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003521/0.5247, allocations: 125.6 kB / 1.376 GB, free: 5.023 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.5247, allocations: 11.98 kB / 1.376 GB, free: 5.012 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.5247, allocations: 0 / 1.376 GB, free: 5.012 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.5248, allocations: 0 / 1.376 GB, free: 5.012 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.5249, allocations: 27.98 kB / 1.376 GB, free: 4.984 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.5249, allocations: 0 / 1.376 GB, free: 4.984 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.525, allocations: 15.98 kB / 1.376 GB, free: 4.969 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.5251, allocations: 4 kB / 1.376 GB, free: 4.965 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.216e-05/0.5251, allocations: 117.8 kB / 1.376 GB, free: 4.84 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.496e-05/0.5252, allocations: 7.906 kB / 1.376 GB, free: 4.832 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004515/0.5256, allocations: 153.1 kB / 1.376 GB, free: 4.676 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.5256, allocations: 3.938 kB / 1.376 GB, free: 4.672 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.5256, allocations: 0 / 1.376 GB, free: 4.672 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.5257, allocations: 336 / 1.376 GB, free: 4.672 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.5258, allocations: 177.6 kB / 1.376 GB, free: 4.449 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.5258, allocations: 0 / 1.376 GB, free: 4.449 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.526, allocations: 27.98 kB / 1.376 GB, free: 4.422 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.526, allocations: 3.984 kB / 1.376 GB, free: 4.418 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.526, allocations: 0 / 1.376 GB, free: 4.418 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.526, allocations: 0 / 1.376 GB, free: 4.418 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.526, allocations: 0 / 1.376 GB, free: 4.418 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005681/0.5266, allocations: 212.9 kB / 1.377 GB, free: 4.191 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.35e-05/0.5267, allocations: 89.03 kB / 1.377 GB, free: 4.086 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.777e-05/0.5267, allocations: 0 / 1.377 GB, free: 4.086 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.5268, allocations: 20.17 kB / 1.377 GB, free: 4.066 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.605e-05/0.5269, allocations: 12.05 kB / 1.377 GB, free: 4.055 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.5269, allocations: 7.938 kB / 1.377 GB, free: 4.047 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.294e-05/0.5269, allocations: 79.28 kB / 1.377 GB, free: 3.969 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5269, allocations: 0 / 1.377 GB, free: 3.969 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002717/0.5272, allocations: 43.88 kB / 1.377 GB, free: 3.926 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009819/0.5282, allocations: 0.7794 MB / 1.378 GB, free: 3.121 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003614/0.5286, allocations: 103.9 kB / 1.378 GB, free: 3.02 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.5286, allocations: 0 / 1.378 GB, free: 3.02 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.5288, allocations: 47.97 kB / 1.378 GB, free: 2.973 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001118/0.5289, allocations: 6.469 kB / 1.378 GB, free: 2.969 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.5302, allocations: 0.5764 MB / 1.378 GB, free: 2.336 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002619/0.5305, allocations: 0.6809 MB / 1.379 GB, free: 1.629 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0001144/0.5306, allocations: 20.05 kB / 1.379 GB, free: 1.609 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.186e-05/0.5307, allocations: 19.38 kB / 1.379 GB, free: 1.59 MB / 0.8698 GB Notification: Performance of SimCode: time 4.81e-07/0.5307, allocations: 4 kB / 1.379 GB, free: 1.586 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01289/0.5436, allocations: 1.779 MB / 1.381 GB, free: 15.96 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001829/0.5438, allocations: 193.5 kB / 1.381 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.534/2.077, allocations: 4 kB / 1.381 GB, free: 15.72 MB / 0.8855 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat does not exist to compare? outputFormat=mat