Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001428/0.001428, allocations: 80.41 kB / 20.23 MB, free: 4.199 MB / 18.57 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.001519/0.001519, allocations: 161.7 kB / 23.55 MB, free: 0.8906 MB / 18.57 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.461/1.461, allocations: 177.1 MB / 203.9 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.885/2.885, allocations: 377.8 MB / 0.6232 GB, free: 8.551 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_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_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 4.699e-06/4.699e-06, allocations: 4 kB / 0.8109 GB, free: 2.074 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.339e-05/2.809e-05, allocations: 2.312 kB / 0.8109 GB, free: 2.07 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001613/0.001641, allocations: 0.6151 MB / 0.8115 GB, free: 1.473 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.002166/0.003807, allocations: 1.424 MB / 0.8129 GB, free: 32 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.146e-05/0.003828, allocations: 0.7812 kB / 0.8129 GB, free: 32 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 1.343e-05/0.003842, allocations: 3.938 kB / 0.8129 GB, free: 28 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 3.292e-05/0.003875, allocations: 1.688 kB / 0.8129 GB, free: 28 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.000523/0.004398, allocations: 145 kB / 0.813 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 6.58e-05/0.004463, allocations: 28.47 kB / 0.813 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 2.923e-05/0.004493, allocations: 1.031 kB / 0.813 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 6.505e-05/0.004558, allocations: 19.98 kB / 0.8131 GB, free: 15.84 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 7.897e-05/0.004637, allocations: 27.88 kB / 0.8131 GB, free: 15.81 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.808e-05/0.004655, allocations: 5.594 kB / 0.8131 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004237/0.005078, allocations: 251.4 kB / 0.8133 GB, free: 15.56 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.737e-05/0.005096, allocations: 8 kB / 0.8133 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.638e-05/0.005122, allocations: 3.984 kB / 0.8133 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003508/0.005473, allocations: 206 kB / 0.8135 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.005475, allocations: 0 / 0.8135 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of FrontEnd: time 6.51e-07/0.005476, allocations: 0 / 0.8135 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.276e-06/0.005479, allocations: 0 / 0.8135 GB, free: 15.35 MB / 0.7761 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.0005374/0.006016, allocations: 290 kB / 0.8138 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.006049, allocations: 8.031 kB / 0.8138 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005246/0.006574, allocations: 72.88 kB / 0.8139 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.006685, allocations: 110.5 kB / 0.814 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.0067, allocations: 384 / 0.814 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.792e-05/0.006727, allocations: 5.531 kB / 0.814 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002863/0.007014, allocations: 101.3 kB / 0.8141 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.007024, allocations: 4.125 kB / 0.8141 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.007039, allocations: 6.125 kB / 0.8141 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.007045, allocations: 3.938 kB / 0.8141 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003213/0.007367, allocations: 62.44 kB / 0.8142 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003442/0.007711, allocations: 122 kB / 0.8143 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006325/0.008343, allocations: 119.5 kB / 0.8144 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001775/0.008521, allocations: 42.42 kB / 0.8144 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004525/0.008973, allocations: 78.67 kB / 0.8145 GB, free: 14.26 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/0.009013, allocations: 42.5 kB / 0.8146 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.009014, allocations: 0 / 0.8146 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of matching and sorting (n=5): time 0.001237/0.01025, allocations: 328.4 kB / 0.8149 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.01031, allocations: 56.34 kB / 0.8149 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.729e-05/0.01039, allocations: 95.73 kB / 0.815 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.705e-05/0.01042, allocations: 29.7 kB / 0.815 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.205e-05/0.01047, allocations: 80.14 kB / 0.8151 GB, free: 13.58 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.06e-05/0.0105, allocations: 11.91 kB / 0.8151 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.673e-05/0.01056, allocations: 25.66 kB / 0.8152 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001791/0.01074, allocations: 320.2 kB / 0.8155 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.01091, allocations: 32.97 kB / 0.8155 GB, free: 13.18 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.01108, allocations: 38.52 kB / 0.8155 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003459/0.01142, allocations: 75.23 kB / 0.8156 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.01143, allocations: 8.125 kB / 0.8156 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000407/0.01183, allocations: 113.6 kB / 0.8157 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.01185, allocations: 10.66 kB / 0.8157 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.01185, allocations: 0 / 0.8157 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.01187, allocations: 0 / 0.8157 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.01203, allocations: 27.91 kB / 0.8157 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.389e-06/0.01204, allocations: 0 / 0.8157 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.01215, allocations: 11.98 kB / 0.8158 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.01216, allocations: 4 kB / 0.8158 GB, free: 12.9 MB / 0.7761 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 0.0001097/0.01227, allocations: 113.8 kB / 0.8159 GB, free: 12.78 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.59e-05/0.01229, allocations: 7.984 kB / 0.8159 GB, free: 12.77 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004855/0.01278, allocations: 129.4 kB / 0.816 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.01278, allocations: 0 / 0.816 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.01279, allocations: 3.938 kB / 0.816 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.01279, allocations: 7.984 kB / 0.816 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001361/0.01293, allocations: 113.3 kB / 0.8161 GB, free: 12.49 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.01293, allocations: 3.938 kB / 0.8161 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001656/0.01309, allocations: 23.97 kB / 0.8162 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.0131, allocations: 0 / 0.8162 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.01311, allocations: 0 / 0.8162 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.01311, allocations: 4 kB / 0.8162 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.01311, allocations: 0 / 0.8162 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006387/0.01375, allocations: 192.9 kB / 0.8163 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 5.173e-05/0.0138, allocations: 15.95 kB / 0.8164 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/0.01382, allocations: 4.172 kB / 0.8164 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001276/0.01395, allocations: 15.98 kB / 0.8164 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.912e-05/0.01398, allocations: 7.938 kB / 0.8164 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.876e-06/0.01398, allocations: 0 / 0.8164 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.985e-05/0.01404, allocations: 87.27 kB / 0.8165 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.01404, allocations: 0 / 0.8165 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.000245/0.01429, allocations: 28.09 kB / 0.8165 GB, free: 12.09 MB / 0.7761 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.0002258/0.01451, allocations: 129.3 kB / 0.8166 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0004078/0.01492, allocations: 87.86 kB / 0.8167 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.01492, allocations: 0 / 0.8167 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.000195/0.01512, allocations: 39.95 kB / 0.8167 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001598/0.01528, allocations: 10.23 kB / 0.8167 GB, free: 11.83 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006745/0.01595, allocations: 188.4 kB / 0.8169 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.948e-05/0.01601, allocations: 59.36 kB / 0.817 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0001162/0.01613, allocations: 27.97 kB / 0.817 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.82e-05/0.01619, allocations: 12.5 kB / 0.817 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of SimCode: time 4.11e-07/0.01619, allocations: 0 / 0.817 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of Templates: time 0.004249/0.02044, allocations: 1.224 MB / 0.8182 GB, free: 10.29 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.729524806025438]