Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.005116/0.005116, allocations: 98.67 kB / 15.73 MB, free: 5.988 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.001183/0.001183, allocations: 199.3 kB / 16.68 MB, free: 5.918 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.469/2.469, allocations: 390.2 MB / 0.6648 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 63.55 kB / 0.9504 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.33, allocations: 140.4 MB / 1.087 GB, free: 2.031 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant): time 0.002376/0.3324, allocations: 0.5445 MB / 1.088 GB, free: 1.488 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 5.142e-05/0.3325, allocations: 4 kB / 1.088 GB, free: 1.484 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.729e-05/0.3325, allocations: 3.938 kB / 1.088 GB, free: 1.48 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.725e-05/0.3326, allocations: 0 / 1.088 GB, free: 1.48 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.808e-05/0.3326, allocations: 0 / 1.088 GB, free: 1.48 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 3.594e-05/0.3327, allocations: 4 kB / 1.088 GB, free: 1.477 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 5.172e-05/0.3327, allocations: 0 / 1.088 GB, free: 1.477 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 6.076e-05/0.3328, allocations: 0 / 1.088 GB, free: 1.477 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.48e-05/0.3328, allocations: 3.938 kB / 1.088 GB, free: 1.473 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 2.333e-05/0.3329, allocations: 4 kB / 1.088 GB, free: 1.469 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.625e-05/0.3329, allocations: 0 / 1.088 GB, free: 1.469 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 4.117e-06/0.3329, allocations: 0 / 1.088 GB, free: 1.469 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.731e-05/0.3329, allocations: 15.92 kB / 1.088 GB, free: 1.453 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.139e-05/0.3329, allocations: 0 / 1.088 GB, free: 1.453 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 7.256e-05/0.333, allocations: 11.92 kB / 1.088 GB, free: 1.441 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.333, allocations: 0 / 1.088 GB, free: 1.441 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3331, allocations: 0 / 1.088 GB, free: 1.441 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.3331, allocations: 0 / 1.088 GB, free: 1.441 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003596/0.3334, allocations: 307.6 kB / 1.088 GB, free: 1.09 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.3335, allocations: 16.05 kB / 1.088 GB, free: 1.074 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.17e-05/0.3336, allocations: 34.75 kB / 1.088 GB, free: 1.031 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.506e-05/0.3336, allocations: 0.9375 kB / 1.088 GB, free: 1.031 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.3338, allocations: 164.4 kB / 1.089 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.3338, allocations: 384 / 1.089 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.025e-06/0.3338, allocations: 384 / 1.089 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.153e-05/0.3339, allocations: 30.27 kB / 1.089 GB, free: 0.7969 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.3339, allocations: 3.938 kB / 1.089 GB, free: 0.793 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.804e-06/0.3339, allocations: 0 / 1.089 GB, free: 0.793 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.3339, allocations: 0 / 1.089 GB, free: 0.793 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.11e-05/0.334, allocations: 3.938 kB / 1.089 GB, free: 0.7891 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004084/0.3344, allocations: 383.5 kB / 1.089 GB, free: 372 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001011/0.3345, allocations: 173.1 kB / 1.089 GB, free: 188 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.905e-05/0.3346, allocations: 80.14 kB / 1.089 GB, free: 104 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.627e-05/0.3346, allocations: 79.22 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.392e-05/0.3347, allocations: 113.8 kB / 1.089 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=0): time 1.253e-06/0.3347, allocations: 0 / 1.089 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of matching and sorting (n=0): time 9.836e-05/0.3348, allocations: 30.06 kB / 1.089 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.516e-05/0.3349, allocations: 126.7 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.335, allocations: 93.86 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.3351, allocations: 25.7 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.019e-05/0.3351, allocations: 80.14 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.337e-06/0.3351, allocations: 8.125 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.878e-05/0.3352, allocations: 13.72 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001587/0.3353, allocations: 314.8 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.134e-05/0.3354, allocations: 0 / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.478e-06/0.3354, allocations: 11.86 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.878e-05/0.3354, allocations: 75.28 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.855e-05/0.3355, allocations: 83.22 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of matching and sorting (n=0) (initialization): time 9.888e-05/0.3356, allocations: 29.7 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.412e-05/0.3357, allocations: 83.28 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-05/0.3357, allocations: 79.28 kB / 1.09 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-05/0.3358, allocations: 154.5 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.281e-05/0.3359, allocations: 75.28 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.067e-05/0.3359, allocations: 158.5 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.3361, allocations: 92.61 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.289e-05/0.3361, allocations: 79.28 kB / 1.091 GB, free: 14.26 MB / 0.8575 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.0001743/0.3363, allocations: 264.3 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.836e-05/0.3364, allocations: 104.9 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.726e-05/0.3365, allocations: 112.1 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.96e-05/0.3366, allocations: 180.2 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.876e-05/0.3367, allocations: 184.2 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.779e-05/0.3368, allocations: 180.3 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003443/0.3371, allocations: 401.1 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.312e-05/0.3372, allocations: 109 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.377e-05/0.3373, allocations: 104.9 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.374e-05/0.3374, allocations: 184.3 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.3375, allocations: 184.2 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.548e-05/0.3376, allocations: 176.6 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.822e-05/0.3377, allocations: 180.2 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002032/0.3379, allocations: 311.7 kB / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.338, allocations: 190 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.3381, allocations: 180.2 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.3383, allocations: 105 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.3384, allocations: 180.2 kB / 1.094 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.687e-05/0.3385, allocations: 105 kB / 1.094 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.532e-05/0.3385, allocations: 75.28 kB / 1.094 GB, free: 10.6 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.7e-07/0.3385, allocations: 4.094 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004652/0.339, allocations: 0 / 1.094 GB, free: 10.59 MB / 0.8575 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.00055/0.3396, allocations: 0.8126 MB / 1.095 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 4.371e-05/0.3396, allocations: 0 / 1.095 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.3397, allocations: 4 kB / 1.095 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.014e-06/0.3397, allocations: 3.938 kB / 1.095 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005659/0.3402, allocations: 461.2 kB / 1.096 GB, free: 9.289 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001429/0.3417, allocations: 1.52 MB / 1.097 GB, free: 7.691 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004689/0.3422, allocations: 0.6806 MB / 1.098 GB, free: 6.984 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.907e-06/0.3422, allocations: 4.094 kB / 1.098 GB, free: 6.98 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.778e-05/0.3422, allocations: 7.438 kB / 1.098 GB, free: 6.973 MB / 0.8575 GB Notification: Performance of SimCode: time 3.11e-07/0.3422, allocations: 0 / 1.098 GB, free: 6.973 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0188/0.361, allocations: 0.9172 MB / 1.099 GB, free: 6.16 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.965/8.326, allocations: 12.25 kB / 1.099 GB, free: 6.152 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches