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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001808/0.001808, allocations: 109.2 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00254/0.00254, allocations: 218.7 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.634/1.634, allocations: 230.6 MB / 256 MB, free: 7.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.396/3.396, allocations: 0.505 GB / 0.8101 GB, free: 22.04 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.InverseXRegularized,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_InverseXRegularized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.InverseXRegularized,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_InverseXRegularized",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002165/0.002165, allocations: 75.02 kB / 1.177 GB, free: 17.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.349/0.3512, allocations: 180.2 MB / 1.353 GB, free: 8.406 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.InverseXRegularized): time 0.002989/0.3542, allocations: 1.479 MB / 1.354 GB, free: 6.918 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001516/0.3557, allocations: 0.8334 MB / 1.355 GB, free: 6.078 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.805e-05/0.3558, allocations: 3.938 kB / 1.355 GB, free: 6.074 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.799e-05/0.3558, allocations: 0 / 1.355 GB, free: 6.074 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.416e-05/0.3558, allocations: 3.938 kB / 1.355 GB, free: 6.07 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006079/0.3564, allocations: 143.4 kB / 1.355 GB, free: 5.93 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 9.28e-05/0.3565, allocations: 27.97 kB / 1.355 GB, free: 5.902 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.3566, allocations: 8 kB / 1.355 GB, free: 5.895 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 6.543e-05/0.3567, allocations: 19.92 kB / 1.355 GB, free: 5.875 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.867e-05/0.3568, allocations: 11.98 kB / 1.355 GB, free: 5.863 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.563e-05/0.3568, allocations: 7.938 kB / 1.355 GB, free: 5.855 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005851/0.3574, allocations: 323.4 kB / 1.356 GB, free: 5.539 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.148e-05/0.3574, allocations: 7.922 kB / 1.356 GB, free: 5.531 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.289e-05/0.3574, allocations: 11.92 kB / 1.356 GB, free: 5.52 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004116/0.3578, allocations: 207.7 kB / 1.356 GB, free: 5.316 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3578, allocations: 0 / 1.356 GB, free: 5.316 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3578, allocations: 0 / 1.356 GB, free: 5.316 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.3579, allocations: 0 / 1.356 GB, free: 5.316 MB / 1.045 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.0006459/0.3585, allocations: 297.9 kB / 1.356 GB, free: 4.996 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.3585, allocations: 12.03 kB / 1.356 GB, free: 4.984 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.819e-05/0.3586, allocations: 34.75 kB / 1.356 GB, free: 4.941 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004894/0.3591, allocations: 68.8 kB / 1.356 GB, free: 4.875 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.3592, allocations: 106.5 kB / 1.356 GB, free: 4.746 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.984e-05/0.3592, allocations: 4.375 kB / 1.356 GB, free: 4.742 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.552e-05/0.3593, allocations: 4.375 kB / 1.356 GB, free: 4.738 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003596/0.3596, allocations: 85.69 kB / 1.356 GB, free: 4.648 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.3596, allocations: 4 kB / 1.356 GB, free: 4.645 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.3596, allocations: 4 kB / 1.356 GB, free: 4.641 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.3596, allocations: 0 / 1.356 GB, free: 4.641 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004182/0.3601, allocations: 91.89 kB / 1.357 GB, free: 4.551 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005797/0.3606, allocations: 259.9 kB / 1.357 GB, free: 4.254 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003748/0.361, allocations: 94.5 kB / 1.357 GB, free: 4.152 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002077/0.3612, allocations: 56.81 kB / 1.357 GB, free: 4.094 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.729e-05/0.3612, allocations: 3.984 kB / 1.357 GB, free: 4.09 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.3613, allocations: 30.56 kB / 1.357 GB, free: 4.051 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.3613, allocations: 0 / 1.357 GB, free: 4.051 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0007227/0.362, allocations: 169.5 kB / 1.357 GB, free: 3.879 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.362, allocations: 51.41 kB / 1.357 GB, free: 3.816 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.3621, allocations: 109.8 kB / 1.357 GB, free: 3.699 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.3622, allocations: 25.7 kB / 1.357 GB, free: 3.668 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.619e-05/0.3622, allocations: 84.27 kB / 1.357 GB, free: 3.582 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.398e-05/0.3622, allocations: 15.83 kB / 1.357 GB, free: 3.566 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.892e-05/0.3623, allocations: 17.7 kB / 1.357 GB, free: 3.543 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001554/0.3625, allocations: 314.8 kB / 1.358 GB, free: 3.227 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002132/0.3627, allocations: 51.89 kB / 1.358 GB, free: 3.176 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001931/0.3629, allocations: 43.95 kB / 1.358 GB, free: 3.133 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004122/0.3633, allocations: 92.81 kB / 1.358 GB, free: 3.039 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3633, allocations: 7.938 kB / 1.358 GB, free: 3.031 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0004445/0.3637, allocations: 113.6 kB / 1.358 GB, free: 2.914 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.3637, allocations: 9.562 kB / 1.358 GB, free: 2.906 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3637, allocations: 32 / 1.358 GB, free: 2.906 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.3638, allocations: 4 kB / 1.358 GB, free: 2.902 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.3639, allocations: 19.97 kB / 1.358 GB, free: 2.883 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.3639, allocations: 0 / 1.358 GB, free: 2.883 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.3641, allocations: 19.97 kB / 1.358 GB, free: 2.863 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.3641, allocations: 4 kB / 1.358 GB, free: 2.859 MB / 1.045 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 9.857e-05/0.3642, allocations: 125.7 kB / 1.358 GB, free: 2.727 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.773e-05/0.3642, allocations: 0 / 1.358 GB, free: 2.727 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.971e-05/0.3642, allocations: 7.297 kB / 1.358 GB, free: 2.723 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.3642, allocations: 0 / 1.358 GB, free: 2.723 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.936e-06/0.3642, allocations: 7.984 kB / 1.358 GB, free: 2.715 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.3642, allocations: 0 / 1.358 GB, free: 2.715 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.3644, allocations: 148.6 kB / 1.358 GB, free: 2.527 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3644, allocations: 0 / 1.358 GB, free: 2.527 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001462/0.3646, allocations: 23.97 kB / 1.358 GB, free: 2.504 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.3646, allocations: 0 / 1.358 GB, free: 2.504 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.3646, allocations: 8 kB / 1.358 GB, free: 2.496 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3646, allocations: 0 / 1.358 GB, free: 2.496 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3646, allocations: 0 / 1.358 GB, free: 2.496 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005142/0.3651, allocations: 215.4 kB / 1.359 GB, free: 2.27 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.035e-05/0.3651, allocations: 4 kB / 1.359 GB, free: 2.266 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.3651, allocations: 3.984 kB / 1.359 GB, free: 2.262 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.3653, allocations: 20.02 kB / 1.359 GB, free: 2.242 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.587e-05/0.3653, allocations: 7.922 kB / 1.359 GB, free: 2.234 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.914e-06/0.3653, allocations: 4 kB / 1.359 GB, free: 2.23 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.002e-05/0.3654, allocations: 83.53 kB / 1.359 GB, free: 2.148 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.3654, allocations: 3.938 kB / 1.359 GB, free: 2.145 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002539/0.3656, allocations: 15.94 kB / 1.359 GB, free: 2.129 MB / 1.045 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.0009084/0.3665, allocations: 0.7592 MB / 1.359 GB, free: 1.34 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004907/0.367, allocations: 95.88 kB / 1.36 GB, free: 1.246 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.367, allocations: 4 kB / 1.36 GB, free: 1.242 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0002237/0.3673, allocations: 52 kB / 1.36 GB, free: 1.191 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.3676, allocations: 0 / 1.36 GB, free: 1.191 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007862/0.3684, allocations: 199.5 kB / 1.36 GB, free: 0.957 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.3687, allocations: 0.6806 MB / 1.36 GB, free: 256 kB / 1.045 GB Notification: Performance of simCode: alias equations: time 7.125e-05/0.3688, allocations: 8 kB / 1.36 GB, free: 248 kB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.867e-05/0.3688, allocations: 11.44 kB / 1.36 GB, free: 236 kB / 1.045 GB Notification: Performance of SimCode: time 2.8e-07/0.3688, allocations: 0 / 1.36 GB, free: 236 kB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02982/0.3987, allocations: 1.801 MB / 1.362 GB, free: 14.56 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.55, allocations: 1.719 kB / 1.362 GB, free: 14.56 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_InverseXRegularized_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_InverseXRegularized.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe 2>&1) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.67778894910589]