Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.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.InverseXRegularized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|xInv|dy_dt|d2y_dt2",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|xInv|dy_dt|d2y_dt2",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008404/0.0008405, allocations: 94.03 kB / 15.06 MB, free: 1.086 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.000957/0.0009571, allocations: 168.7 kB / 15.95 MB, free: 204 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.528/1.528, allocations: 223.3 MB / 240 MB, free: 5.324 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.524/2.524, allocations: 390.9 MB / 0.666 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004067/0.0004073, allocations: 8 kB / 0.8154 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7613/0.7617, allocations: 142.4 MB / 0.9544 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized): time 0.0009508/0.7628, allocations: 359.7 kB / 0.9548 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001861/0.7646, allocations: 1.394 MB / 0.9561 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.345e-05/0.7647, allocations: 0.875 kB / 0.9561 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.575e-05/0.7647, allocations: 0 / 0.9561 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001011/0.7648, allocations: 4.875 kB / 0.9562 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004106/0.7652, allocations: 94.3 kB / 0.9562 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.704e-05/0.7653, allocations: 25 kB / 0.9563 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.808e-05/0.7654, allocations: 2.312 kB / 0.9563 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.601e-05/0.7655, allocations: 13.34 kB / 0.9563 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.127e-05/0.7656, allocations: 22.47 kB / 0.9563 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.91e-05/0.7656, allocations: 1.156 kB / 0.9563 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005033/0.7661, allocations: 311.1 kB / 0.9566 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.23e-05/0.7661, allocations: 1.156 kB / 0.9566 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.611e-05/0.7661, allocations: 30.89 kB / 0.9566 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002403/0.7664, allocations: 141.5 kB / 0.9568 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.7664, allocations: 0.9688 kB / 0.9568 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of FrontEnd: time 4.188e-06/0.7664, allocations: 0 / 0.9568 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.199e-06/0.7664, allocations: 3.938 kB / 0.9568 GB, free: 5.984 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000502/0.7669, allocations: 364.8 kB / 0.9571 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.767, allocations: 9.344 kB / 0.9571 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003743/0.7674, allocations: 81.34 kB / 0.9572 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.7675, allocations: 176.3 kB / 0.9574 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.166e-05/0.7675, allocations: 1.156 kB / 0.9574 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.311e-05/0.7676, allocations: 1.125 kB / 0.9574 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002696/0.7679, allocations: 83.11 kB / 0.9575 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.7679, allocations: 1.406 kB / 0.9575 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.7679, allocations: 0 / 0.9575 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.7679, allocations: 0 / 0.9575 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003431/0.7683, allocations: 85.78 kB / 0.9575 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001848/0.7685, allocations: 174.9 kB / 0.9577 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004879/0.7689, allocations: 145.3 kB / 0.9578 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.7691, allocations: 51.84 kB / 0.9579 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.7691, allocations: 1.875 kB / 0.9579 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.931e-05/0.7692, allocations: 30.56 kB / 0.9579 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.132e-06/0.7692, allocations: 0 / 0.9579 GB, free: 4.918 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=9): time 0.003983/0.7732, allocations: 0.9558 MB / 0.9589 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.7732, allocations: 56.62 kB / 0.9589 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.7734, allocations: 118.3 kB / 0.959 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.7734, allocations: 29.7 kB / 0.9591 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.19e-05/0.7735, allocations: 82.77 kB / 0.9591 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.753e-05/0.7735, allocations: 26.88 kB / 0.9592 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.188e-05/0.7735, allocations: 7.938 kB / 0.9592 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.7737, allocations: 317.4 kB / 0.9595 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004403/0.7741, allocations: 117.3 kB / 0.9596 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004125/0.7745, allocations: 127.2 kB / 0.9597 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004071/0.7749, allocations: 112.4 kB / 0.9598 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.775, allocations: 0 / 0.9598 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0009069/0.7759, allocations: 283 kB / 0.9601 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.805e-05/0.7759, allocations: 5.719 kB / 0.9601 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.7759, allocations: 4 kB / 0.9601 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.7759, allocations: 0.75 kB / 0.9601 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003416/0.7763, allocations: 64.62 kB / 0.9601 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.7763, allocations: 3.953 kB / 0.9602 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002284/0.7766, allocations: 51.2 kB / 0.9602 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.914e-05/0.7766, allocations: 3.281 kB / 0.9602 GB, free: 3.594 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 (9): * Single equations (assignments): 9 * 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 0.000106/0.7767, allocations: 112 kB / 0.9603 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.91e-05/0.7767, allocations: 6.25 kB / 0.9603 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.46e-05/0.7768, allocations: 10.59 kB / 0.9603 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.7768, allocations: 5 kB / 0.9603 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.7768, allocations: 3.984 kB / 0.9603 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.7768, allocations: 4.922 kB / 0.9603 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00177/0.7786, allocations: 0.6599 MB / 0.961 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.7786, allocations: 0 / 0.961 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002617/0.7789, allocations: 68.8 kB / 0.961 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.7789, allocations: 1.25 kB / 0.961 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.167e-05/0.7789, allocations: 6.719 kB / 0.9611 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.7789, allocations: 5.016 kB / 0.9611 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.7789, allocations: 1 kB / 0.9611 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009764/0.7799, allocations: 383.5 kB / 0.9614 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.219e-05/0.78, allocations: 87.11 kB / 0.9615 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.356e-05/0.78, allocations: 10.08 kB / 0.9615 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.7803, allocations: 46.39 kB / 0.9616 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.721e-05/0.7803, allocations: 12.39 kB / 0.9616 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.7804, allocations: 7.422 kB / 0.9616 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.413e-05/0.7804, allocations: 87.47 kB / 0.9617 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7804, allocations: 0 / 0.9617 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003573/0.7808, allocations: 47.55 kB / 0.9617 GB, free: 2.457 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (9): * Single equations (assignments): 9 * 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.0003096/0.7811, allocations: 127.6 kB / 0.9618 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0008398/0.782, allocations: 255.2 kB / 0.9621 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.782, allocations: 0 / 0.9621 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003995/0.7824, allocations: 131.3 kB / 0.9622 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.7826, allocations: 1.969 kB / 0.9622 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.784, allocations: 483.7 kB / 0.9627 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001476/0.7842, allocations: 0.6841 MB / 0.9633 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001223/0.7843, allocations: 21.34 kB / 0.9634 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.758e-05/0.7844, allocations: 19.14 kB / 0.9634 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of SimCode: time 5.92e-07/0.7844, allocations: 4.281 kB / 0.9634 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of Templates: time 0.004434/0.7889, allocations: 1.543 MB / 0.9649 GB, free: 436 kB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXRegularized.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches