Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.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.001773/0.001773, 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.002033/0.002033, allocations: 161.6 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.624/1.624, allocations: 177.1 MB / 203.9 MB, free: 5.605 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 3.121/3.121, allocations: 377.8 MB / 0.6232 GB, free: 8.523 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.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.534e-06/2.534e-06, allocations: 0 / 0.8109 GB, free: 2.039 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.943e-05/3.196e-05, allocations: 7.125 kB / 0.8109 GB, free: 2.031 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002459/0.002491, allocations: 1.015 MB / 0.8119 GB, free: 1.031 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001888/0.004379, allocations: 1.035 MB / 0.8129 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.004519, allocations: 4 kB / 0.8129 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001666/0.004685, allocations: 20.41 kB / 0.8129 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 8.851e-05/0.004774, allocations: 20.27 kB / 0.8129 GB, free: 15.94 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003723/0.005146, allocations: 76.94 kB / 0.813 GB, free: 15.87 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002721/0.005418, allocations: 172.1 kB / 0.8132 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.005588, allocations: 61.11 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001792/0.005767, allocations: 103.8 kB / 0.8133 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.0059, allocations: 62.19 kB / 0.8134 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.226e-05/0.005943, allocations: 16 kB / 0.8134 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.28e-05/0.006005, allocations: 20 kB / 0.8134 GB, free: 15.44 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 5.747e-05/0.006063, allocations: 39.83 kB / 0.8135 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 7.932e-05/0.006142, allocations: 51.89 kB / 0.8135 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003908/0.006533, allocations: 203.2 kB / 0.8137 GB, free: 15.15 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.006536, allocations: 1.562 kB / 0.8137 GB, free: 15.15 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.522e-06/0.006538, allocations: 0 / 0.8137 GB, free: 15.15 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.006546, allocations: 0 / 0.8137 GB, free: 15.15 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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.001012/0.007558, allocations: 423.5 kB / 0.8141 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.007595, allocations: 8.562 kB / 0.8141 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001622/0.007757, allocations: 38.22 kB / 0.8142 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/0.008089, allocations: 162 kB / 0.8143 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.619e-05/0.008116, allocations: 16.38 kB / 0.8143 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.251e-05/0.008168, allocations: 13.53 kB / 0.8143 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003888/0.008557, allocations: 177.2 kB / 0.8145 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.008567, allocations: 1.156 kB / 0.8145 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.264e-05/0.00859, allocations: 8.125 kB / 0.8145 GB, free: 14.26 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.008597, allocations: 4 kB / 0.8145 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003216/0.008919, allocations: 109.9 kB / 0.8146 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.01015, allocations: 453.6 kB / 0.8151 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004473/0.01059, allocations: 128.7 kB / 0.8152 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001981/0.01079, allocations: 72.83 kB / 0.8152 GB, free: 13.47 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/0.01082, allocations: 4 kB / 0.8153 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003116/0.01113, allocations: 156.5 kB / 0.8154 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=19): time 1.663e-06/0.01114, allocations: 3.938 kB / 0.8154 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of matching and sorting (n=19): time 0.0006615/0.0118, allocations: 235.7 kB / 0.8156 GB, free: 13.06 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.01185, allocations: 51.94 kB / 0.8157 GB, free: 13 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.012, allocations: 140.4 kB / 0.8158 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 5.309e-05/0.01206, allocations: 37.69 kB / 0.8158 GB, free: 12.81 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.01216, allocations: 117 kB / 0.816 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 7.933e-05/0.01224, allocations: 72.23 kB / 0.816 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.075e-05/0.01232, allocations: 41.7 kB / 0.8161 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001868/0.01251, allocations: 323.7 kB / 0.8164 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002247/0.01274, allocations: 67.89 kB / 0.8164 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000237/0.01297, allocations: 86.95 kB / 0.8165 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003996/0.01337, allocations: 154.2 kB / 0.8167 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.01337, allocations: 0 / 0.8167 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005677/0.01394, allocations: 216.5 kB / 0.8169 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.01396, allocations: 4 kB / 0.8169 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.01396, allocations: 1.406 kB / 0.8169 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.01398, allocations: 0 / 0.8169 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/0.0142, allocations: 43.91 kB / 0.8169 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.01421, allocations: 2.938 kB / 0.8169 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.01436, allocations: 23.94 kB / 0.817 GB, free: 11.65 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.574e-05/0.01437, allocations: 4 kB / 0.817 GB, free: 11.65 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,lesThr.lesHys.y,$PRE.lesThr.lesHys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001432/0.01452, allocations: 133.8 kB / 0.8171 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.919e-05/0.01456, allocations: 19.91 kB / 0.8171 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005013/0.01506, allocations: 195.7 kB / 0.8173 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.01506, allocations: 5.031 kB / 0.8173 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.01507, allocations: 0 / 0.8173 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.01507, allocations: 7.969 kB / 0.8173 GB, free: 11.28 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009408/0.01602, allocations: 0.4979 MB / 0.8178 GB, free: 10.73 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.01602, allocations: 7.984 kB / 0.8178 GB, free: 10.72 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00019/0.01621, allocations: 36.8 kB / 0.8178 GB, free: 10.69 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.01622, allocations: 0 / 0.8178 GB, free: 10.69 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.247e-05/0.01624, allocations: 9.344 kB / 0.8178 GB, free: 10.68 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.56e-06/0.01625, allocations: 4 kB / 0.8178 GB, free: 10.68 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/0.01625, allocations: 7.922 kB / 0.8179 GB, free: 10.67 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007251/0.01698, allocations: 383.8 kB / 0.8182 GB, free: 10.26 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 3.387e-05/0.01701, allocations: 28.44 kB / 0.8182 GB, free: 10.23 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.178e-05/0.01704, allocations: 8 kB / 0.8183 GB, free: 10.23 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.01721, allocations: 22.66 kB / 0.8183 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.021e-05/0.01729, allocations: 23.95 kB / 0.8183 GB, free: 10.18 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.01731, allocations: 8 kB / 0.8183 GB, free: 10.18 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 9.881e-05/0.01741, allocations: 108 kB / 0.8184 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.01741, allocations: 0 / 0.8184 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003058/0.01772, allocations: 35.94 kB / 0.8184 GB, free: 10.04 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der2.x,intWitRes.y,der1.x) * Number of discrete variables: 2 ($whenCondition1,lesThr.lesHys.y) * Number of discrete states: 1 (lesThr.lesHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.000175/0.01789, allocations: 109.9 kB / 0.8185 GB, free: 9.922 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0004887/0.01838, allocations: 149.9 kB / 0.8187 GB, free: 9.777 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.01838, allocations: 0 / 0.8187 GB, free: 9.777 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0002187/0.0186, allocations: 88.64 kB / 0.8188 GB, free: 9.695 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004041/0.01901, allocations: 29.33 kB / 0.8188 GB, free: 9.668 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008347/0.01984, allocations: 372.8 kB / 0.8192 GB, free: 9.262 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001391/0.01998, allocations: 112.3 kB / 0.8193 GB, free: 9.133 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 7.602e-05/0.02006, allocations: 19.86 kB / 0.8193 GB, free: 9.117 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.69e-05/0.02012, allocations: 16.5 kB / 0.8193 GB, free: 9.102 MB / 0.7761 GB Notification: Performance of SimCode: time 5.11e-07/0.02012, allocations: 0 / 0.8193 GB, free: 9.102 MB / 0.7761 GB Notification: Performance of Templates: time 0.006115/0.02624, allocations: 1.756 MB / 0.821 GB, free: 7.398 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.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: 8.349864318966866]