Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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.001114/0.001114, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001478/0.002592, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.001073/0.001073, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00128/0.002353, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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 0.9401/0.9401, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0945/1.035, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.385/2.385, allocations: 446.7 MB / 0.6745 GB, free: 6.211 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2521/2.637, allocations: 145.9 MB / 0.817 GB, free: 4.215 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-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: translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 0.8184 GB, free: 2.836 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.79e-05/1.9e-05, allocations: 6.312 kB / 0.8184 GB, free: 2.828 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001294/0.001313, allocations: 0.8411 MB / 0.8192 GB, free: 1.984 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001357/0.00267, allocations: 1.509 MB / 0.8207 GB, free: 468 kB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.839e-05/0.002698, allocations: 0 / 0.8207 GB, free: 468 kB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 2.319e-05/0.002721, allocations: 3.938 kB / 0.8207 GB, free: 464 kB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 2.244e-05/0.002744, allocations: 3.938 kB / 0.8207 GB, free: 460 kB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002976/0.003041, allocations: 139.4 kB / 0.8208 GB, free: 320 kB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 8.28e-05/0.003124, allocations: 43.92 kB / 0.8208 GB, free: 276 kB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 3.708e-05/0.003161, allocations: 4 kB / 0.8208 GB, free: 272 kB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.003274, allocations: 47.88 kB / 0.8209 GB, free: 224 kB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 6.081e-05/0.003335, allocations: 23.95 kB / 0.8209 GB, free: 200 kB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.788e-05/0.003352, allocations: 4 kB / 0.8209 GB, free: 196 kB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003222/0.003675, allocations: 267.5 kB / 0.8212 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.751e-05/0.003692, allocations: 11.94 kB / 0.8212 GB, free: 15.91 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.07e-05/0.003713, allocations: 8 kB / 0.8212 GB, free: 15.91 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002511/0.003964, allocations: 183.5 kB / 0.8214 GB, free: 15.73 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.964e-05/0.003984, allocations: 0 / 0.8214 GB, free: 15.73 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.322e-06/0.003985, allocations: 3.938 kB / 0.8214 GB, free: 15.73 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.05e-05/0.004005, allocations: 0 / 0.8214 GB, free: 15.73 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005116/0.004517, allocations: 328 kB / 0.8217 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.004549, allocations: 8.625 kB / 0.8217 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002558/0.004805, allocations: 134 kB / 0.8218 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.861e-05/0.004893, allocations: 113.7 kB / 0.8219 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.004912, allocations: 384 / 0.8219 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.285e-05/0.004935, allocations: 20.36 kB / 0.822 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/0.005127, allocations: 151 kB / 0.8221 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.005137, allocations: 192 / 0.8221 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.005148, allocations: 4.375 kB / 0.8221 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.005155, allocations: 7.938 kB / 0.8221 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.954e-05/0.005204, allocations: 19.11 kB / 0.8221 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003431/0.005547, allocations: 216.1 kB / 0.8223 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001324/0.00568, allocations: 62.48 kB / 0.8224 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.268e-05/0.005702, allocations: 16.86 kB / 0.8224 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.005718, allocations: 3.938 kB / 0.8224 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.00574, allocations: 30.56 kB / 0.8224 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 8.82e-07/0.00574, allocations: 0 / 0.8224 GB, free: 14.52 MB / 0.8073 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=11): time 0.007523/0.01326, allocations: 2.153 MB / 0.8245 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.0133, allocations: 51.41 kB / 0.8246 GB, free: 12.24 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003186/0.01362, allocations: 98.72 kB / 0.8247 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/0.01365, allocations: 33.7 kB / 0.8247 GB, free: 12.09 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.024e-05/0.01368, allocations: 88.08 kB / 0.8248 GB, free: 12 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.176e-05/0.01373, allocations: 43.62 kB / 0.8248 GB, free: 11.96 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.01384, allocations: 65.56 kB / 0.8249 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.802e-05/0.01391, allocations: 318.8 kB / 0.8252 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.01402, allocations: 95.92 kB / 0.8253 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.01413, allocations: 100 kB / 0.8254 GB, free: 11.38 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002534/0.01438, allocations: 228.6 kB / 0.8256 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.11e-07/0.01438, allocations: 0 / 0.8256 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003072/0.01469, allocations: 245.5 kB / 0.8258 GB, free: 10.91 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.01471, allocations: 8 kB / 0.8259 GB, free: 10.9 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.01471, allocations: 0 / 0.8259 GB, free: 10.9 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.01472, allocations: 0 / 0.8259 GB, free: 10.9 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003711/0.01509, allocations: 131.6 kB / 0.826 GB, free: 10.77 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.915e-06/0.0151, allocations: 0 / 0.826 GB, free: 10.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/0.01529, allocations: 31.97 kB / 0.826 GB, free: 10.74 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.112e-05/0.01532, allocations: 19.92 kB / 0.826 GB, free: 10.72 MB / 0.8073 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 (13): * Single equations (assignments): 13 * 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.748e-05/0.01542, allocations: 117.8 kB / 0.8261 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.201e-05/0.01547, allocations: 4 kB / 0.8261 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.791e-05/0.01551, allocations: 24.05 kB / 0.8262 GB, free: 10.57 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.01551, allocations: 0 / 0.8262 GB, free: 10.57 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.01551, allocations: 0 / 0.8262 GB, free: 10.57 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.01552, allocations: 0 / 0.8262 GB, free: 10.57 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005609/0.01608, allocations: 474.5 kB / 0.8266 GB, free: 10.08 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.01608, allocations: 3.984 kB / 0.8266 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003663/0.01645, allocations: 119.7 kB / 0.8267 GB, free: 9.957 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 7.041e-05/0.01652, allocations: 24.09 kB / 0.8268 GB, free: 9.934 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.01652, allocations: 3.984 kB / 0.8268 GB, free: 9.93 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.01655, allocations: 15.94 kB / 0.8268 GB, free: 9.914 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.175e-06/0.01655, allocations: 4.078 kB / 0.8268 GB, free: 9.91 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.01655, allocations: 7.984 kB / 0.8268 GB, free: 9.902 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004947/0.01705, allocations: 461.7 kB / 0.8272 GB, free: 9.438 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.11e-05/0.01709, allocations: 4 kB / 0.8272 GB, free: 9.434 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.01732, allocations: 31.95 kB / 0.8273 GB, free: 9.402 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.299e-05/0.01737, allocations: 19.92 kB / 0.8273 GB, free: 9.383 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.051e-05/0.0174, allocations: 23.94 kB / 0.8273 GB, free: 9.359 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.28e-05/0.01741, allocations: 12.89 kB / 0.8273 GB, free: 9.344 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.01741, allocations: 0 / 0.8273 GB, free: 9.344 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002217/0.01763, allocations: 59.92 kB / 0.8274 GB, free: 9.285 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * 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 (11): * Single equations (assignments): 11 * 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.0001594/0.01779, allocations: 84.36 kB / 0.8275 GB, free: 9.195 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003055/0.0181, allocations: 240.6 kB / 0.8277 GB, free: 8.957 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.0181, allocations: 0 / 0.8277 GB, free: 8.957 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001453/0.01825, allocations: 136.6 kB / 0.8278 GB, free: 8.82 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001935/0.01844, allocations: 62.23 kB / 0.8279 GB, free: 8.762 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.01992, allocations: 0.5663 MB / 0.8284 GB, free: 8.168 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.001e-05/0.01996, allocations: 67.34 kB / 0.8285 GB, free: 8.082 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.0002962/0.02025, allocations: 92.72 kB / 0.8286 GB, free: 7.992 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002574/0.02051, allocations: 99.23 kB / 0.8287 GB, free: 7.895 MB / 0.8073 GB Notification: Performance of SimCode: time 9.92e-07/0.02051, allocations: 0 / 0.8287 GB, free: 7.895 MB / 0.8073 GB Notification: Performance of Templates: time 0.005174/0.02569, allocations: 3.883 MB / 0.8325 GB, free: 4.016 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.276426374912262]