Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_latest_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.009612/0.009612, allocations: 96.39 kB / 15.73 MB, free: 6.484 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.001872/0.001872, allocations: 192 kB / 16.67 MB, free: 6.391 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.909/2.909, allocations: 469.4 MB / 0.7421 GB, free: 7.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 67.89 kB / 1.064 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3507, allocations: 159.1 MB / 1.22 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001808/0.3525, allocations: 0.6031 MB / 1.22 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001851/0.3544, allocations: 1.448 MB / 1.222 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.814e-05/0.3544, allocations: 0 / 1.222 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.809e-05/0.3545, allocations: 3.938 kB / 1.222 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.725e-05/0.3545, allocations: 3.938 kB / 1.222 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005418/0.3551, allocations: 146.2 kB / 1.222 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.376e-05/0.3551, allocations: 31.95 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.087e-05/0.3552, allocations: 0 / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.704e-05/0.3552, allocations: 19.98 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.604e-05/0.3553, allocations: 23.91 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.957e-05/0.3554, allocations: 4 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004955/0.3559, allocations: 319.3 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.406e-05/0.3559, allocations: 7.984 kB / 1.222 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.141e-05/0.3559, allocations: 15.92 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003568/0.3563, allocations: 183.6 kB / 1.223 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3563, allocations: 0 / 1.223 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3563, allocations: 3.938 kB / 1.223 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.3563, allocations: 0 / 1.223 GB, free: 11.77 MB / 0.9825 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.0007144/0.357, allocations: 379 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.3571, allocations: 8.031 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.566e-05/0.3572, allocations: 38.73 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004796/0.3576, allocations: 64.86 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001334/0.3578, allocations: 164.4 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.69e-05/0.3578, allocations: 384 / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.02e-05/0.3579, allocations: 12.33 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003362/0.3582, allocations: 73.77 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.3582, allocations: 0 / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.3582, allocations: 4 kB / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.3583, allocations: 0 / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003567/0.3586, allocations: 71.86 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002183/0.3588, allocations: 161.7 kB / 1.223 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006003/0.3595, allocations: 118.5 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.3596, allocations: 48.91 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004712/0.3601, allocations: 149 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.3602, allocations: 38.44 kB / 1.224 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 1.163e-06/0.3602, allocations: 4 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.001263/0.3614, allocations: 402.5 kB / 1.224 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/0.3615, allocations: 59.34 kB / 1.224 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.448e-05/0.3616, allocations: 97.84 kB / 1.224 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.3616, allocations: 29.7 kB / 1.224 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.169e-05/0.3617, allocations: 84.12 kB / 1.224 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.943e-05/0.3617, allocations: 15.84 kB / 1.224 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.816e-05/0.3618, allocations: 25.7 kB / 1.224 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.3619, allocations: 310.8 kB / 1.225 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.3621, allocations: 36.09 kB / 1.225 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.3622, allocations: 39.95 kB / 1.225 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003093/0.3626, allocations: 68.81 kB / 1.225 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3626, allocations: 4 kB / 1.225 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003604/0.3629, allocations: 121.7 kB / 1.225 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.363, allocations: 8 kB / 1.225 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.363, allocations: 3.938 kB / 1.225 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.363, allocations: 4.031 kB / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001478/0.3632, allocations: 31.91 kB / 1.225 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.3632, allocations: 0 / 1.225 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.802e-05/0.3633, allocations: 11.98 kB / 1.225 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.3633, allocations: 4 kB / 1.225 GB, free: 8.836 MB / 0.9825 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 0.0001071/0.3634, allocations: 110.4 kB / 1.225 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.835e-05/0.3634, allocations: 7.938 kB / 1.225 GB, free: 8.711 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004737/0.3639, allocations: 137.1 kB / 1.225 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.3639, allocations: 0 / 1.225 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.3639, allocations: 0 / 1.225 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.257e-06/0.364, allocations: 0 / 1.225 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001517/0.3641, allocations: 165.7 kB / 1.225 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.3641, allocations: 11.94 kB / 1.226 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.3643, allocations: 23.97 kB / 1.226 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.3643, allocations: 0 / 1.226 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.3643, allocations: 0 / 1.226 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3643, allocations: 0 / 1.226 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.3643, allocations: 0 / 1.226 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006427/0.365, allocations: 189 kB / 1.226 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.171e-05/0.3651, allocations: 93.02 kB / 1.226 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.004e-05/0.3651, allocations: 0 / 1.226 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.3652, allocations: 15.92 kB / 1.226 GB, free: 8 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.49e-05/0.3653, allocations: 7.938 kB / 1.226 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.3653, allocations: 4.188 kB / 1.226 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.073e-05/0.3653, allocations: 87.33 kB / 1.226 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.11e-07/0.3653, allocations: 0 / 1.226 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000249/0.3656, allocations: 27.88 kB / 1.226 GB, free: 7.875 MB / 0.9825 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.001025/0.3666, allocations: 0.749 MB / 1.227 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003947/0.367, allocations: 91.92 kB / 1.227 GB, free: 7.004 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3671, allocations: 0 / 1.227 GB, free: 7.004 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001676/0.3672, allocations: 43.97 kB / 1.227 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001658/0.3674, allocations: 3.938 kB / 1.227 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002214/0.3696, allocations: 1.367 MB / 1.228 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002659/0.3699, allocations: 0.6768 MB / 1.229 GB, free: 4.809 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.305e-05/0.37, allocations: 16.25 kB / 1.229 GB, free: 4.793 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.774e-05/0.3701, allocations: 15.44 kB / 1.229 GB, free: 4.777 MB / 0.9825 GB Notification: Performance of SimCode: time 5.41e-07/0.3701, allocations: 0 / 1.229 GB, free: 4.777 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02122/0.3913, allocations: 2.084 MB / 1.231 GB, free: 2.824 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.683/8.074, allocations: 8.938 kB / 1.231 GB, free: 2.82 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)