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.001363/0.001363, allocations: 98.08 kB / 19.73 MB, free: 2.23 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.001464/0.001464, allocations: 217 kB / 23.04 MB, free: 5.074 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.553/1.553, allocations: 230.6 MB / 256.8 MB, free: 7.992 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.22/3.22, allocations: 0.49 GB / 0.7959 GB, free: 33.3 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="cs",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.002072/0.002072, allocations: 65.59 kB / 1.155 GB, free: 25.62 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4455/0.4476, allocations: 176.1 MB / 1.327 GB, free: 1.883 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.003362/0.451, allocations: 1.08 MB / 1.328 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002196/0.4532, allocations: 1.042 MB / 1.329 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002908/0.4535, allocations: 4 kB / 1.329 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002347/0.4537, allocations: 19.73 kB / 1.329 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001669/0.4539, allocations: 19.8 kB / 1.329 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005196/0.4544, allocations: 75.8 kB / 1.329 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003219/0.4547, allocations: 184 kB / 1.329 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002051/0.4549, allocations: 56.69 kB / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001741/0.4551, allocations: 79.75 kB / 1.329 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.4552, allocations: 75.62 kB / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.315e-05/0.4553, allocations: 16 kB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.753e-05/0.4553, allocations: 20 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.299e-05/0.4554, allocations: 43.83 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.4555, allocations: 75.59 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003781/0.4559, allocations: 191.1 kB / 1.33 GB, free: 14.9 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.4559, allocations: 0 / 1.33 GB, free: 14.9 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.753e-06/0.4559, allocations: 0 / 1.33 GB, free: 14.9 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.241e-05/0.4559, allocations: 4 kB / 1.33 GB, free: 14.89 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.001081/0.457, allocations: 426.3 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.457, allocations: 12.03 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.94e-05/0.4571, allocations: 4.188 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.251e-05/0.4571, allocations: 46.73 kB / 1.33 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001488/0.4573, allocations: 24.8 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000396/0.4577, allocations: 166.8 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.4577, allocations: 20.25 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.874e-05/0.4577, allocations: 16.12 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003742/0.4581, allocations: 153.5 kB / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.4581, allocations: 0 / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.035e-05/0.4581, allocations: 4 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-06/0.4582, allocations: 4 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003151/0.4585, allocations: 111.9 kB / 1.331 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.4598, allocations: 0.4993 MB / 1.331 GB, free: 13.31 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004643/0.4602, allocations: 134.5 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002091/0.4604, allocations: 80.86 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.42e-05/0.4605, allocations: 4 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002798/0.4608, allocations: 123.3 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of pre-optimization done (n=19): time 1.663e-06/0.4608, allocations: 0 / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of matching and sorting (n=19): time 0.00061/0.4614, allocations: 226.9 kB / 1.332 GB, free: 12.72 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.4614, allocations: 55.41 kB / 1.332 GB, free: 12.66 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001681/0.4616, allocations: 152.7 kB / 1.332 GB, free: 12.5 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.789e-05/0.4616, allocations: 37.7 kB / 1.332 GB, free: 12.46 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.44e-05/0.4617, allocations: 124.5 kB / 1.332 GB, free: 12.33 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.141e-05/0.4618, allocations: 63.42 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.563e-05/0.4619, allocations: 45.7 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001505/0.462, allocations: 322.8 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002238/0.4622, allocations: 63.95 kB / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.4625, allocations: 95.44 kB / 1.333 GB, free: 11.73 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003694/0.4628, allocations: 149.3 kB / 1.333 GB, free: 11.59 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.4628, allocations: 0 / 1.333 GB, free: 11.59 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005354/0.4634, allocations: 213.5 kB / 1.333 GB, free: 11.37 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.4634, allocations: 11.92 kB / 1.333 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.4634, allocations: 0 / 1.333 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.4634, allocations: 0 / 1.333 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002057/0.4636, allocations: 35.98 kB / 1.333 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.4636, allocations: 0 / 1.333 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.4638, allocations: 31.86 kB / 1.333 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.4638, allocations: 4 kB / 1.333 GB, free: 11.29 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.0001432/0.4639, allocations: 138.2 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.261e-05/0.464, allocations: 15.91 kB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004697/0.4644, allocations: 188.4 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.4644, allocations: 0 / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.4644, allocations: 3.938 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.4644, allocations: 0 / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009719/0.4654, allocations: 0.5714 MB / 1.334 GB, free: 10.3 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.4654, allocations: 0 / 1.334 GB, free: 10.3 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001893/0.4656, allocations: 40.09 kB / 1.334 GB, free: 10.26 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.242e-06/0.4656, allocations: 8 kB / 1.334 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.4656, allocations: 7.938 kB / 1.334 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.4656, allocations: 4 kB / 1.334 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.4656, allocations: 7.938 kB / 1.334 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000656/0.4663, allocations: 377.9 kB / 1.334 GB, free: 9.828 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.835e-05/0.4663, allocations: 23.84 kB / 1.334 GB, free: 9.805 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.926e-05/0.4664, allocations: 4 kB / 1.334 GB, free: 9.801 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.4665, allocations: 20.02 kB / 1.334 GB, free: 9.781 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.295e-05/0.4666, allocations: 27.91 kB / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.241e-05/0.4666, allocations: 12 kB / 1.334 GB, free: 9.742 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001002/0.4667, allocations: 120.9 kB / 1.334 GB, free: 9.625 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4667, allocations: 0 / 1.334 GB, free: 9.625 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002879/0.467, allocations: 32 kB / 1.334 GB, free: 9.594 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.001042/0.4681, allocations: 0.9203 MB / 1.335 GB, free: 8.629 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004672/0.4685, allocations: 151.8 kB / 1.336 GB, free: 8.484 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.4685, allocations: 0 / 1.336 GB, free: 8.484 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002027/0.4687, allocations: 92.27 kB / 1.336 GB, free: 8.395 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003703/0.4691, allocations: 35.91 kB / 1.336 GB, free: 8.359 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003335/0.4724, allocations: 2.123 MB / 1.338 GB, free: 6.113 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004771/0.4729, allocations: 0.7243 MB / 1.338 GB, free: 5.359 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.82e-05/0.473, allocations: 25.36 kB / 1.338 GB, free: 5.332 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.4731, allocations: 55.41 kB / 1.338 GB, free: 5.277 MB / 1.029 GB Notification: Performance of SimCode: time 9.62e-07/0.4731, allocations: 0 / 1.338 GB, free: 5.277 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03012/0.5032, allocations: 3.853 MB / 1.342 GB, free: 1.582 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.9, allocations: 11.47 kB / 1.342 GB, free: 1.574 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: 19.055481792020146]