Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001761/0.001761, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002173/0.002173, allocations: 201.1 kB / 16.26 MB, free: 6.625 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.468/1.468, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.061/3.061, allocations: 482.3 MB / 0.7543 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 73.14 kB / 0.9233 GB, free: 29.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4128/0.4148, allocations: 162.2 MB / 1.082 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002663/0.4175, allocations: 1.126 MB / 1.083 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00149/0.419, allocations: 0.9948 MB / 1.084 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.4191, allocations: 0 / 1.084 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.4193, allocations: 7.875 kB / 1.084 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.055e-05/0.4194, allocations: 15.86 kB / 1.084 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002779/0.4196, allocations: 59.94 kB / 1.084 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002383/0.4199, allocations: 172 kB / 1.084 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001827/0.4201, allocations: 84.03 kB / 1.084 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.4202, allocations: 71.72 kB / 1.084 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000108/0.4203, allocations: 87.53 kB / 1.084 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.051e-05/0.4203, allocations: 16 kB / 1.084 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 2.862e-05/0.4204, allocations: 16 kB / 1.084 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.451e-05/0.4204, allocations: 31.91 kB / 1.084 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.912e-05/0.4205, allocations: 91.52 kB / 1.084 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002161/0.4207, allocations: 175.6 kB / 1.085 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.4208, allocations: 0 / 1.085 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.563e-06/0.4208, allocations: 0 / 1.085 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.4208, allocations: 0 / 1.085 GB, free: 10.62 MB / 0.8419 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.001057/0.4218, allocations: 478.8 kB / 1.085 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.4219, allocations: 16.03 kB / 1.085 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.79e-05/0.422, allocations: 20.69 kB / 1.085 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002891/0.4223, allocations: 224.5 kB / 1.085 GB, free: 9.812 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.518e-05/0.4223, allocations: 16.36 kB / 1.085 GB, free: 9.797 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.785e-05/0.4223, allocations: 16.38 kB / 1.085 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003414/0.4227, allocations: 157.6 kB / 1.086 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.4227, allocations: 0 / 1.086 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.964e-05/0.4227, allocations: 4 kB / 1.086 GB, free: 9.617 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.4227, allocations: 8 kB / 1.086 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003014/0.423, allocations: 107.9 kB / 1.086 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.4242, allocations: 0.5313 MB / 1.086 GB, free: 8.922 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004041/0.4246, allocations: 142.7 kB / 1.086 GB, free: 8.773 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.4248, allocations: 88.66 kB / 1.086 GB, free: 8.684 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/0.4249, allocations: 7.984 kB / 1.086 GB, free: 8.676 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003408/0.4252, allocations: 109.2 kB / 1.086 GB, free: 8.559 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=19): time 1.282e-06/0.4252, allocations: 0 / 1.086 GB, free: 8.559 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.0005735/0.4258, allocations: 231.6 kB / 1.087 GB, free: 8.328 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.4259, allocations: 55.41 kB / 1.087 GB, free: 8.262 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001813/0.4261, allocations: 159.7 kB / 1.087 GB, free: 8.098 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.425e-05/0.4261, allocations: 29.7 kB / 1.087 GB, free: 8.062 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.4263, allocations: 120.5 kB / 1.087 GB, free: 7.941 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.002e-05/0.4263, allocations: 63.02 kB / 1.087 GB, free: 7.879 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.451e-05/0.4264, allocations: 45.64 kB / 1.087 GB, free: 7.828 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001597/0.4266, allocations: 326.8 kB / 1.087 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002165/0.4268, allocations: 67.95 kB / 1.088 GB, free: 7.434 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002373/0.4271, allocations: 85.67 kB / 1.088 GB, free: 7.344 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000347/0.4274, allocations: 155.6 kB / 1.088 GB, free: 7.188 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.4274, allocations: 3.938 kB / 1.088 GB, free: 7.184 MB / 0.8419 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004782/0.4279, allocations: 210.1 kB / 1.088 GB, free: 6.973 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.4279, allocations: 4 kB / 1.088 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.4279, allocations: 0 / 1.088 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.428, allocations: 4 kB / 1.088 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002003/0.4282, allocations: 39.97 kB / 1.088 GB, free: 6.926 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.4282, allocations: 8.031 kB / 1.088 GB, free: 6.918 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.4283, allocations: 23.83 kB / 1.088 GB, free: 6.895 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.4283, allocations: 4 kB / 1.088 GB, free: 6.891 MB / 0.8419 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.0001278/0.4285, allocations: 133.7 kB / 1.088 GB, free: 6.75 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.457e-05/0.4285, allocations: 15.81 kB / 1.088 GB, free: 6.734 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004201/0.4289, allocations: 190.7 kB / 1.088 GB, free: 6.543 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.429, allocations: 4 kB / 1.088 GB, free: 6.539 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.429, allocations: 0 / 1.088 GB, free: 6.539 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.429, allocations: 7.922 kB / 1.088 GB, free: 6.531 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000859/0.4298, allocations: 0.5812 MB / 1.089 GB, free: 5.875 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.4299, allocations: 4 kB / 1.089 GB, free: 5.871 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001762/0.43, allocations: 31.97 kB / 1.089 GB, free: 5.84 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.842e-06/0.43, allocations: 7.938 kB / 1.089 GB, free: 5.832 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.4301, allocations: 8 kB / 1.089 GB, free: 5.824 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.4301, allocations: 0 / 1.089 GB, free: 5.824 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.4301, allocations: 12.12 kB / 1.089 GB, free: 5.812 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000619/0.4307, allocations: 377.5 kB / 1.089 GB, free: 5.41 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001497/0.4309, allocations: 96.8 kB / 1.089 GB, free: 5.297 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.842e-05/0.4309, allocations: 8 kB / 1.089 GB, free: 5.289 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.4311, allocations: 15.98 kB / 1.089 GB, free: 5.273 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.472e-05/0.4312, allocations: 31.91 kB / 1.09 GB, free: 5.242 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.4312, allocations: 4 kB / 1.09 GB, free: 5.238 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001078/0.4313, allocations: 125.4 kB / 1.09 GB, free: 5.117 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.365e-06/0.4313, allocations: 0 / 1.09 GB, free: 5.117 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002654/0.4316, allocations: 35.84 kB / 1.09 GB, free: 5.082 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der1.x,intWitRes.y,der2.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.0002086/0.4318, allocations: 115.2 kB / 1.09 GB, free: 4.961 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004609/0.4323, allocations: 169.7 kB / 1.09 GB, free: 4.797 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4323, allocations: 4.062 kB / 1.09 GB, free: 4.793 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003424/0.4326, allocations: 91.83 kB / 1.09 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000355/0.433, allocations: 19.98 kB / 1.09 GB, free: 4.684 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007424/0.4337, allocations: 445.2 kB / 1.09 GB, free: 4.203 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005086/0.4343, allocations: 0.7205 MB / 1.091 GB, free: 3.453 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.838e-05/0.4343, allocations: 21.41 kB / 1.091 GB, free: 3.434 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.713e-05/0.4344, allocations: 23.38 kB / 1.091 GB, free: 3.41 MB / 0.8419 GB Notification: Performance of SimCode: time 2e-07/0.4344, allocations: 0 / 1.091 GB, free: 3.41 MB / 0.8419 GB Notification: Performance of Templates: time 0.005252/0.4397, allocations: 1.648 MB / 1.093 GB, free: 1.773 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches