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.00179/0.00179, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002233/0.002233, allocations: 211.7 kB / 22.24 MB, free: 5.262 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.476/1.476, allocations: 230.6 MB / 256 MB, free: 7.785 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.21/3.21, allocations: 0.5107 GB / 0.8158 GB, free: 17.77 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.002097/0.002097, allocations: 66.64 kB / 1.186 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3786/0.3807, allocations: 181.9 MB / 1.363 GB, free: 14.04 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.InverseXRegularized): time 0.003141/0.3839, allocations: 1.464 MB / 1.365 GB, free: 12.56 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001596/0.3855, allocations: 0.7565 MB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.22e-05/0.3855, allocations: 4 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.808e-05/0.3855, allocations: 4 kB / 1.366 GB, free: 11.79 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.911e-05/0.3856, allocations: 3.938 kB / 1.366 GB, free: 11.79 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.00056/0.3861, allocations: 127.5 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 9.399e-05/0.3862, allocations: 43.86 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.3863, allocations: 11.97 kB / 1.366 GB, free: 11.61 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 4.955e-05/0.3864, allocations: 8 kB / 1.366 GB, free: 11.6 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.834e-05/0.3865, allocations: 23.91 kB / 1.366 GB, free: 11.58 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.7e-05/0.3865, allocations: 4 kB / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004548/0.3869, allocations: 243.5 kB / 1.366 GB, free: 11.34 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.466e-05/0.387, allocations: 4 kB / 1.366 GB, free: 11.33 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.163e-05/0.387, allocations: 11.92 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000388/0.3874, allocations: 191.8 kB / 1.366 GB, free: 11.13 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 9.638e-06/0.3874, allocations: 4 kB / 1.366 GB, free: 11.13 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.934e-06/0.3874, allocations: 4 kB / 1.366 GB, free: 11.12 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.574e-06/0.3874, allocations: 4 kB / 1.366 GB, free: 11.12 MB / 1.061 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.0006566/0.388, allocations: 299.6 kB / 1.367 GB, free: 10.8 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/0.3881, allocations: 8.031 kB / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.005e-05/0.3882, allocations: 30.75 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005009/0.3887, allocations: 68.84 kB / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.3888, allocations: 110.5 kB / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.3888, allocations: 384 / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.103e-05/0.3888, allocations: 384 / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003282/0.3891, allocations: 89.75 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.3891, allocations: 4 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.3892, allocations: 0 / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.3892, allocations: 0 / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004131/0.3896, allocations: 95.89 kB / 1.367 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005574/0.3901, allocations: 259.9 kB / 1.367 GB, free: 10.07 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003852/0.3905, allocations: 94.48 kB / 1.367 GB, free: 9.965 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002064/0.3907, allocations: 52.88 kB / 1.367 GB, free: 9.91 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.676e-05/0.3907, allocations: 0 / 1.367 GB, free: 9.91 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.3908, allocations: 30.56 kB / 1.367 GB, free: 9.871 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.3908, allocations: 3.938 kB / 1.367 GB, free: 9.867 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0007589/0.3915, allocations: 173.6 kB / 1.367 GB, free: 9.691 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.3916, allocations: 51.41 kB / 1.368 GB, free: 9.629 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.833e-05/0.3917, allocations: 105.9 kB / 1.368 GB, free: 9.516 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.3917, allocations: 25.7 kB / 1.368 GB, free: 9.484 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.772e-05/0.3917, allocations: 92.12 kB / 1.368 GB, free: 9.391 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.712e-05/0.3918, allocations: 7.891 kB / 1.368 GB, free: 9.383 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.969e-05/0.3918, allocations: 13.72 kB / 1.368 GB, free: 9.363 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001617/0.392, allocations: 326.8 kB / 1.368 GB, free: 9.035 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002065/0.3922, allocations: 43.94 kB / 1.368 GB, free: 8.992 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.3924, allocations: 47.95 kB / 1.368 GB, free: 8.945 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003863/0.3928, allocations: 88.83 kB / 1.368 GB, free: 8.855 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3928, allocations: 0 / 1.368 GB, free: 8.855 MB / 1.061 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0004377/0.3932, allocations: 121.5 kB / 1.368 GB, free: 8.73 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.3932, allocations: 7.984 kB / 1.368 GB, free: 8.723 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.3932, allocations: 0 / 1.368 GB, free: 8.723 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.3933, allocations: 0 / 1.368 GB, free: 8.723 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.3934, allocations: 27.97 kB / 1.368 GB, free: 8.695 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.3934, allocations: 4.031 kB / 1.368 GB, free: 8.691 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.3935, allocations: 11.98 kB / 1.368 GB, free: 8.68 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.3935, allocations: 4 kB / 1.368 GB, free: 8.676 MB / 1.061 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.552e-05/0.3936, allocations: 109.8 kB / 1.369 GB, free: 8.559 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.016e-05/0.3937, allocations: 11.94 kB / 1.369 GB, free: 8.547 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.768e-05/0.3937, allocations: 7.312 kB / 1.369 GB, free: 8.535 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.3937, allocations: 0 / 1.369 GB, free: 8.535 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3937, allocations: 0 / 1.369 GB, free: 8.535 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3937, allocations: 4 kB / 1.369 GB, free: 8.531 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001881/0.3939, allocations: 132.7 kB / 1.369 GB, free: 8.359 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.3939, allocations: 0 / 1.369 GB, free: 8.359 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001334/0.394, allocations: 23.97 kB / 1.369 GB, free: 8.336 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.394, allocations: 0 / 1.369 GB, free: 8.336 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.3941, allocations: 0 / 1.369 GB, free: 8.336 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.3941, allocations: 0 / 1.369 GB, free: 8.336 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3941, allocations: 0 / 1.369 GB, free: 8.336 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005047/0.3946, allocations: 231.3 kB / 1.369 GB, free: 8.094 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 6.492e-06/0.3946, allocations: 4.031 kB / 1.369 GB, free: 8.09 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.3946, allocations: 3.984 kB / 1.369 GB, free: 8.086 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.3947, allocations: 19.97 kB / 1.369 GB, free: 8.066 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.7e-05/0.3948, allocations: 4 kB / 1.369 GB, free: 8.062 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.788e-06/0.3948, allocations: 7.984 kB / 1.369 GB, free: 8.055 MB / 1.061 GB Notification: Performance of sorting global known variables: time 4.93e-05/0.3948, allocations: 83.53 kB / 1.369 GB, free: 7.973 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3948, allocations: 0 / 1.369 GB, free: 7.973 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002423/0.3951, allocations: 11.94 kB / 1.369 GB, free: 7.961 MB / 1.061 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.0008928/0.396, allocations: 0.7708 MB / 1.37 GB, free: 7.16 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004548/0.3964, allocations: 91.94 kB / 1.37 GB, free: 7.07 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3964, allocations: 0 / 1.37 GB, free: 7.07 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002095/0.3966, allocations: 47.95 kB / 1.37 GB, free: 7.023 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003324/0.397, allocations: 18.05 kB / 1.37 GB, free: 7.008 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007139/0.3977, allocations: 195 kB / 1.37 GB, free: 6.777 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.376e-05/0.3978, allocations: 71.28 kB / 1.37 GB, free: 6.688 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.015e-05/0.3978, allocations: 8 kB / 1.37 GB, free: 6.68 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.011e-05/0.3979, allocations: 11.44 kB / 1.37 GB, free: 6.668 MB / 1.061 GB Notification: Performance of SimCode: time 5.21e-07/0.3979, allocations: 0 / 1.37 GB, free: 6.668 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02884/0.4267, allocations: 2.251 MB / 1.372 GB, free: 4.566 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.16, allocations: 1.688 kB / 1.372 GB, free: 4.566 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.807164017111063]