Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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.001352/0.001352, allocations: 80.3 kB / 19.18 MB, free: 2.516 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.001497/0.001497, allocations: 161.9 kB / 22.46 MB, free: 5.375 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.43/1.43, allocations: 177.2 MB / 202.8 MB, free: 9.176 MB / 190.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 2.965/2.965, allocations: 389 MB / 0.633 GB, free: 1.016 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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: translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 1 GB, free: 7.246 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.522e-05/2.687e-05, allocations: 2.281 kB / 1 GB, free: 7.242 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001635/0.001662, allocations: 0.6164 MB / 1.001 GB, free: 6.633 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002164/0.003826, allocations: 1.423 MB / 1.002 GB, free: 5.191 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.808e-05/0.003854, allocations: 0 / 1.002 GB, free: 5.191 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 1.551e-05/0.003869, allocations: 3.938 kB / 1.002 GB, free: 5.188 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 3.214e-05/0.003901, allocations: 0 / 1.002 GB, free: 5.188 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005689/0.00447, allocations: 143.4 kB / 1.002 GB, free: 5.047 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 7.531e-05/0.004546, allocations: 31.97 kB / 1.002 GB, free: 5.016 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.312e-05/0.004589, allocations: 11.92 kB / 1.002 GB, free: 5.004 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 6.19e-05/0.004651, allocations: 15.98 kB / 1.002 GB, free: 4.988 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.582e-05/0.004736, allocations: 19.97 kB / 1.002 GB, free: 4.969 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.004756, allocations: 0 / 1.002 GB, free: 4.969 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004456/0.005202, allocations: 255.4 kB / 1.003 GB, free: 4.719 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.161e-05/0.005224, allocations: 7.984 kB / 1.003 GB, free: 4.711 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.825e-05/0.005262, allocations: 15.97 kB / 1.003 GB, free: 4.695 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003723/0.005634, allocations: 195.5 kB / 1.003 GB, free: 4.504 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.005639, allocations: 7.938 kB / 1.003 GB, free: 4.496 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.022e-06/0.00564, allocations: 0 / 1.003 GB, free: 4.496 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.005644, allocations: 0 / 1.003 GB, free: 4.496 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005957/0.00624, allocations: 289.9 kB / 1.003 GB, free: 4.184 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.006291, allocations: 12.03 kB / 1.003 GB, free: 4.172 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004988/0.00679, allocations: 64.81 kB / 1.003 GB, free: 4.109 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/0.006901, allocations: 113.8 kB / 1.003 GB, free: 3.973 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.006924, allocations: 4.375 kB / 1.003 GB, free: 3.969 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.113e-05/0.006945, allocations: 4.375 kB / 1.003 GB, free: 3.965 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003114/0.007256, allocations: 91.91 kB / 1.003 GB, free: 3.863 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.007265, allocations: 4.188 kB / 1.003 GB, free: 3.859 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.007278, allocations: 384 / 1.003 GB, free: 3.859 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.007288, allocations: 3.938 kB / 1.003 GB, free: 3.855 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000324/0.007612, allocations: 63.92 kB / 1.003 GB, free: 3.793 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000192/0.007804, allocations: 125.1 kB / 1.004 GB, free: 3.641 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006539/0.008458, allocations: 126.6 kB / 1.004 GB, free: 3.508 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.008646, allocations: 40.91 kB / 1.004 GB, free: 3.465 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004722/0.009118, allocations: 79.89 kB / 1.004 GB, free: 3.387 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.009147, allocations: 30.56 kB / 1.004 GB, free: 3.348 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=4): time 1.343e-06/0.009149, allocations: 4 kB / 1.004 GB, free: 3.344 MB / 0.9512 GB Notification: Performance of matching and sorting (n=5): time 0.001294/0.01044, allocations: 333.1 kB / 1.004 GB, free: 2.984 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.873e-05/0.01049, allocations: 55.34 kB / 1.004 GB, free: 2.918 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.022e-05/0.01057, allocations: 101.8 kB / 1.004 GB, free: 2.809 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.654e-05/0.0106, allocations: 25.7 kB / 1.004 GB, free: 2.777 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.737e-05/0.01064, allocations: 80.14 kB / 1.004 GB, free: 2.695 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.312e-05/0.01067, allocations: 15.86 kB / 1.004 GB, free: 2.68 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.118e-05/0.01072, allocations: 25.66 kB / 1.004 GB, free: 2.648 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.01086, allocations: 314.8 kB / 1.005 GB, free: 2.332 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/0.01105, allocations: 40.09 kB / 1.005 GB, free: 2.293 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.01121, allocations: 31.97 kB / 1.005 GB, free: 2.262 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003319/0.01155, allocations: 76.8 kB / 1.005 GB, free: 2.184 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.32e-07/0.01155, allocations: 0 / 1.005 GB, free: 2.184 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004049/0.01195, allocations: 113.6 kB / 1.005 GB, free: 2.066 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.01197, allocations: 4 kB / 1.005 GB, free: 2.062 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.01197, allocations: 0 / 1.005 GB, free: 2.062 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.01198, allocations: 0 / 1.005 GB, free: 2.062 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.01215, allocations: 35.84 kB / 1.005 GB, free: 2.027 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.01216, allocations: 3.938 kB / 1.005 GB, free: 2.023 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.01226, allocations: 11.98 kB / 1.005 GB, free: 2.012 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.01228, allocations: 4 kB / 1.005 GB, free: 2.008 MB / 0.9512 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 (6): * Single equations (assignments): 6 * 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 8.96e-05/0.01237, allocations: 110.4 kB / 1.005 GB, free: 1.891 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.566e-05/0.01238, allocations: 4 kB / 1.005 GB, free: 1.887 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004973/0.01288, allocations: 133.4 kB / 1.005 GB, free: 1.746 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.01288, allocations: 0 / 1.005 GB, free: 1.746 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.01289, allocations: 3.938 kB / 1.005 GB, free: 1.742 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.01289, allocations: 4 kB / 1.005 GB, free: 1.738 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001295/0.01302, allocations: 117.6 kB / 1.005 GB, free: 1.594 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.01302, allocations: 0 / 1.005 GB, free: 1.594 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.0132, allocations: 31.92 kB / 1.005 GB, free: 1.562 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.0132, allocations: 0 / 1.005 GB, free: 1.562 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.01321, allocations: 3.984 kB / 1.005 GB, free: 1.559 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.01321, allocations: 4 kB / 1.005 GB, free: 1.555 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.01322, allocations: 3.938 kB / 1.005 GB, free: 1.551 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006253/0.01384, allocations: 184.9 kB / 1.006 GB, free: 1.352 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.77e-05/0.01389, allocations: 7.922 kB / 1.006 GB, free: 1.344 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.469e-05/0.01391, allocations: 8.031 kB / 1.006 GB, free: 1.336 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001281/0.01404, allocations: 16.05 kB / 1.006 GB, free: 1.32 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.766e-05/0.01407, allocations: 7.922 kB / 1.006 GB, free: 1.312 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.01408, allocations: 4 kB / 1.006 GB, free: 1.309 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.952e-05/0.01412, allocations: 75.28 kB / 1.006 GB, free: 1.234 MB / 0.9512 GB Notification: Performance of sort global known variables: time 6e-08/0.01412, allocations: 0 / 1.006 GB, free: 1.234 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002464/0.01437, allocations: 35.92 kB / 1.006 GB, free: 1.199 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0002268/0.01459, allocations: 127 kB / 1.006 GB, free: 1.066 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004253/0.01502, allocations: 84.02 kB / 1.006 GB, free: 0.9844 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.01502, allocations: 0 / 1.006 GB, free: 0.9844 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001839/0.0152, allocations: 47.91 kB / 1.006 GB, free: 0.9375 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001526/0.01536, allocations: 4 kB / 1.006 GB, free: 0.9336 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006631/0.01602, allocations: 176.8 kB / 1.006 GB, free: 0.7344 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.464e-05/0.01609, allocations: 67.28 kB / 1.006 GB, free: 0.6484 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 9.082e-05/0.01618, allocations: 16 kB / 1.006 GB, free: 0.6328 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.153e-05/0.01623, allocations: 12.5 kB / 1.006 GB, free: 0.6211 MB / 0.9512 GB Notification: Performance of SimCode: time 4.31e-07/0.01623, allocations: 4 kB / 1.006 GB, free: 0.6172 MB / 0.9512 GB Notification: Performance of Templates: time 0.004044/0.02027, allocations: 1.19 MB / 1.007 GB, free: 15.43 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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: 7.934387564659119]