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.1-maint.9.1.x/package.mo", uses=false) 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) 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.001258/0.001258, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001526/0.001526, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.288/2.288, allocations: 390.3 MB / 0.6653 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003613/0.0003614, allocations: 8 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7456/0.746, allocations: 142.3 MB / 0.9536 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.0006433/0.7467, allocations: 331.2 kB / 0.9539 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001611/0.7483, allocations: 1.382 MB / 0.9553 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.805e-05/0.7483, allocations: 0 / 0.9553 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.317e-05/0.7484, allocations: 3.938 kB / 0.9553 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.867e-05/0.7484, allocations: 0 / 0.9553 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004264/0.7488, allocations: 112.7 kB / 0.9554 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.263e-05/0.7489, allocations: 19.59 kB / 0.9554 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.095e-05/0.7489, allocations: 6.266 kB / 0.9554 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.935e-05/0.749, allocations: 17.02 kB / 0.9554 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.554e-05/0.7491, allocations: 29.27 kB / 0.9554 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.397e-05/0.7491, allocations: 2.25 kB / 0.9555 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004199/0.7495, allocations: 313.2 kB / 0.9557 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.53e-05/0.7495, allocations: 10.39 kB / 0.9558 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.741e-05/0.7496, allocations: 31.17 kB / 0.9558 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002213/0.7498, allocations: 134.9 kB / 0.9559 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.7498, allocations: 0 / 0.9559 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.623e-06/0.7498, allocations: 0 / 0.9559 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.547e-06/0.7498, allocations: 0 / 0.9559 GB, free: 6.285 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.0004299/0.7502, allocations: 363.7 kB / 0.9563 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.7503, allocations: 9.094 kB / 0.9563 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.301e-05/0.7503, allocations: 31.62 kB / 0.9563 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004687/0.7508, allocations: 87.05 kB / 0.9564 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.508e-05/0.7509, allocations: 164.2 kB / 0.9565 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.7509, allocations: 1.062 kB / 0.9565 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.206e-05/0.751, allocations: 2.094 kB / 0.9565 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002507/0.7512, allocations: 85.81 kB / 0.9566 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.921e-06/0.7512, allocations: 1.094 kB / 0.9566 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.7512, allocations: 0 / 0.9566 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.7512, allocations: 1.094 kB / 0.9566 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003107/0.7516, allocations: 78.83 kB / 0.9567 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001355/0.7517, allocations: 173.5 kB / 0.9569 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005695/0.7523, allocations: 140.7 kB / 0.957 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004451/0.7527, allocations: 172.2 kB / 0.9572 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.542e-05/0.7528, allocations: 35.94 kB / 0.9572 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 9.91e-07/0.7528, allocations: 4 kB / 0.9572 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.001054/0.7538, allocations: 436.2 kB / 0.9576 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.316e-05/0.7539, allocations: 51.41 kB / 0.9577 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.893e-05/0.7539, allocations: 104.5 kB / 0.9578 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.7539, allocations: 27.2 kB / 0.9578 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.416e-05/0.754, allocations: 84.14 kB / 0.9579 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.534e-05/0.754, allocations: 18.69 kB / 0.9579 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.732e-06/0.754, allocations: 128 / 0.9579 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.959e-05/0.754, allocations: 316.2 kB / 0.9582 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001549/0.7542, allocations: 46.14 kB / 0.9582 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001462/0.7544, allocations: 43.44 kB / 0.9583 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.7545, allocations: 44.16 kB / 0.9583 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.7545, allocations: 0 / 0.9583 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003559/0.7549, allocations: 127.8 kB / 0.9584 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.7549, allocations: 7.344 kB / 0.9585 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-06/0.7549, allocations: 0 / 0.9585 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.808e-06/0.7549, allocations: 0 / 0.9585 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.7551, allocations: 27.42 kB / 0.9585 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.7551, allocations: 1.375 kB / 0.9585 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.983e-05/0.7552, allocations: 25.5 kB / 0.9585 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.7552, allocations: 10.73 kB / 0.9585 GB, free: 3.98 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.094e-05/0.7553, allocations: 109.6 kB / 0.9586 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.419e-05/0.7553, allocations: 6.75 kB / 0.9586 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000441/0.7557, allocations: 144.3 kB / 0.9588 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.7558, allocations: 5.312 kB / 0.9588 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.7558, allocations: 0 / 0.9588 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.7558, allocations: 1.312 kB / 0.9588 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.308e-05/0.7559, allocations: 171 kB / 0.9589 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.7559, allocations: 0 / 0.9589 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001521/0.756, allocations: 23.52 kB / 0.959 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.756, allocations: 336 / 0.959 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.7561, allocations: 6.328 kB / 0.959 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.7561, allocations: 4 kB / 0.959 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.7561, allocations: 0 / 0.959 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005398/0.7566, allocations: 214 kB / 0.9592 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.758e-05/0.7567, allocations: 87.58 kB / 0.9593 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.7567, allocations: 1.344 kB / 0.9593 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001174/0.7568, allocations: 13.92 kB / 0.9593 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.183e-05/0.7569, allocations: 10.73 kB / 0.9593 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.7569, allocations: 2.625 kB / 0.9593 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.635e-05/0.7569, allocations: 80.59 kB / 0.9594 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.21e-07/0.7569, allocations: 1.406 kB / 0.9594 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002356/0.7571, allocations: 31.98 kB / 0.9594 GB, free: 3.219 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 (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.0007649/0.7579, allocations: 0.7661 MB / 0.9601 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003578/0.7583, allocations: 106.7 kB / 0.9602 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.7583, allocations: 5.156 kB / 0.9602 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001642/0.7585, allocations: 44.97 kB / 0.9603 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001094/0.7586, allocations: 6.266 kB / 0.9603 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.7598, allocations: 0.5643 MB / 0.9608 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.95e-05/0.7599, allocations: 0.6798 MB / 0.9615 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001084/0.76, allocations: 22.86 kB / 0.9615 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.168e-05/0.7601, allocations: 15.56 kB / 0.9615 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.7601, allocations: 1.375 kB / 0.9615 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01235/0.7725, allocations: 1.796 MB / 0.9633 GB, free: 496 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001319/0.7726, allocations: 199.3 kB / 0.9635 GB, free: 256 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.601/2.373, allocations: 0 / 0.9635 GB, free: 256 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/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