Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001284, 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.001284/0.001284, allocations: 197.2 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.273/1.273, allocations: 222.9 MB / 240.2 MB, free: 4.375 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.213/2.213, allocations: 390.2 MB / 0.6646 GB, free: 416 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 63.91 kB / 0.8125 GB, free: 14.43 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6717/0.6729, allocations: 140.4 MB / 0.9496 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001762/0.6747, allocations: 0.7848 MB / 0.9504 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001376/0.6761, allocations: 1.473 MB / 0.9518 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.047e-05/0.6761, allocations: 0 / 0.9518 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.218e-05/0.6762, allocations: 5.125 kB / 0.9518 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.241e-05/0.6762, allocations: 3.938 kB / 0.9518 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004209/0.6766, allocations: 148.4 kB / 0.9519 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.335e-05/0.6767, allocations: 44.28 kB / 0.952 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.387e-05/0.6768, allocations: 3.688 kB / 0.952 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.888e-05/0.6768, allocations: 27.33 kB / 0.952 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.548e-05/0.6769, allocations: 40.84 kB / 0.9521 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.811e-05/0.6769, allocations: 4.781 kB / 0.9521 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003896/0.6773, allocations: 318.2 kB / 0.9524 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.844e-05/0.6773, allocations: 14.48 kB / 0.9524 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.625e-05/0.6774, allocations: 22.7 kB / 0.9524 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002629/0.6777, allocations: 222.9 kB / 0.9526 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.6777, allocations: 0 / 0.9526 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.71e-07/0.6777, allocations: 0 / 0.9526 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.157e-06/0.6777, allocations: 1.5 kB / 0.9526 GB, free: 6.859 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004878/0.6782, allocations: 400.2 kB / 0.953 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.6782, allocations: 8.344 kB / 0.953 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004089/0.6786, allocations: 78.59 kB / 0.9531 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.129e-05/0.6787, allocations: 169.4 kB / 0.9532 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.581e-05/0.6787, allocations: 4.25 kB / 0.9532 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.422e-05/0.6788, allocations: 11.94 kB / 0.9533 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003137/0.6791, allocations: 106.6 kB / 0.9534 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.6791, allocations: 3.984 kB / 0.9534 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.6791, allocations: 5.281 kB / 0.9534 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.6791, allocations: 2.375 kB / 0.9534 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004403/0.6796, allocations: 98.53 kB / 0.9535 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004428/0.68, allocations: 337.5 kB / 0.9538 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000594/0.6806, allocations: 152.3 kB / 0.9539 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002143/0.6809, allocations: 62.17 kB / 0.954 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.6809, allocations: 1.562 kB / 0.954 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.445e-05/0.6809, allocations: 31.94 kB / 0.954 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.6809, allocations: 3.984 kB / 0.954 GB, free: 5.598 MB / 0.7169 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=11): time 0.01908/0.7, allocations: 2.832 MB / 0.9568 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.483e-05/0.7001, allocations: 56.72 kB / 0.9568 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.928e-05/0.7001, allocations: 99.09 kB / 0.9569 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.48e-05/0.7002, allocations: 30.8 kB / 0.957 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.488e-05/0.7002, allocations: 86.2 kB / 0.957 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 8.877e-05/0.7003, allocations: 43.86 kB / 0.9571 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002238/0.7006, allocations: 77.45 kB / 0.9572 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.552e-05/0.7006, allocations: 312 kB / 0.9575 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001002/0.7016, allocations: 193 kB / 0.9576 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009628/0.7026, allocations: 201.1 kB / 0.9578 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001934/0.7046, allocations: 393.3 kB / 0.9582 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.7046, allocations: 0 / 0.9582 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00237/0.707, allocations: 477.2 kB / 0.9587 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.707, allocations: 8.781 kB / 0.9587 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.707, allocations: 3.938 kB / 0.9587 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.825e-05/0.7071, allocations: 1.094 kB / 0.9587 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/0.7082, allocations: 109.8 kB / 0.9588 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.7082, allocations: 9.312 kB / 0.9588 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008806/0.7091, allocations: 42.22 kB / 0.9588 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.531e-05/0.7092, allocations: 25.2 kB / 0.9589 GB, free: 2.453 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 (13): * Single equations (assignments): 13 * 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.0002235/0.7095, allocations: 117.5 kB / 0.959 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.7096, allocations: 2.656 kB / 0.959 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.494e-05/0.7097, allocations: 13.19 kB / 0.959 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.7097, allocations: 1.219 kB / 0.959 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/0.7097, allocations: 5.062 kB / 0.959 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.7097, allocations: 0 / 0.959 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003066/0.7128, allocations: 1.064 MB / 0.96 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.7128, allocations: 0 / 0.96 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/0.714, allocations: 105.6 kB / 0.9601 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-05/0.7141, allocations: 9.438 kB / 0.9601 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-05/0.7142, allocations: 28.3 kB / 0.9602 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.7142, allocations: 0 / 0.9602 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.7142, allocations: 1.344 kB / 0.9602 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002653/0.7168, allocations: 0.785 MB / 0.9609 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.717, allocations: 123.8 kB / 0.9611 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.813e-05/0.7171, allocations: 5.25 kB / 0.9611 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006338/0.7177, allocations: 46.59 kB / 0.9611 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.83e-05/0.7178, allocations: 27.48 kB / 0.9611 GB, free: 0.6602 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.96e-05/0.7179, allocations: 25.78 kB / 0.9612 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.093e-05/0.7179, allocations: 78.78 kB / 0.9612 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7179, allocations: 0 / 0.9612 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003941/0.7183, allocations: 59.36 kB / 0.9613 GB, free: 0.5547 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_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 (11): * Single equations (assignments): 11 * 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.0001853/0.7185, allocations: 108.6 kB / 0.9614 GB, free: 472 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001394/0.7199, allocations: 428.7 kB / 0.9618 GB, free: 256 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.7199, allocations: 0 / 0.9618 GB, free: 256 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0006735/0.7206, allocations: 225.1 kB / 0.962 GB, free: 140 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003604/0.721, allocations: 11.77 kB / 0.962 GB, free: 136 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005041/0.726, allocations: 0.7655 MB / 0.9628 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.7264, allocations: 0.6917 MB / 0.9634 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0009262/0.7273, allocations: 94.88 kB / 0.9635 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003363/0.7276, allocations: 55.42 kB / 0.9636 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of SimCode: time 8.62e-07/0.7277, allocations: 0.9688 kB / 0.9636 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of Templates: time 0.01183/0.7395, allocations: 3.468 MB / 0.967 GB, free: 12.97 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches