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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009355/0.009355, allocations: 100.3 kB / 15.73 MB, free: 5.996 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.002209/0.002209, allocations: 192.7 kB / 16.67 MB, free: 5.918 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.467/1.467, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.623/2.623, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 67.89 kB / 1.054 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7824/0.7838, allocations: 157.4 MB / 1.207 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.InverseXRegularized): time 0.002653/0.7865, allocations: 1.44 MB / 1.209 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00141/0.7879, allocations: 0.7866 MB / 1.209 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.487e-05/0.788, allocations: 0 / 1.209 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.743e-05/0.7881, allocations: 7.922 kB / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.302e-05/0.7881, allocations: 3.938 kB / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005954/0.7887, allocations: 127.5 kB / 1.21 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.383e-05/0.7888, allocations: 31.92 kB / 1.21 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.789, allocations: 7.984 kB / 1.21 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.923e-05/0.789, allocations: 11.98 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.27e-05/0.7891, allocations: 27.91 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.81e-05/0.7891, allocations: 0 / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005853/0.7897, allocations: 315.3 kB / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.941e-05/0.7898, allocations: 11.97 kB / 1.21 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.609e-05/0.7898, allocations: 15.92 kB / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004089/0.7902, allocations: 197.9 kB / 1.21 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/0.7903, allocations: 0 / 1.21 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.893e-06/0.7903, allocations: 0 / 1.21 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.7903, allocations: 3.938 kB / 1.21 GB, free: 10.55 MB / 0.9356 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.0006115/0.7909, allocations: 375.3 kB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.7909, allocations: 16.03 kB / 1.211 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.838e-05/0.791, allocations: 34.75 kB / 1.211 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005469/0.7915, allocations: 68.84 kB / 1.211 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.7917, allocations: 164.3 kB / 1.211 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.7917, allocations: 384 / 1.211 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.385e-05/0.7917, allocations: 4.375 kB / 1.211 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003126/0.792, allocations: 93.55 kB / 1.211 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.7921, allocations: 3.938 kB / 1.211 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.7921, allocations: 3.984 kB / 1.211 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.7921, allocations: 0 / 1.211 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004526/0.7925, allocations: 87.91 kB / 1.211 GB, free: 9.617 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006022/0.7932, allocations: 300.8 kB / 1.211 GB, free: 9.273 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004142/0.7936, allocations: 98.48 kB / 1.211 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002237/0.7938, allocations: 48.88 kB / 1.211 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.7939, allocations: 4 kB / 1.211 GB, free: 9.113 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.7939, allocations: 34.5 kB / 1.211 GB, free: 9.07 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.332e-06/0.7939, allocations: 4 kB / 1.211 GB, free: 9.066 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0007808/0.7947, allocations: 161.5 kB / 1.212 GB, free: 8.902 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.412e-05/0.7947, allocations: 51.41 kB / 1.212 GB, free: 8.84 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.625e-05/0.7948, allocations: 105.8 kB / 1.212 GB, free: 8.727 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.7948, allocations: 25.7 kB / 1.212 GB, free: 8.695 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.817e-05/0.7949, allocations: 88.27 kB / 1.212 GB, free: 8.605 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.146e-05/0.7949, allocations: 7.906 kB / 1.212 GB, free: 8.598 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.625e-05/0.795, allocations: 9.719 kB / 1.212 GB, free: 8.582 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.7951, allocations: 326.8 kB / 1.212 GB, free: 8.254 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002193/0.7953, allocations: 43.95 kB / 1.212 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/0.7955, allocations: 47.89 kB / 1.212 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004008/0.7959, allocations: 88.83 kB / 1.212 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.7959, allocations: 0 / 1.212 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005022/0.7964, allocations: 125.6 kB / 1.212 GB, free: 7.945 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.7965, allocations: 4 kB / 1.212 GB, free: 7.941 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.7965, allocations: 4.031 kB / 1.212 GB, free: 7.938 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.7965, allocations: 3.938 kB / 1.213 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001728/0.7967, allocations: 19.97 kB / 1.213 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.7967, allocations: 4 kB / 1.213 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.7969, allocations: 15.89 kB / 1.213 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.407e-06/0.7969, allocations: 0 / 1.213 GB, free: 7.895 MB / 0.9356 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.366e-05/0.797, allocations: 125.7 kB / 1.213 GB, free: 7.762 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.018e-05/0.797, allocations: 0 / 1.213 GB, free: 7.762 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.296e-05/0.7971, allocations: 7.125 kB / 1.213 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-06/0.7971, allocations: 7.938 kB / 1.213 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.7971, allocations: 0 / 1.213 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.7971, allocations: 0 / 1.213 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001781/0.7973, allocations: 177.5 kB / 1.213 GB, free: 7.523 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.7973, allocations: 0 / 1.213 GB, free: 7.523 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001501/0.7974, allocations: 23.97 kB / 1.213 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.7974, allocations: 0 / 1.213 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.7975, allocations: 4 kB / 1.213 GB, free: 7.496 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.7975, allocations: 0 / 1.213 GB, free: 7.496 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.788e-06/0.7975, allocations: 3.984 kB / 1.213 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000528/0.798, allocations: 223.6 kB / 1.213 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.909e-05/0.7981, allocations: 81.02 kB / 1.213 GB, free: 7.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/0.7981, allocations: 8.031 kB / 1.213 GB, free: 7.152 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.7982, allocations: 19.97 kB / 1.213 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.008e-05/0.7983, allocations: 0 / 1.213 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.7983, allocations: 7.938 kB / 1.213 GB, free: 7.125 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.819e-05/0.7984, allocations: 87.27 kB / 1.213 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7984, allocations: 0 / 1.213 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002616/0.7986, allocations: 12 kB / 1.213 GB, free: 7.027 MB / 0.9356 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.0008751/0.7995, allocations: 0.7553 MB / 1.214 GB, free: 6.242 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005053/0.8, allocations: 95.92 kB / 1.214 GB, free: 6.148 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.8001, allocations: 4 kB / 1.214 GB, free: 6.145 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002435/0.8003, allocations: 51.95 kB / 1.214 GB, free: 6.094 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003387/0.8007, allocations: 4 kB / 1.214 GB, free: 6.09 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007607/0.8014, allocations: 195.1 kB / 1.214 GB, free: 5.855 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.8017, allocations: 0.6767 MB / 1.215 GB, free: 5.152 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.767e-05/0.8017, allocations: 11.98 kB / 1.215 GB, free: 5.141 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.409e-05/0.8018, allocations: 11.44 kB / 1.215 GB, free: 5.129 MB / 0.9356 GB Notification: Performance of SimCode: time 2.6e-07/0.8018, allocations: 0 / 1.215 GB, free: 5.129 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01718/0.819, allocations: 1.705 MB / 1.217 GB, free: 3.523 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.751/8.57, allocations: 4.062 kB / 1.217 GB, free: 3.52 MB / 0.9356 GB (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 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_InverseXRegularized.fmu > 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