Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.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 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.Examples.InverseXRegularized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inverseXRegularized.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized") translateModel(Buildings.Utilities.Math.Examples.InverseXRegularized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inverseXRegularized.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001211/0.001212, allocations: 100.1 kB / 15.88 MB, free: 12 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.001273/0.001273, allocations: 202 kB / 16.79 MB, free: 6.828 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.377/1.377, allocations: 222.9 MB / 240.5 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.769/2.769, allocations: 461.9 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001264, allocations: 66.2 kB / 0.899 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3284, allocations: 157.4 MB / 1.053 GB, free: 8.328 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.InverseXRegularized): time 0.003018/0.3315, allocations: 1.514 MB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001375/0.3329, allocations: 0.8139 MB / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.846e-05/0.333, allocations: 0 / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.807e-05/0.333, allocations: 4 kB / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.841e-05/0.3331, allocations: 7.938 kB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004935/0.3336, allocations: 95.69 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.692e-05/0.3337, allocations: 35.91 kB / 1.055 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.42e-05/0.3338, allocations: 15.97 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.152e-05/0.3338, allocations: 11.98 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.088e-05/0.3339, allocations: 19.92 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.458e-05/0.3339, allocations: 0 / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004499/0.3344, allocations: 315.3 kB / 1.055 GB, free: 5.48 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.753e-05/0.3344, allocations: 11.98 kB / 1.056 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.949e-05/0.3345, allocations: 7.938 kB / 1.056 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000236/0.3347, allocations: 139.8 kB / 1.056 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3347, allocations: 0 / 1.056 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.62e-07/0.3347, allocations: 0 / 1.056 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.647e-06/0.3347, allocations: 0 / 1.056 GB, free: 5.324 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005333/0.3353, allocations: 381.1 kB / 1.056 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.3353, allocations: 8.031 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005068/0.3358, allocations: 64.86 kB / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.336, allocations: 164.4 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.336, allocations: 4.375 kB / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.304e-05/0.336, allocations: 384 / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003092/0.3363, allocations: 93.88 kB / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.3363, allocations: 0 / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.3364, allocations: 0 / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.3364, allocations: 0 / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004091/0.3368, allocations: 91.91 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005577/0.3373, allocations: 308.7 kB / 1.057 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000382/0.3377, allocations: 94.5 kB / 1.057 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.338, allocations: 52.81 kB / 1.057 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.628e-05/0.338, allocations: 7.938 kB / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.28e-05/0.338, allocations: 34.56 kB / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.338, allocations: 0 / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0007369/0.3388, allocations: 165.5 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.221e-05/0.3388, allocations: 51.41 kB / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.51e-05/0.3389, allocations: 102 kB / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.3389, allocations: 29.7 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.307e-05/0.339, allocations: 84.14 kB / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.339, allocations: 7.844 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.747e-05/0.339, allocations: 21.7 kB / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.3392, allocations: 310.8 kB / 1.058 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.3394, allocations: 47.89 kB / 1.058 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001962/0.3396, allocations: 43.95 kB / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003772/0.34, allocations: 96.77 kB / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.34, allocations: 0 / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0004466/0.3404, allocations: 125.6 kB / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.3404, allocations: 4 kB / 1.058 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.3405, allocations: 0 / 1.058 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.3405, allocations: 0 / 1.058 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.3406, allocations: 23.97 kB / 1.058 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.3407, allocations: 0 / 1.058 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.3408, allocations: 20 kB / 1.058 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.3408, allocations: 4 kB / 1.058 GB, free: 2.711 MB / 0.8106 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 (2): * Single equations (assignments): 2 * 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.282e-05/0.3409, allocations: 117.7 kB / 1.058 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.997e-05/0.3409, allocations: 4 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.759e-05/0.341, allocations: 3.125 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.341, allocations: 0 / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.341, allocations: 256 / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.341, allocations: 0 / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001905/0.3412, allocations: 185.5 kB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.3412, allocations: 0 / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001613/0.3414, allocations: 23.97 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3414, allocations: 0 / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.3414, allocations: 0 / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3414, allocations: 0 / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3414, allocations: 0 / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004949/0.3419, allocations: 223.4 kB / 1.059 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.52e-05/0.3419, allocations: 77.11 kB / 1.059 GB, free: 2 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.665e-05/0.342, allocations: 4 kB / 1.059 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.3421, allocations: 15.97 kB / 1.059 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.95e-05/0.3422, allocations: 11.92 kB / 1.059 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.934e-06/0.3422, allocations: 3.984 kB / 1.059 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.01e-05/0.3422, allocations: 87.22 kB / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3422, allocations: 7.969 kB / 1.059 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002461/0.3425, allocations: 16 kB / 1.059 GB, free: 1.855 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * 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.0001651/0.3426, allocations: 107.2 kB / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004543/0.3431, allocations: 95.91 kB / 1.059 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3431, allocations: 0 / 1.059 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002133/0.3433, allocations: 48.02 kB / 1.059 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.3436, allocations: 11.92 kB / 1.059 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000563/0.3442, allocations: 188.9 kB / 1.059 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/0.3444, allocations: 0.677 MB / 1.06 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.843e-05/0.3445, allocations: 11.44 kB / 1.06 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of SimCode: time 2e-07/0.3445, allocations: 0 / 1.06 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of Templates: time 0.002594/0.3471, allocations: 0.8854 MB / 1.061 GB, free: 15.77 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_InverseXRegularized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches