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.001768/0.001768, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.002067/0.002067, allocations: 209.6 kB / 20.13 MB, free: 3.035 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.578/1.578, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.118/3.118, allocations: 0.5003 GB / 0.8026 GB, free: 6.727 MB / 0.6387 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.InverseXRegularized,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_InverseXRegularized",fmuType="cs",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.002/0.002, allocations: 63.91 kB / 1.165 GB, free: 0.4922 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9431/0.9451, allocations: 179 MB / 1.34 GB, free: 16.25 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.InverseXRegularized): time 0.002516/0.9476, allocations: 1.454 MB / 1.342 GB, free: 15.23 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001306/0.9489, allocations: 0.8397 MB / 1.342 GB, free: 14.65 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.822e-05/0.9489, allocations: 0 / 1.342 GB, free: 14.65 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.306e-05/0.949, allocations: 1.281 kB / 1.342 GB, free: 14.65 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.951e-05/0.949, allocations: 4.641 kB / 1.342 GB, free: 14.64 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004329/0.9494, allocations: 129.6 kB / 1.343 GB, free: 14.59 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 7.043e-05/0.9495, allocations: 32.59 kB / 1.343 GB, free: 14.57 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.052e-05/0.9496, allocations: 6.984 kB / 1.343 GB, free: 14.57 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 5.086e-05/0.9497, allocations: 18.06 kB / 1.343 GB, free: 14.56 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.14e-05/0.9497, allocations: 20.08 kB / 1.343 GB, free: 14.55 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.413e-05/0.9497, allocations: 3.719 kB / 1.343 GB, free: 14.55 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005161/0.9502, allocations: 324.1 kB / 1.343 GB, free: 14.46 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.749e-05/0.9503, allocations: 7.828 kB / 1.343 GB, free: 14.46 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.69e-05/0.9503, allocations: 12.77 kB / 1.343 GB, free: 14.45 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003393/0.9506, allocations: 203.3 kB / 1.343 GB, free: 14.39 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.9506, allocations: 0 / 1.343 GB, free: 14.39 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.212e-06/0.9506, allocations: 1.062 kB / 1.343 GB, free: 14.39 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.9506, allocations: 0 / 1.343 GB, free: 14.39 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.0005053/0.9511, allocations: 372 kB / 1.343 GB, free: 14.01 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.9512, allocations: 9.906 kB / 1.343 GB, free: 14.01 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.152e-05/0.9512, allocations: 1.469 kB / 1.343 GB, free: 14.01 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.071e-05/0.9512, allocations: 39.36 kB / 1.344 GB, free: 13.96 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004744/0.9517, allocations: 76.05 kB / 1.344 GB, free: 13.95 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.612e-05/0.9518, allocations: 171.4 kB / 1.344 GB, free: 13.75 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.9518, allocations: 384 / 1.344 GB, free: 13.75 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/0.9518, allocations: 2.375 kB / 1.344 GB, free: 13.75 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003143/0.9521, allocations: 84.61 kB / 1.344 GB, free: 13.71 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.9521, allocations: 4 kB / 1.344 GB, free: 13.7 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.9522, allocations: 2.031 kB / 1.344 GB, free: 13.7 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.9522, allocations: 0 / 1.344 GB, free: 13.7 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004303/0.9526, allocations: 88.94 kB / 1.344 GB, free: 13.69 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005047/0.9531, allocations: 299.6 kB / 1.344 GB, free: 13.4 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003928/0.9535, allocations: 101.1 kB / 1.344 GB, free: 13.36 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002188/0.9537, allocations: 50.66 kB / 1.344 GB, free: 13.34 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.9537, allocations: 0 / 1.344 GB, free: 13.34 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.9538, allocations: 36.45 kB / 1.344 GB, free: 13.3 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 8.22e-07/0.9538, allocations: 0 / 1.344 GB, free: 13.3 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0007898/0.9545, allocations: 171.9 kB / 1.345 GB, free: 13.24 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.9546, allocations: 53.34 kB / 1.345 GB, free: 13.18 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.927e-05/0.9546, allocations: 106 kB / 1.345 GB, free: 13.07 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.9547, allocations: 27.08 kB / 1.345 GB, free: 13.04 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.396e-05/0.9547, allocations: 84.66 kB / 1.345 GB, free: 12.96 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.023e-05/0.9547, allocations: 9.922 kB / 1.345 GB, free: 12.95 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.242e-05/0.9548, allocations: 14.2 kB / 1.345 GB, free: 12.93 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.432e-05/0.9548, allocations: 321.3 kB / 1.345 GB, free: 12.61 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002268/0.955, allocations: 42.55 kB / 1.345 GB, free: 12.61 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002145/0.9553, allocations: 47.39 kB / 1.345 GB, free: 12.6 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004019/0.9557, allocations: 88.95 kB / 1.345 GB, free: 12.58 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.9557, allocations: 0 / 1.345 GB, free: 12.58 MB / 1.061 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.00046/0.9561, allocations: 127.1 kB / 1.345 GB, free: 12.53 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.9561, allocations: 5.5 kB / 1.345 GB, free: 12.53 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.9561, allocations: 4.547 kB / 1.345 GB, free: 12.53 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.9562, allocations: 5.406 kB / 1.345 GB, free: 12.52 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.9563, allocations: 20.2 kB / 1.345 GB, free: 12.52 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.9563, allocations: 1.375 kB / 1.345 GB, free: 12.52 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.9565, allocations: 15.91 kB / 1.345 GB, free: 12.52 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.9565, allocations: 2.172 kB / 1.345 GB, free: 12.52 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 5.381e-05/0.9565, allocations: 116.5 kB / 1.346 GB, free: 12.4 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.926e-05/0.9565, allocations: 2.172 kB / 1.346 GB, free: 12.4 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3e-05/0.9566, allocations: 7.781 kB / 1.346 GB, free: 12.39 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.9566, allocations: 1.375 kB / 1.346 GB, free: 12.39 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.9566, allocations: 0 / 1.346 GB, free: 12.39 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.9566, allocations: 0.6094 kB / 1.346 GB, free: 12.39 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001402/0.9567, allocations: 176.5 kB / 1.346 GB, free: 12.19 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.9567, allocations: 0 / 1.346 GB, free: 12.19 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000142/0.9569, allocations: 25.72 kB / 1.346 GB, free: 12.19 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.9569, allocations: 1.375 kB / 1.346 GB, free: 12.19 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.9569, allocations: 0.7969 kB / 1.346 GB, free: 12.19 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.9569, allocations: 1.375 kB / 1.346 GB, free: 12.19 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.9569, allocations: 0 / 1.346 GB, free: 12.19 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004706/0.9574, allocations: 223.5 kB / 1.346 GB, free: 12.04 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.935e-05/0.9574, allocations: 77.91 kB / 1.346 GB, free: 11.94 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.701e-05/0.9574, allocations: 5.375 kB / 1.346 GB, free: 11.94 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.9575, allocations: 20.36 kB / 1.346 GB, free: 11.93 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.927e-05/0.9576, allocations: 8.047 kB / 1.346 GB, free: 11.93 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.802e-06/0.9576, allocations: 0.7969 kB / 1.346 GB, free: 11.93 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.583e-05/0.9576, allocations: 84.72 kB / 1.346 GB, free: 11.85 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.9576, allocations: 1.375 kB / 1.346 GB, free: 11.85 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002444/0.9579, allocations: 14.12 kB / 1.346 GB, free: 11.85 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.0007123/0.9586, allocations: 0.7707 MB / 1.347 GB, free: 11.15 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005066/0.9591, allocations: 95.91 kB / 1.347 GB, free: 11.14 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.9591, allocations: 0 / 1.347 GB, free: 11.14 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002324/0.9593, allocations: 49.34 kB / 1.347 GB, free: 11.13 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003151/0.9596, allocations: 5.922 kB / 1.347 GB, free: 11.13 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007117/0.9603, allocations: 210.3 kB / 1.347 GB, free: 10.96 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000106/0.9604, allocations: 0.676 MB / 1.348 GB, free: 10.26 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.181e-05/0.9605, allocations: 8.188 kB / 1.348 GB, free: 10.26 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.804e-05/0.9606, allocations: 15.3 kB / 1.348 GB, free: 10.25 MB / 1.061 GB Notification: Performance of SimCode: time 3.21e-07/0.9606, allocations: 3.938 kB / 1.348 GB, free: 10.24 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01799/0.9785, allocations: 1.73 MB / 1.35 GB, free: 9.84 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.472/9.45, allocations: 14.95 kB / 1.35 GB, free: 9.828 MB / 1.061 GB " [Timeout remaining time 290] (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: 16.340268491010647]