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.006953/0.006953, allocations: 102.9 kB / 15.74 MB, free: 6.496 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.001585/0.001585, allocations: 198.8 kB / 16.68 MB, free: 6.375 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.366/2.366, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 64.31 kB / 0.9504 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3026, allocations: 140.4 MB / 1.088 GB, free: 1.941 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.00225/0.3049, allocations: 0.751 MB / 1.088 GB, free: 1.191 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001552/0.3065, allocations: 1.157 MB / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.334e-05/0.3066, allocations: 0 / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.098e-05/0.3066, allocations: 3.938 kB / 1.089 GB, free: 16 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.464e-05/0.3067, allocations: 11.86 kB / 1.089 GB, free: 4 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005848/0.3073, allocations: 127.6 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000187/0.3075, allocations: 131.8 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.3076, allocations: 12 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001063/0.3077, allocations: 43.91 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.3078, allocations: 55.8 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.944e-05/0.3079, allocations: 8 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.308, allocations: 27.98 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.68e-05/0.308, allocations: 11.94 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.288e-05/0.3081, allocations: 39.84 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002154/0.3083, allocations: 119.9 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3084, allocations: 0 / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3084, allocations: 0 / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.484e-06/0.3084, allocations: 0 / 1.09 GB, free: 15.44 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.0007195/0.3091, allocations: 412.9 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.3092, allocations: 8.031 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.194e-05/0.3092, allocations: 38.75 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.844e-05/0.3093, allocations: 8.891 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.3094, allocations: 168.4 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.908e-05/0.3094, allocations: 12.31 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.386e-05/0.3095, allocations: 4.375 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002202/0.3097, allocations: 70.16 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.3097, allocations: 3.938 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.3097, allocations: 0 / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.3098, allocations: 3.938 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00019/0.3099, allocations: 47.95 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005613/0.3105, allocations: 336.6 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001958/0.3107, allocations: 62.53 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.3109, allocations: 40.95 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/0.3109, allocations: 0 / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003055/0.3112, allocations: 83.36 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.653e-06/0.3112, allocations: 0 / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0005126/0.3117, allocations: 145.5 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.305e-05/0.3118, allocations: 51.41 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.3119, allocations: 121.8 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/0.312, allocations: 29.7 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.949e-05/0.3121, allocations: 96.16 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.772e-05/0.3121, allocations: 15.91 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.12e-05/0.3122, allocations: 41.69 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001588/0.3124, allocations: 322.8 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.3126, allocations: 51.95 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.3127, allocations: 84.25 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002632/0.313, allocations: 141.9 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.313, allocations: 0 / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000435/0.3135, allocations: 211.1 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.987e-05/0.3135, allocations: 29.83 kB / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.3135, allocations: 11.98 kB / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.3136, allocations: 3.938 kB / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.056e-05/0.3136, allocations: 12 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.3137, allocations: 12.3 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002098/0.3139, allocations: 39.86 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.083e-05/0.3139, allocations: 7.984 kB / 1.093 GB, free: 12.48 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 9.926e-05/0.314, allocations: 125.8 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.477e-05/0.314, allocations: 4 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.557e-05/0.3141, allocations: 8.375 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.3141, allocations: 4 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3141, allocations: 0 / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3141, allocations: 0 / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004425/0.3145, allocations: 382.3 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3145, allocations: 4 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.737e-05/0.3146, allocations: 15.98 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.3146, allocations: 0 / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.3146, allocations: 0 / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3146, allocations: 0 / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3146, allocations: 0 / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003217/0.315, allocations: 219.3 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.982e-05/0.315, allocations: 81.05 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.073e-05/0.3151, allocations: 4 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.656e-05/0.3152, allocations: 7.984 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.923e-05/0.3152, allocations: 11.92 kB / 1.093 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-06/0.3152, allocations: 4 kB / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.061e-05/0.3153, allocations: 99.75 kB / 1.093 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.11e-07/0.3153, allocations: 0 / 1.093 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002717/0.3156, allocations: 27.89 kB / 1.093 GB, free: 11.4 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.0006905/0.3163, allocations: 0.7437 MB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003867/0.3167, allocations: 175.3 kB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3167, allocations: 0 / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001207/0.3168, allocations: 39.97 kB / 1.094 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.3171, allocations: 19.86 kB / 1.094 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002115/0.3192, allocations: 1.69 MB / 1.096 GB, free: 8.59 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.3195, allocations: 0.6924 MB / 1.097 GB, free: 7.871 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.044e-05/0.3196, allocations: 4 kB / 1.097 GB, free: 7.867 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.407e-05/0.3196, allocations: 23.42 kB / 1.097 GB, free: 7.844 MB / 0.8575 GB Notification: Performance of SimCode: time 6.82e-07/0.3196, allocations: 0 / 1.097 GB, free: 7.844 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01835/0.338, allocations: 2.555 MB / 1.099 GB, free: 5.391 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.798/8.136, allocations: 0 / 1.099 GB, free: 5.391 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