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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_latest_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_latest_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.001244/0.001244, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.01036/0.01036, allocations: 169.8 kB / 16.27 MB, free: 6.652 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.482/1.482, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.748/2.748, allocations: 462.6 MB / 0.7363 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003432/0.0003432, allocations: 17.75 kB / 0.9027 GB, free: 36.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3271, allocations: 159.6 MB / 1.059 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.0007227/0.3279, allocations: 346.7 kB / 1.059 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00177/0.3297, allocations: 1.451 MB / 1.06 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.321e-05/0.3297, allocations: 3.938 kB / 1.06 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.414e-05/0.3297, allocations: 0 / 1.06 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.411e-05/0.3297, allocations: 4 kB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004065/0.3301, allocations: 118.9 kB / 1.06 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.354e-05/0.3302, allocations: 27.97 kB / 1.061 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.057e-05/0.3303, allocations: 0 / 1.061 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.416e-05/0.3303, allocations: 23.92 kB / 1.061 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.08e-05/0.3304, allocations: 23.91 kB / 1.061 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.599e-05/0.3304, allocations: 4 kB / 1.061 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004531/0.3309, allocations: 315.3 kB / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.681e-05/0.3309, allocations: 4 kB / 1.061 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.79e-05/0.331, allocations: 37.62 kB / 1.061 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000288/0.3313, allocations: 183.7 kB / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.3313, allocations: 0 / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3313, allocations: 0 / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.3313, allocations: 0 / 1.061 GB, free: 2.477 MB / 0.8106 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.0005347/0.3318, allocations: 367.7 kB / 1.061 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.3319, allocations: 12.03 kB / 1.061 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000501/0.3324, allocations: 76.84 kB / 1.062 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.3325, allocations: 164.4 kB / 1.062 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.3325, allocations: 384 / 1.062 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.388e-05/0.3325, allocations: 4.375 kB / 1.062 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002746/0.3328, allocations: 97.81 kB / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.3329, allocations: 0 / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.3329, allocations: 0 / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.3329, allocations: 0 / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003236/0.3332, allocations: 79.94 kB / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000179/0.3334, allocations: 165.6 kB / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006362/0.334, allocations: 142.5 kB / 1.062 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001833/0.3342, allocations: 52.98 kB / 1.062 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004982/0.3347, allocations: 173 kB / 1.062 GB, free: 1 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.3348, allocations: 46.42 kB / 1.062 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 2.745e-06/0.3348, allocations: 3.984 kB / 1.062 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.001269/0.3361, allocations: 438.2 kB / 1.063 GB, free: 472 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/0.3361, allocations: 55.41 kB / 1.063 GB, free: 404 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.7e-05/0.3362, allocations: 93.86 kB / 1.063 GB, free: 300 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.3362, allocations: 25.7 kB / 1.063 GB, free: 268 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.759e-05/0.3363, allocations: 84.14 kB / 1.063 GB, free: 180 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.115e-05/0.3363, allocations: 19.73 kB / 1.063 GB, free: 160 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.042e-05/0.3363, allocations: 17.84 kB / 1.063 GB, free: 136 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.3365, allocations: 310.8 kB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/0.3366, allocations: 39.97 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.3368, allocations: 47.95 kB / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003328/0.3372, allocations: 84.81 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.3372, allocations: 0 / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003996/0.3376, allocations: 133.5 kB / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.3376, allocations: 9.406 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3376, allocations: 0 / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.3376, allocations: 3.938 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001565/0.3378, allocations: 27.97 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.3378, allocations: 0 / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001117/0.3379, allocations: 19.98 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.3379, allocations: 4 kB / 1.064 GB, free: 15.45 MB / 0.8262 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 8.569e-05/0.338, allocations: 105.8 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.71e-05/0.3381, allocations: 7.938 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004992/0.3386, allocations: 157 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.3386, allocations: 0 / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3386, allocations: 0 / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3386, allocations: 0 / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001383/0.3387, allocations: 165.7 kB / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3387, allocations: 7.938 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001759/0.3389, allocations: 31.91 kB / 1.064 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3389, allocations: 0 / 1.064 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.339, allocations: 4.312 kB / 1.064 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.339, allocations: 4 kB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.339, allocations: 0 / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006377/0.3396, allocations: 209 kB / 1.064 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.544e-05/0.3397, allocations: 85.03 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.031e-05/0.3397, allocations: 12.09 kB / 1.065 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001246/0.3399, allocations: 11.98 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.849e-05/0.3399, allocations: 4 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.892e-05/0.3399, allocations: 7.984 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.828e-05/0.34, allocations: 75.28 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.34, allocations: 0 / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002433/0.3402, allocations: 36.09 kB / 1.065 GB, free: 14.45 MB / 0.8262 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.0002122/0.3404, allocations: 127.2 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004043/0.3409, allocations: 99.86 kB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3409, allocations: 0 / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001798/0.3411, allocations: 55.95 kB / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001617/0.3412, allocations: 7.938 kB / 1.065 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006202/0.3418, allocations: 211.1 kB / 1.065 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.3421, allocations: 0.6809 MB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001092/0.3422, allocations: 16 kB / 1.066 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.534e-05/0.3423, allocations: 11.44 kB / 1.066 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3423, allocations: 0 / 1.066 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of Templates: time 0.003411/0.3457, allocations: 1.123 MB / 1.067 GB, free: 12.06 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches