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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 108 kB / 15.61 MB, free: 152 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.00125/0.00125, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.281/1.281, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.198/2.198, allocations: 390.2 MB / 0.6647 GB, free: 460 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 67.89 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6486/0.65, allocations: 140.4 MB / 0.9496 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001935/0.652, allocations: 0.5892 MB / 0.9502 GB, free: 8.727 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.6535, allocations: 1.452 MB / 0.9516 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.526e-05/0.6536, allocations: 0 / 0.9516 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.097e-05/0.6536, allocations: 0 / 0.9516 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.952e-05/0.6536, allocations: 5.594 kB / 0.9516 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000465/0.6541, allocations: 141.2 kB / 0.9517 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.226e-05/0.6542, allocations: 30.91 kB / 0.9518 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.309e-05/0.6542, allocations: 2.844 kB / 0.9518 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.683e-05/0.6543, allocations: 20.78 kB / 0.9518 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.165e-05/0.6543, allocations: 21.47 kB / 0.9518 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.718e-05/0.6544, allocations: 2.594 kB / 0.9518 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000395/0.6548, allocations: 319.7 kB / 0.9521 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.723e-05/0.6548, allocations: 10.8 kB / 0.9521 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.383e-05/0.6548, allocations: 5.562 kB / 0.9521 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002612/0.6551, allocations: 187.8 kB / 0.9523 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.6551, allocations: 4 kB / 0.9523 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.763e-06/0.6551, allocations: 0 / 0.9523 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.6551, allocations: 1.156 kB / 0.9523 GB, free: 7.109 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.0004605/0.6556, allocations: 366.9 kB / 0.9527 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.6556, allocations: 8.312 kB / 0.9527 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004343/0.6561, allocations: 67.34 kB / 0.9527 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.269e-05/0.6561, allocations: 166.1 kB / 0.9529 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.6562, allocations: 5.719 kB / 0.9529 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.403e-05/0.6562, allocations: 5.406 kB / 0.9529 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002365/0.6564, allocations: 82.34 kB / 0.953 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-06/0.6564, allocations: 0 / 0.953 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.6565, allocations: 0.9062 kB / 0.953 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.6565, allocations: 0 / 0.953 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002763/0.6568, allocations: 63.28 kB / 0.953 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001267/0.6569, allocations: 173.5 kB / 0.9532 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000551/0.6574, allocations: 126.6 kB / 0.9533 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001502/0.6576, allocations: 40.2 kB / 0.9534 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004078/0.658, allocations: 154.5 kB / 0.9535 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.591e-05/0.658, allocations: 39.91 kB / 0.9535 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.6581, allocations: 0 / 0.9535 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.001005/0.6591, allocations: 406.2 kB / 0.9539 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.083e-05/0.6591, allocations: 56.84 kB / 0.954 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.668e-05/0.6591, allocations: 92.42 kB / 0.9541 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.175e-05/0.6592, allocations: 25.7 kB / 0.9541 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.542e-05/0.6592, allocations: 84.27 kB / 0.9542 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.813e-05/0.6592, allocations: 22.11 kB / 0.9542 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.801e-05/0.6592, allocations: 23.81 kB / 0.9542 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.402e-05/0.6593, allocations: 316.1 kB / 0.9545 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.6594, allocations: 32.78 kB / 0.9546 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/0.6596, allocations: 38.03 kB / 0.9546 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002708/0.6599, allocations: 78.89 kB / 0.9547 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.62e-07/0.6599, allocations: 1.219 kB / 0.9547 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003196/0.6602, allocations: 116.5 kB / 0.9548 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.6602, allocations: 6.188 kB / 0.9548 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.6602, allocations: 0 / 0.9548 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.6602, allocations: 1.312 kB / 0.9548 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.6604, allocations: 20.8 kB / 0.9548 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.6604, allocations: 3.984 kB / 0.9548 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.406e-05/0.6605, allocations: 15.61 kB / 0.9548 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.6605, allocations: 6.094 kB / 0.9548 GB, free: 4.801 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.534e-05/0.6606, allocations: 110.9 kB / 0.9549 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.595e-05/0.6606, allocations: 5.938 kB / 0.9549 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004115/0.661, allocations: 134.4 kB / 0.9551 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.661, allocations: 0 / 0.9551 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.6611, allocations: 1.344 kB / 0.9551 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.6611, allocations: 336 / 0.9551 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.482e-05/0.6612, allocations: 174 kB / 0.9552 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.6612, allocations: 3.938 kB / 0.9552 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/0.6613, allocations: 24.42 kB / 0.9553 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.6613, allocations: 4 kB / 0.9553 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.6613, allocations: 7.984 kB / 0.9553 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.6613, allocations: 0 / 0.9553 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.6614, allocations: 7.547 kB / 0.9553 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004991/0.6619, allocations: 189.5 kB / 0.9555 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.26e-05/0.6619, allocations: 87.25 kB / 0.9555 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.6619, allocations: 1 kB / 0.9556 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.662, allocations: 15.95 kB / 0.9556 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.643e-05/0.6621, allocations: 10.3 kB / 0.9556 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-06/0.6621, allocations: 2.219 kB / 0.9556 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.977e-05/0.6621, allocations: 77.5 kB / 0.9557 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6621, allocations: 0 / 0.9557 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002179/0.6623, allocations: 37.17 kB / 0.9557 GB, free: 4.023 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 (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.0001778/0.6625, allocations: 132 kB / 0.9558 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003725/0.6629, allocations: 83.73 kB / 0.9559 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.6629, allocations: 7.938 kB / 0.9559 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001564/0.6631, allocations: 39.25 kB / 0.9559 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001465/0.6632, allocations: 8.375 kB / 0.9559 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006173/0.6639, allocations: 193.2 kB / 0.9561 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001125/0.664, allocations: 0.681 MB / 0.9568 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.778e-05/0.6641, allocations: 18.59 kB / 0.9568 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.005e-05/0.6641, allocations: 12.56 kB / 0.9568 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.6641, allocations: 0 / 0.9568 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of Templates: time 0.003047/0.6672, allocations: 1.155 MB / 0.958 GB, free: 2.383 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (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 & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches