Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Constant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Constant",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005097/0.005097, allocations: 95.83 kB / 15.73 MB, free: 6.039 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.001357/0.001357, allocations: 199.6 kB / 16.68 MB, free: 5.969 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.245/1.245, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.531/2.531, allocations: 482.6 MB / 0.755 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001754/0.001754, allocations: 67.89 kB / 1.083 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2679, allocations: 162.3 MB / 1.242 GB, free: 9.828 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant): time 0.001589/0.2695, allocations: 0.54 MB / 1.242 GB, free: 9.289 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 3.015e-05/0.2696, allocations: 0 / 1.242 GB, free: 9.289 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.123e-05/0.2696, allocations: 0 / 1.242 GB, free: 9.289 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.866e-05/0.2697, allocations: 4 kB / 1.242 GB, free: 9.285 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.167e-05/0.2697, allocations: 0 / 1.242 GB, free: 9.285 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 2.831e-05/0.2697, allocations: 4 kB / 1.242 GB, free: 9.281 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 4.204e-05/0.2698, allocations: 7.875 kB / 1.242 GB, free: 9.273 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.442e-05/0.2698, allocations: 8.062 kB / 1.242 GB, free: 9.266 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.131e-05/0.2698, allocations: 0 / 1.242 GB, free: 9.266 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 1.598e-05/0.2698, allocations: 4 kB / 1.242 GB, free: 9.262 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.177e-06/0.2699, allocations: 0 / 1.242 GB, free: 9.262 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.035e-06/0.2699, allocations: 0 / 1.242 GB, free: 9.262 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.241e-05/0.2699, allocations: 7.969 kB / 1.242 GB, free: 9.254 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 1.481e-05/0.2699, allocations: 4 kB / 1.242 GB, free: 9.25 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 4.865e-05/0.27, allocations: 3.938 kB / 1.242 GB, free: 9.246 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.27, allocations: 0 / 1.242 GB, free: 9.246 MB / 0.9981 GB Notification: Performance of FrontEnd: time 8.22e-07/0.27, allocations: 0 / 1.242 GB, free: 9.246 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.27, allocations: 0 / 1.242 GB, free: 9.246 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002732/0.2703, allocations: 315.5 kB / 1.243 GB, free: 8.887 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.2703, allocations: 12.06 kB / 1.243 GB, free: 8.875 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.22e-05/0.2703, allocations: 30.75 kB / 1.243 GB, free: 8.836 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.591e-05/0.2703, allocations: 4.891 kB / 1.243 GB, free: 8.832 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.2705, allocations: 160.4 kB / 1.243 GB, free: 8.637 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.925e-06/0.2705, allocations: 4.375 kB / 1.243 GB, free: 8.633 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.31e-06/0.2705, allocations: 384 / 1.243 GB, free: 8.633 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.592e-05/0.2706, allocations: 30.27 kB / 1.243 GB, free: 8.598 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.2706, allocations: 7.875 kB / 1.243 GB, free: 8.59 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.38e-06/0.2706, allocations: 0 / 1.243 GB, free: 8.59 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-06/0.2706, allocations: 0 / 1.243 GB, free: 8.59 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.168e-05/0.2706, allocations: 0 / 1.243 GB, free: 8.59 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003005/0.2709, allocations: 383.5 kB / 1.243 GB, free: 8.164 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.392e-05/0.271, allocations: 173.1 kB / 1.244 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.805e-05/0.2711, allocations: 88.08 kB / 1.244 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.661e-05/0.2711, allocations: 75.28 kB / 1.244 GB, free: 7.82 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.031e-05/0.2712, allocations: 109.8 kB / 1.244 GB, free: 7.703 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=0): time 7.41e-07/0.2712, allocations: 4 kB / 1.244 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of matching and sorting (n=0): time 6.026e-05/0.2712, allocations: 25.7 kB / 1.244 GB, free: 7.668 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.941e-05/0.2713, allocations: 126.7 kB / 1.244 GB, free: 7.531 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.604e-05/0.2714, allocations: 97.86 kB / 1.244 GB, free: 7.426 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.2714, allocations: 29.64 kB / 1.244 GB, free: 7.391 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.056e-05/0.2714, allocations: 84.14 kB / 1.244 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.472e-06/0.2715, allocations: 0 / 1.244 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.171e-05/0.2715, allocations: 9.844 kB / 1.244 GB, free: 7.289 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.2716, allocations: 318.8 kB / 1.244 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.54e-06/0.2716, allocations: 3.938 kB / 1.244 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.345e-06/0.2716, allocations: 0 / 1.244 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.974e-05/0.2717, allocations: 75.28 kB / 1.245 GB, free: 6.891 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.523e-05/0.2717, allocations: 79.22 kB / 1.245 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of matching and sorting (n=0) (initialization): time 5.008e-05/0.2718, allocations: 29.7 kB / 1.245 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.861e-05/0.2718, allocations: 83.22 kB / 1.245 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.096e-05/0.2718, allocations: 87.28 kB / 1.245 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.445e-05/0.2719, allocations: 158.5 kB / 1.245 GB, free: 6.453 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.355e-05/0.272, allocations: 75.28 kB / 1.245 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.736e-05/0.272, allocations: 154.5 kB / 1.245 GB, free: 6.227 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.899e-05/0.2721, allocations: 83.27 kB / 1.245 GB, free: 6.145 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.982e-05/0.2721, allocations: 75.28 kB / 1.245 GB, free: 6.07 MB / 0.9981 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 (0): * Single equations (assignments): 0 * 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.0001283/0.2723, allocations: 268.3 kB / 1.246 GB, free: 5.797 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.869e-05/0.2723, allocations: 109 kB / 1.246 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.458e-05/0.2724, allocations: 104.1 kB / 1.246 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.708e-05/0.2725, allocations: 184.2 kB / 1.246 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.809e-05/0.2725, allocations: 180.3 kB / 1.246 GB, free: 5.203 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.64e-05/0.2726, allocations: 188.2 kB / 1.246 GB, free: 5.012 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002448/0.2729, allocations: 405.2 kB / 1.247 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.664e-05/0.2729, allocations: 101.3 kB / 1.247 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.107e-05/0.273, allocations: 104.9 kB / 1.247 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.338e-05/0.2731, allocations: 184.3 kB / 1.247 GB, free: 4.156 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.651e-05/0.2731, allocations: 180.2 kB / 1.247 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.426e-05/0.2732, allocations: 180.3 kB / 1.247 GB, free: 3.789 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.716e-05/0.2733, allocations: 184.2 kB / 1.248 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001387/0.2734, allocations: 303.7 kB / 1.248 GB, free: 3.281 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.886e-05/0.2735, allocations: 186 kB / 1.248 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.495e-05/0.2736, allocations: 188.2 kB / 1.248 GB, free: 2.883 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.558e-05/0.2737, allocations: 101 kB / 1.248 GB, free: 2.777 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.098e-05/0.2738, allocations: 184.2 kB / 1.248 GB, free: 2.59 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.113e-05/0.2738, allocations: 105 kB / 1.249 GB, free: 2.48 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.616e-05/0.2739, allocations: 75.28 kB / 1.249 GB, free: 2.406 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.2739, allocations: 0 / 1.249 GB, free: 2.406 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002342/0.2741, allocations: 0 / 1.249 GB, free: 2.406 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (0): * Single equations (assignments): 0 * 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.0004524/0.2746, allocations: 0.821 MB / 1.249 GB, free: 1.555 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 2.845e-05/0.2746, allocations: 3.938 kB / 1.249 GB, free: 1.551 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2746, allocations: 0 / 1.249 GB, free: 1.551 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.192e-06/0.2746, allocations: 0 / 1.249 GB, free: 1.551 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003633/0.275, allocations: 465.5 kB / 1.25 GB, free: 1.094 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4684/0.7434, allocations: 1.517 MB / 1.251 GB, free: 14.62 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.167e-05/0.7435, allocations: 0.6707 MB / 1.252 GB, free: 13.92 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 9.208e-06/0.7435, allocations: 1.953 kB / 1.252 GB, free: 13.92 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.014e-05/0.7435, allocations: 8.188 kB / 1.252 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of SimCode: time 4.71e-07/0.7436, allocations: 2 kB / 1.252 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4663/1.21, allocations: 0.933 MB / 1.253 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.92, allocations: 7.078 kB / 1.253 GB, free: 13.62 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Constant_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Constant.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Constant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches