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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001411/0.001411, allocations: 99.47 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.001743/0.001744, allocations: 177.3 kB / 15.94 MB, free: 220 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.433/1.433, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.652/2.652, allocations: 390.3 MB / 0.6653 GB, free: 3.012 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004284/0.0004289, allocations: 12 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7755/0.7759, allocations: 142.3 MB / 0.9535 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.0007321/0.7767, allocations: 330.3 kB / 0.9538 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001495/0.7782, allocations: 1.39 MB / 0.9552 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.543e-05/0.7783, allocations: 0 / 0.9552 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.106e-05/0.7783, allocations: 3.938 kB / 0.9552 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.232e-05/0.7783, allocations: 4 kB / 0.9552 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003556/0.7787, allocations: 101.1 kB / 0.9553 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.577e-05/0.7788, allocations: 27.83 kB / 0.9553 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.281e-05/0.7788, allocations: 1.062 kB / 0.9553 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.711e-05/0.7789, allocations: 13.23 kB / 0.9553 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.033e-05/0.779, allocations: 29.52 kB / 0.9554 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.562e-05/0.779, allocations: 7.25 kB / 0.9554 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000399/0.7794, allocations: 300.6 kB / 0.9557 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.536e-05/0.7794, allocations: 18.84 kB / 0.9557 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.234e-05/0.7794, allocations: 27.14 kB / 0.9557 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002101/0.7796, allocations: 134.5 kB / 0.9558 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.7797, allocations: 0 / 0.9558 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.433e-06/0.7797, allocations: 3.938 kB / 0.9558 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.7797, allocations: 0 / 0.9558 GB, free: 6.324 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.0004404/0.7801, allocations: 360 kB / 0.9562 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.7802, allocations: 12.56 kB / 0.9562 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004606/0.7806, allocations: 82.08 kB / 0.9563 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.37e-05/0.7807, allocations: 160.3 kB / 0.9564 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.051e-05/0.7808, allocations: 1.25 kB / 0.9564 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.74e-05/0.7808, allocations: 2.344 kB / 0.9564 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000249/0.781, allocations: 86.44 kB / 0.9565 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.7811, allocations: 1.531 kB / 0.9565 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.7811, allocations: 0 / 0.9565 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.7811, allocations: 0 / 0.9565 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003122/0.7814, allocations: 86.62 kB / 0.9566 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000164/0.7816, allocations: 165.4 kB / 0.9568 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005663/0.7822, allocations: 141.3 kB / 0.9569 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004395/0.7826, allocations: 171.8 kB / 0.957 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.63e-05/0.7826, allocations: 47.55 kB / 0.9571 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.182e-06/0.7826, allocations: 1.5 kB / 0.9571 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.001102/0.7837, allocations: 439.1 kB / 0.9575 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.622e-05/0.7838, allocations: 52.53 kB / 0.9576 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.213e-05/0.7838, allocations: 95.94 kB / 0.9577 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.7838, allocations: 26.83 kB / 0.9577 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.488e-05/0.7839, allocations: 85.48 kB / 0.9578 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.925e-05/0.7839, allocations: 21.8 kB / 0.9578 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.663e-06/0.7839, allocations: 0 / 0.9578 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.138e-05/0.784, allocations: 315.9 kB / 0.9581 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.7841, allocations: 47.75 kB / 0.9581 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001449/0.7843, allocations: 34.91 kB / 0.9582 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/0.7845, allocations: 46.81 kB / 0.9582 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.7845, allocations: 3.938 kB / 0.9582 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003333/0.7848, allocations: 130 kB / 0.9583 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.7848, allocations: 4.469 kB / 0.9583 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.7848, allocations: 1.781 kB / 0.9583 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.7849, allocations: 0 / 0.9583 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.785, allocations: 31.38 kB / 0.9584 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.785, allocations: 0 / 0.9584 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.705e-05/0.7851, allocations: 18.42 kB / 0.9584 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.7851, allocations: 7.047 kB / 0.9584 GB, free: 4.066 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 4.916e-05/0.7852, allocations: 111.2 kB / 0.9585 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.251e-05/0.7852, allocations: 1.688 kB / 0.9585 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004303/0.7856, allocations: 158.4 kB / 0.9587 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.7856, allocations: 0 / 0.9587 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.7857, allocations: 0 / 0.9587 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.7857, allocations: 1.344 kB / 0.9587 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.471e-05/0.7858, allocations: 171.4 kB / 0.9588 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.7858, allocations: 0 / 0.9588 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001502/0.7859, allocations: 30.38 kB / 0.9588 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.7859, allocations: 1.938 kB / 0.9589 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.786, allocations: 5.75 kB / 0.9589 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.786, allocations: 0 / 0.9589 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.786, allocations: 0 / 0.9589 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005152/0.7865, allocations: 209 kB / 0.9591 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.944e-05/0.7865, allocations: 83.84 kB / 0.9591 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.922e-05/0.7866, allocations: 5.312 kB / 0.9591 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.7867, allocations: 19.05 kB / 0.9592 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.618e-05/0.7867, allocations: 6.75 kB / 0.9592 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.7867, allocations: 1.375 kB / 0.9592 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.046e-05/0.7868, allocations: 82.02 kB / 0.9592 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7868, allocations: 0 / 0.9592 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002409/0.787, allocations: 32.56 kB / 0.9593 GB, free: 3.297 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.0001986/0.7872, allocations: 128.2 kB / 0.9594 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003653/0.7876, allocations: 101.8 kB / 0.9595 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.7876, allocations: 1.375 kB / 0.9595 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000155/0.7878, allocations: 48.91 kB / 0.9595 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001354/0.7879, allocations: 13.27 kB / 0.9596 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006174/0.7885, allocations: 198.6 kB / 0.9597 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001291/0.7887, allocations: 0.681 MB / 0.9604 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001066/0.7888, allocations: 18.7 kB / 0.9604 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.222e-05/0.7888, allocations: 11.75 kB / 0.9604 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of SimCode: time 1.91e-07/0.7888, allocations: 4 kB / 0.9604 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of Templates: time 0.003718/0.7926, allocations: 1.095 MB / 0.9615 GB, free: 1.676 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","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches