Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Validation.Change,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Change,fileNamePrefix="Buildings_9_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.007594/0.007594, allocations: 103.8 kB / 15.73 MB, free: 6.051 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.001779/0.00178, allocations: 191.5 kB / 16.67 MB, free: 5.984 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.427/1.427, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.44/2.44, allocations: 390.2 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.66 kB / 0.9504 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3051/0.3064, allocations: 140.4 MB / 1.087 GB, free: 1.973 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.00217/0.3086, allocations: 0.7523 MB / 1.088 GB, free: 1.219 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001594/0.3102, allocations: 1.141 MB / 1.089 GB, free: 64 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.592e-05/0.3103, allocations: 0 / 1.089 GB, free: 64 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.897e-05/0.3104, allocations: 3.938 kB / 1.089 GB, free: 60 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.823e-05/0.3104, allocations: 23.8 kB / 1.089 GB, free: 36 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006037/0.311, allocations: 135.2 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001877/0.3112, allocations: 115.8 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.3114, allocations: 23.97 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.3115, allocations: 43.91 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001098/0.3116, allocations: 47.81 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.586e-05/0.3116, allocations: 12 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.954e-05/0.3117, allocations: 23.98 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.551e-05/0.3117, allocations: 11.98 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.658e-05/0.3118, allocations: 43.84 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002089/0.312, allocations: 111.6 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.312, allocations: 0 / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.524e-06/0.3121, allocations: 0 / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.3121, allocations: 4 kB / 1.09 GB, free: 15.48 MB / 0.8575 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.0008045/0.3129, allocations: 412.6 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.916e-05/0.3129, allocations: 12.03 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.349e-05/0.313, allocations: 38.73 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.823e-05/0.3131, allocations: 8.875 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001686/0.3133, allocations: 168.3 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.699e-05/0.3133, allocations: 4.375 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.156e-05/0.3133, allocations: 8.375 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002323/0.3136, allocations: 66.22 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.3136, allocations: 7.875 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.3136, allocations: 0 / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.3136, allocations: 7.938 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000191/0.3138, allocations: 39.95 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006349/0.3145, allocations: 336.6 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.3147, allocations: 62.55 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.3148, allocations: 32.97 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.3148, allocations: 0 / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002987/0.3151, allocations: 91.42 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 2.274e-06/0.3151, allocations: 4 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004885/0.3156, allocations: 141.5 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.713e-05/0.3157, allocations: 51.41 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.3158, allocations: 121.8 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.3159, allocations: 29.7 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.511e-05/0.316, allocations: 92.14 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.772e-05/0.316, allocations: 19.78 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.377e-05/0.3161, allocations: 37.7 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.3162, allocations: 326.8 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.3164, allocations: 47.97 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001936/0.3166, allocations: 88.25 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002911/0.3169, allocations: 133.9 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3169, allocations: 0 / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000478/0.3174, allocations: 219.1 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.152e-05/0.3175, allocations: 41.69 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.3175, allocations: 4.062 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.3175, allocations: 4 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.906e-05/0.3176, allocations: 11.98 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.3176, allocations: 3.938 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002185/0.3178, allocations: 39.94 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.683e-05/0.3179, allocations: 11.98 kB / 1.093 GB, free: 12.52 MB / 0.8575 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 0.0001455/0.318, allocations: 125.7 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.451e-05/0.318, allocations: 4 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.7e-05/0.3181, allocations: 12.38 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.3181, allocations: 3.984 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.3181, allocations: 0 / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.3181, allocations: 4 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005019/0.3186, allocations: 374.6 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3186, allocations: 3.938 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.839e-05/0.3187, allocations: 11.98 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.3187, allocations: 0 / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-06/0.3187, allocations: 0 / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3187, allocations: 0 / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.3187, allocations: 4 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003244/0.3191, allocations: 219.3 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.039e-05/0.3191, allocations: 81.09 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.3192, allocations: 4 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.238e-05/0.3192, allocations: 4 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.195e-05/0.3193, allocations: 11.92 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-06/0.3193, allocations: 8 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.262e-05/0.3194, allocations: 95.75 kB / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.3194, allocations: 0 / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002839/0.3197, allocations: 24 kB / 1.093 GB, free: 11.45 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: 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.0007088/0.3204, allocations: 0.7583 MB / 1.094 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004012/0.3208, allocations: 175.3 kB / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3208, allocations: 0 / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001183/0.321, allocations: 31.98 kB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.3213, allocations: 21.58 kB / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00234/0.3236, allocations: 1.697 MB / 1.096 GB, free: 8.625 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.3239, allocations: 0.6846 MB / 1.097 GB, free: 7.914 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.862e-05/0.324, allocations: 7.984 kB / 1.097 GB, free: 7.906 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.765e-05/0.324, allocations: 19.44 kB / 1.097 GB, free: 7.887 MB / 0.8575 GB Notification: Performance of SimCode: time 7.01e-07/0.3241, allocations: 0 / 1.097 GB, free: 7.887 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0199/0.344, allocations: 2.562 MB / 1.099 GB, free: 5.426 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.98/8.324, allocations: 9.781 kB / 1.099 GB, free: 5.418 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_OBC_CDL_Logical_Validation_Change.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Change.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches