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.001905/0.001905, allocations: 95.77 kB / 18.94 MB, free: 2.844 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.002353/0.002353, allocations: 220.3 kB / 22.25 MB, free: 5.098 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.451/1.451, allocations: 230.6 MB / 256 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.203/3.203, allocations: 0.49 GB / 0.7951 GB, free: 35.39 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002068/0.002068, allocations: 62.94 kB / 1.154 GB, free: 25.38 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3488, allocations: 176.1 MB / 1.326 GB, free: 1.484 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002442/0.3513, allocations: 0.9975 MB / 1.327 GB, free: 500 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001755/0.353, allocations: 1.034 MB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000167/0.3532, allocations: 4 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001726/0.3533, allocations: 19.73 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.734e-05/0.3534, allocations: 23.75 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004158/0.3538, allocations: 75.84 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002592/0.3541, allocations: 176 kB / 1.328 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001883/0.3543, allocations: 60.67 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.3544, allocations: 75.77 kB / 1.328 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.3546, allocations: 83.61 kB / 1.328 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.337e-05/0.3546, allocations: 16 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.515e-05/0.3547, allocations: 20 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.499e-05/0.3547, allocations: 39.84 kB / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.92e-05/0.3548, allocations: 59.72 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003387/0.3551, allocations: 191.1 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3551, allocations: 0 / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3551, allocations: 0 / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.3551, allocations: 0 / 1.329 GB, free: 14.61 MB / 1.029 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.0009816/0.3561, allocations: 430.3 kB / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.3562, allocations: 8.031 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.939e-05/0.3562, allocations: 58.67 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.3564, allocations: 24.8 kB / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003404/0.3567, allocations: 168.3 kB / 1.329 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.3567, allocations: 16.31 kB / 1.329 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.516e-05/0.3568, allocations: 16.38 kB / 1.329 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003628/0.3572, allocations: 179.1 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.3572, allocations: 7.938 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/0.3572, allocations: 8 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.3572, allocations: 7.984 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002864/0.3575, allocations: 95.94 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.3586, allocations: 475.4 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004287/0.359, allocations: 142.6 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001826/0.3592, allocations: 80.8 kB / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.558e-05/0.3593, allocations: 4 kB / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002879/0.3596, allocations: 146.5 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of pre-optimization done (n=19): time 1.983e-06/0.3596, allocations: 4 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=19): time 0.0005957/0.3602, allocations: 230.6 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/0.3602, allocations: 51.41 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001664/0.3604, allocations: 156.7 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.433e-05/0.3604, allocations: 33.7 kB / 1.331 GB, free: 12.13 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.623e-05/0.3605, allocations: 116.5 kB / 1.331 GB, free: 12.01 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.887e-05/0.3606, allocations: 67.42 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.772e-05/0.3607, allocations: 41.7 kB / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.3608, allocations: 330.8 kB / 1.331 GB, free: 11.57 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.361, allocations: 63.95 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.3612, allocations: 87.5 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003647/0.3616, allocations: 147.6 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3616, allocations: 0 / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005054/0.3621, allocations: 225.4 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.3621, allocations: 4 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3621, allocations: 0 / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.3622, allocations: 0 / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002077/0.3624, allocations: 39.97 kB / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.3624, allocations: 0 / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.3625, allocations: 31.91 kB / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.3625, allocations: 4 kB / 1.332 GB, free: 10.96 MB / 1.029 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.000142/0.3627, allocations: 138.2 kB / 1.332 GB, free: 10.82 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.907e-05/0.3627, allocations: 15.91 kB / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004284/0.3631, allocations: 188.2 kB / 1.332 GB, free: 10.61 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.3631, allocations: 3.938 kB / 1.332 GB, free: 10.61 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.3631, allocations: 7.938 kB / 1.332 GB, free: 10.6 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.3632, allocations: 3.984 kB / 1.332 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008848/0.364, allocations: 0.5374 MB / 1.333 GB, free: 9.988 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.364, allocations: 4 kB / 1.333 GB, free: 9.984 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001784/0.3642, allocations: 31.97 kB / 1.333 GB, free: 9.953 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.033e-05/0.3642, allocations: 7.938 kB / 1.333 GB, free: 9.945 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.3642, allocations: 12.19 kB / 1.333 GB, free: 9.934 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.3643, allocations: 0 / 1.333 GB, free: 9.934 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3643, allocations: 7.938 kB / 1.333 GB, free: 9.926 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000615/0.3649, allocations: 387.5 kB / 1.333 GB, free: 9.516 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.088e-05/0.3649, allocations: 19.78 kB / 1.333 GB, free: 9.496 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.879e-05/0.3649, allocations: 8 kB / 1.333 GB, free: 9.488 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.3651, allocations: 16.03 kB / 1.333 GB, free: 9.473 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.016e-05/0.3652, allocations: 31.89 kB / 1.333 GB, free: 9.441 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-05/0.3652, allocations: 8 kB / 1.333 GB, free: 9.434 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001207/0.3653, allocations: 120.9 kB / 1.334 GB, free: 9.316 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3653, allocations: 4 kB / 1.334 GB, free: 9.312 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002702/0.3656, allocations: 28 kB / 1.334 GB, free: 9.285 MB / 1.029 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.0009847/0.3666, allocations: 0.9203 MB / 1.334 GB, free: 8.32 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004418/0.367, allocations: 149.7 kB / 1.335 GB, free: 8.176 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.367, allocations: 4 kB / 1.335 GB, free: 8.172 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001902/0.3672, allocations: 86.7 kB / 1.335 GB, free: 8.09 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/0.3676, allocations: 34.19 kB / 1.335 GB, free: 8.059 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003071/0.3706, allocations: 2.124 MB / 1.337 GB, free: 5.812 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.3707, allocations: 112.2 kB / 1.337 GB, free: 5.676 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.656e-05/0.3708, allocations: 21.42 kB / 1.337 GB, free: 5.656 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.3709, allocations: 47.42 kB / 1.337 GB, free: 5.609 MB / 1.029 GB Notification: Performance of SimCode: time 5.1e-07/0.3709, allocations: 4 kB / 1.337 GB, free: 5.605 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03422/0.4051, allocations: 4.304 MB / 1.341 GB, free: 1.441 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.88, allocations: 8.75 kB / 1.341 GB, free: 1.438 MB / 1.029 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=400 --tolerance=1e-07 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) [Timeout 420.0] 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/jenkins1/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: 18.61518178199185]