Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Validation.Change,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Change,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Change",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.001979/0.001979, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002397/0.002397, allocations: 194.9 kB / 16.53 MB, free: 6.664 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.341/1.341, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.649/2.649, allocations: 437 MB / 0.7104 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001413, allocations: 71.89 kB / 0.8694 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5812/0.5826, allocations: 151.6 MB / 1.017 GB, free: 2.57 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.002013/0.5847, allocations: 0.751 MB / 1.018 GB, free: 1.82 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001359/0.5861, allocations: 1.144 MB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.027e-05/0.5861, allocations: 0 / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.731e-05/0.5862, allocations: 11.92 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.559e-05/0.5862, allocations: 7.922 kB / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004991/0.5868, allocations: 135.2 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001466/0.5869, allocations: 123.7 kB / 1.02 GB, free: 400 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.827e-05/0.587, allocations: 23.97 kB / 1.02 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.736e-05/0.5871, allocations: 43.91 kB / 1.02 GB, free: 332 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.228e-05/0.5872, allocations: 43.83 kB / 1.02 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.686e-05/0.5872, allocations: 12 kB / 1.02 GB, free: 276 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.213e-05/0.5873, allocations: 19.98 kB / 1.02 GB, free: 256 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.562e-05/0.5873, allocations: 19.97 kB / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.775e-05/0.5874, allocations: 35.86 kB / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000159/0.5876, allocations: 111.7 kB / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.5876, allocations: 0 / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of FrontEnd: time 9.62e-07/0.5876, allocations: 0 / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.14e-06/0.5876, allocations: 4 kB / 1.02 GB, free: 84 kB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005396/0.5881, allocations: 411.4 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.5882, allocations: 12.03 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.829e-05/0.5882, allocations: 30.75 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.038e-05/0.5883, allocations: 8.844 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.5884, allocations: 180.2 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.5884, allocations: 8.375 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.579e-05/0.5884, allocations: 16.31 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/0.5886, allocations: 70.2 kB / 1.021 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.5886, allocations: 3.938 kB / 1.021 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.5887, allocations: 0 / 1.021 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.5887, allocations: 0 / 1.021 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001766/0.5888, allocations: 43.95 kB / 1.021 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000448/0.5893, allocations: 332.7 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.5895, allocations: 54.61 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.5896, allocations: 36.95 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.189e-05/0.5896, allocations: 0 / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002127/0.5898, allocations: 95.2 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.453e-06/0.5898, allocations: 0 / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0004205/0.5903, allocations: 137.7 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.5903, allocations: 55.34 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.819e-05/0.5904, allocations: 129.7 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.5904, allocations: 37.7 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.817e-05/0.5905, allocations: 88.14 kB / 1.022 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/0.5905, allocations: 15.75 kB / 1.022 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.987e-05/0.5906, allocations: 41.69 kB / 1.022 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.994e-05/0.5907, allocations: 322.8 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.5908, allocations: 51.95 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001643/0.591, allocations: 92.19 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/0.5913, allocations: 137.9 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.5913, allocations: 0 / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004264/0.5917, allocations: 211.5 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.455e-05/0.5918, allocations: 37.69 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.5918, allocations: 0 / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.5918, allocations: 3.938 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.426e-05/0.5919, allocations: 11.98 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.5919, allocations: 12.11 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000219/0.5921, allocations: 35.95 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.5922, allocations: 11.98 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,change.y,change.u,$PRE.change.u,booPul.y,$PRE.booPul.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 9.219e-05/0.5923, allocations: 119.3 kB / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.727e-05/0.5923, allocations: 11.84 kB / 1.023 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.782e-05/0.5923, allocations: 8.375 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.5923, allocations: 8 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.5923, allocations: 3.984 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.5923, allocations: 0 / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004201/0.5928, allocations: 374.4 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.5928, allocations: 0 / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.824e-05/0.5928, allocations: 19.86 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.5928, allocations: 3.938 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-06/0.5929, allocations: 4 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.5929, allocations: 0 / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.5929, allocations: 4.062 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002717/0.5932, allocations: 203.4 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.758e-05/0.5932, allocations: 88.94 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.988e-05/0.5932, allocations: 8 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.982e-05/0.5933, allocations: 8 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.879e-05/0.5934, allocations: 7.922 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.5934, allocations: 8 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.447e-05/0.5934, allocations: 91.27 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5934, allocations: 0 / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002524/0.5937, allocations: 20 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (change.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,change.u,triggeredSampler.y) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006055/0.5943, allocations: 0.7514 MB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000367/0.5947, allocations: 175.3 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.5947, allocations: 0 / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.5948, allocations: 48.16 kB / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/0.5951, allocations: 17.66 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001964/0.5971, allocations: 1.668 MB / 1.026 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002198/0.5973, allocations: 0.6962 MB / 1.027 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.271e-05/0.5973, allocations: 7.859 kB / 1.027 GB, free: 8.504 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.296e-05/0.5974, allocations: 19.44 kB / 1.027 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of SimCode: time 2.01e-07/0.5974, allocations: 0 / 1.027 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01989/0.6173, allocations: 2.518 MB / 1.029 GB, free: 6.047 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.983/7.6, allocations: 12.97 kB / 1.029 GB, free: 6.035 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Change.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Change.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches