Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.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.Logical.Sources.Validation.Constant,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_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.009075/0.009075, allocations: 104.2 kB / 15.73 MB, free: 5.953 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.00235/0.00235, allocations: 190.3 kB / 16.67 MB, free: 5.871 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.48/1.48, allocations: 222.9 MB / 240.4 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.827/2.827, allocations: 482.4 MB / 0.7548 GB, free: 6.867 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002961/0.002961, allocations: 64.38 kB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3329, allocations: 162.2 MB / 1.241 GB, free: 9.266 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant): time 0.001637/0.3346, allocations: 0.5438 MB / 1.242 GB, free: 8.723 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 3.32e-05/0.3346, allocations: 7.938 kB / 1.242 GB, free: 8.715 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.333e-05/0.3346, allocations: 0 / 1.242 GB, free: 8.715 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.298e-05/0.3347, allocations: 0 / 1.242 GB, free: 8.715 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.197e-05/0.3347, allocations: 0 / 1.242 GB, free: 8.715 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 3.101e-05/0.3347, allocations: 4 kB / 1.242 GB, free: 8.711 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 4.956e-05/0.3348, allocations: 7.984 kB / 1.242 GB, free: 8.703 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.308e-05/0.3348, allocations: 0 / 1.242 GB, free: 8.703 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 1.648e-05/0.3349, allocations: 3.984 kB / 1.242 GB, free: 8.699 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 1.856e-05/0.3349, allocations: 0 / 1.242 GB, free: 8.699 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.07e-05/0.3349, allocations: 3.938 kB / 1.242 GB, free: 8.695 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 3.407e-06/0.3349, allocations: 0 / 1.242 GB, free: 8.695 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.225e-05/0.3349, allocations: 8 kB / 1.242 GB, free: 8.688 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 1.599e-05/0.335, allocations: 0 / 1.242 GB, free: 8.688 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 5.235e-05/0.335, allocations: 4 kB / 1.242 GB, free: 8.684 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.335, allocations: 0 / 1.242 GB, free: 8.684 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.133e-06/0.335, allocations: 0 / 1.242 GB, free: 8.684 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.887e-06/0.335, allocations: 3.938 kB / 1.242 GB, free: 8.68 MB / 0.9669 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.0003097/0.3353, allocations: 315.8 kB / 1.242 GB, free: 8.32 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.3354, allocations: 8.031 kB / 1.242 GB, free: 8.312 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.137e-05/0.3354, allocations: 30.75 kB / 1.242 GB, free: 8.273 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.827e-05/0.3355, allocations: 4.938 kB / 1.242 GB, free: 8.27 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.3356, allocations: 172.3 kB / 1.243 GB, free: 8.062 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.507e-06/0.3356, allocations: 384 / 1.243 GB, free: 8.062 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.54e-06/0.3356, allocations: 384 / 1.243 GB, free: 8.062 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.445e-05/0.3357, allocations: 38.25 kB / 1.243 GB, free: 8.02 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.3357, allocations: 3.938 kB / 1.243 GB, free: 8.016 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.18e-06/0.3357, allocations: 0 / 1.243 GB, free: 8.016 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.3357, allocations: 0 / 1.243 GB, free: 8.016 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.174e-05/0.3357, allocations: 3.938 kB / 1.243 GB, free: 8.012 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003298/0.3361, allocations: 387.5 kB / 1.243 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 9.411e-05/0.3362, allocations: 169.1 kB / 1.243 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.829e-05/0.3362, allocations: 80.14 kB / 1.243 GB, free: 7.324 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.578e-05/0.3363, allocations: 79.27 kB / 1.243 GB, free: 7.246 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.593e-05/0.3363, allocations: 113.9 kB / 1.243 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=0): time 7.91e-07/0.3363, allocations: 0 / 1.243 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of matching and sorting (n=0): time 7.452e-05/0.3364, allocations: 30.02 kB / 1.243 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.33e-05/0.3365, allocations: 126.7 kB / 1.244 GB, free: 6.953 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.091e-05/0.3366, allocations: 97.86 kB / 1.244 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.3366, allocations: 29.69 kB / 1.244 GB, free: 6.812 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.57e-05/0.3367, allocations: 80.14 kB / 1.244 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.843e-06/0.3367, allocations: 0 / 1.244 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.299e-05/0.3367, allocations: 17.84 kB / 1.244 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.3369, allocations: 314.8 kB / 1.244 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.817e-06/0.3369, allocations: 0 / 1.244 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.058e-05/0.3369, allocations: 4 kB / 1.244 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.204e-05/0.3369, allocations: 75.28 kB / 1.244 GB, free: 6.312 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.533e-05/0.337, allocations: 83.22 kB / 1.244 GB, free: 6.23 MB / 0.9669 GB Notification: Performance of matching and sorting (n=0) (initialization): time 5.927e-05/0.337, allocations: 33.64 kB / 1.244 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.036e-05/0.3371, allocations: 79.28 kB / 1.244 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.196e-05/0.3371, allocations: 79.28 kB / 1.244 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.907e-05/0.3372, allocations: 158.5 kB / 1.245 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.431e-05/0.3372, allocations: 79.22 kB / 1.245 GB, free: 5.801 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.866e-05/0.3373, allocations: 150.6 kB / 1.245 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.449e-05/0.3374, allocations: 80.7 kB / 1.245 GB, free: 5.574 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.254e-05/0.3374, allocations: 79.28 kB / 1.245 GB, free: 5.496 MB / 0.9669 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.0001379/0.3376, allocations: 268.9 kB / 1.245 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.243e-05/0.3377, allocations: 101 kB / 1.245 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.684e-05/0.3377, allocations: 112 kB / 1.245 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.182e-05/0.3378, allocations: 184.2 kB / 1.246 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.519e-05/0.3379, allocations: 180.2 kB / 1.246 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-05/0.338, allocations: 184.3 kB / 1.246 GB, free: 4.445 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002871/0.3383, allocations: 405.2 kB / 1.246 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.635e-05/0.3383, allocations: 104.9 kB / 1.246 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.558e-05/0.3384, allocations: 101 kB / 1.246 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.037e-05/0.3385, allocations: 188.1 kB / 1.247 GB, free: 3.586 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.062e-05/0.3386, allocations: 192.2 kB / 1.247 GB, free: 3.391 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-05/0.3386, allocations: 176.6 kB / 1.247 GB, free: 3.211 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.539e-05/0.3387, allocations: 180.2 kB / 1.247 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001541/0.3389, allocations: 311.7 kB / 1.247 GB, free: 2.699 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.79e-05/0.339, allocations: 182.1 kB / 1.248 GB, free: 2.496 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.383e-05/0.3391, allocations: 188.2 kB / 1.248 GB, free: 2.305 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.218e-05/0.3391, allocations: 101 kB / 1.248 GB, free: 2.199 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.882e-05/0.3392, allocations: 176.3 kB / 1.248 GB, free: 2.02 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.583e-05/0.3393, allocations: 108.9 kB / 1.248 GB, free: 1.906 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.395e-05/0.3393, allocations: 83.28 kB / 1.248 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3393, allocations: 0 / 1.248 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002471/0.3396, allocations: 4.094 kB / 1.248 GB, free: 1.82 MB / 0.9669 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.000512/0.3401, allocations: 0.8107 MB / 1.249 GB, free: 0.9805 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 3.482e-05/0.3401, allocations: 7.938 kB / 1.249 GB, free: 0.9727 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3402, allocations: 0 / 1.249 GB, free: 0.9727 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.152e-06/0.3402, allocations: 4 kB / 1.249 GB, free: 0.9688 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003833/0.3406, allocations: 453.2 kB / 1.25 GB, free: 0.5234 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.3417, allocations: 1.524 MB / 1.251 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.342, allocations: 0.669 MB / 1.252 GB, free: 14.23 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.951e-06/0.342, allocations: 4 kB / 1.252 GB, free: 14.22 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.949e-05/0.342, allocations: 11.53 kB / 1.252 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of SimCode: time 2.11e-07/0.342, allocations: 0 / 1.252 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02402/0.366, allocations: 0.9237 MB / 1.253 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.755/8.121, allocations: 12.53 kB / 1.253 GB, free: 13.41 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches