Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",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.009278/0.009277, allocations: 98.09 kB / 15.73 MB, free: 6.012 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.00192/0.00192, allocations: 197.2 kB / 16.67 MB, free: 5.949 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 4.309 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.671/2.671, allocations: 437 MB / 0.7105 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001437, allocations: 75.88 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2805, allocations: 151.6 MB / 1.166 GB, free: 7.301 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001946/0.2825, allocations: 0.6955 MB / 1.167 GB, free: 6.605 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001711/0.2842, allocations: 1.273 MB / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.412e-05/0.2843, allocations: 0 / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.021e-05/0.2844, allocations: 7.875 kB / 1.168 GB, free: 5.309 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.628e-05/0.2845, allocations: 23.84 kB / 1.168 GB, free: 5.285 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008882/0.2854, allocations: 305.9 kB / 1.168 GB, free: 4.992 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003545/0.2857, allocations: 275.6 kB / 1.169 GB, free: 4.723 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.2859, allocations: 20.19 kB / 1.169 GB, free: 4.699 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.286, allocations: 103.8 kB / 1.169 GB, free: 4.598 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001809/0.2862, allocations: 99.67 kB / 1.169 GB, free: 4.5 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.058e-05/0.2863, allocations: 20 kB / 1.169 GB, free: 4.48 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.2864, allocations: 35.98 kB / 1.169 GB, free: 4.445 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.883e-05/0.2864, allocations: 15.98 kB / 1.169 GB, free: 4.43 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001131/0.2866, allocations: 79.75 kB / 1.169 GB, free: 4.352 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002833/0.2868, allocations: 223.6 kB / 1.169 GB, free: 4.133 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2869, allocations: 0 / 1.169 GB, free: 4.133 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.783e-06/0.2869, allocations: 0 / 1.169 GB, free: 4.133 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.324e-06/0.2869, allocations: 4 kB / 1.169 GB, free: 4.129 MB / 0.92 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.0006318/0.2875, allocations: 496.2 kB / 1.17 GB, free: 3.578 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.2876, allocations: 8.031 kB / 1.17 GB, free: 3.57 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.694e-05/0.2876, allocations: 38.73 kB / 1.17 GB, free: 3.523 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.276e-05/0.2877, allocations: 16.89 kB / 1.17 GB, free: 3.508 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/0.2878, allocations: 176.2 kB / 1.17 GB, free: 3.297 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.2878, allocations: 12.36 kB / 1.17 GB, free: 3.285 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.962e-05/0.2879, allocations: 16.38 kB / 1.17 GB, free: 3.27 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.288, allocations: 53.98 kB / 1.17 GB, free: 3.211 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.116e-06/0.288, allocations: 4 kB / 1.17 GB, free: 3.207 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.2881, allocations: 8 kB / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.2881, allocations: 0 / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.449e-05/0.2881, allocations: 19.98 kB / 1.17 GB, free: 3.18 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005385/0.2887, allocations: 420.4 kB / 1.17 GB, free: 2.719 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 6.564e-05/0.2887, allocations: 30.56 kB / 1.171 GB, free: 2.68 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.64e-05/0.2888, allocations: 20.94 kB / 1.171 GB, free: 2.656 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 8.206e-06/0.2888, allocations: 4 kB / 1.171 GB, free: 2.652 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/0.289, allocations: 107.2 kB / 1.171 GB, free: 2.535 MB / 0.92 GB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.289, allocations: 0 / 1.171 GB, free: 2.535 MB / 0.92 GB Notification: Performance of matching and sorting (n=10): time 0.0002945/0.2893, allocations: 137.8 kB / 1.171 GB, free: 2.395 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.031e-05/0.2894, allocations: 59.39 kB / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.2895, allocations: 132.7 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/0.2895, allocations: 45.64 kB / 1.171 GB, free: 2.137 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.767e-05/0.2896, allocations: 92.14 kB / 1.171 GB, free: 2.043 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.845e-05/0.2897, allocations: 23.91 kB / 1.171 GB, free: 2.02 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/0.2898, allocations: 69.67 kB / 1.171 GB, free: 1.945 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.2899, allocations: 318.8 kB / 1.171 GB, free: 1.625 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000193/0.2901, allocations: 91.94 kB / 1.172 GB, free: 1.535 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.2903, allocations: 134 kB / 1.172 GB, free: 1.383 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002691/0.2906, allocations: 238.8 kB / 1.172 GB, free: 1.113 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.2906, allocations: 4 kB / 1.172 GB, free: 1.109 MB / 0.92 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005928/0.2912, allocations: 374.5 kB / 1.172 GB, free: 0.7188 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 8.11e-05/0.2913, allocations: 93.09 kB / 1.172 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.2913, allocations: 4 kB / 1.172 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.2913, allocations: 4 kB / 1.172 GB, free: 0.6016 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.538e-05/0.2914, allocations: 3.938 kB / 1.172 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.2914, allocations: 4 kB / 1.172 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004943/0.2919, allocations: 91.97 kB / 1.172 GB, free: 0.5039 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.07e-05/0.2919, allocations: 15.98 kB / 1.172 GB, free: 500 kB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.0001191/0.2921, allocations: 135.9 kB / 1.173 GB, free: 356 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.704e-05/0.2921, allocations: 7.953 kB / 1.173 GB, free: 348 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.015e-05/0.2921, allocations: 16.38 kB / 1.173 GB, free: 328 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2921, allocations: 0 / 1.173 GB, free: 328 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.2921, allocations: 0 / 1.173 GB, free: 328 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.2921, allocations: 3.984 kB / 1.173 GB, free: 324 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001427/0.2923, allocations: 189.6 kB / 1.173 GB, free: 84 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2923, allocations: 0 / 1.173 GB, free: 84 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.267e-05/0.2923, allocations: 4 kB / 1.173 GB, free: 80 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.2923, allocations: 3.984 kB / 1.173 GB, free: 76 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.2923, allocations: 11.92 kB / 1.173 GB, free: 64 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.2923, allocations: 80 / 1.173 GB, free: 64 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.2924, allocations: 7.984 kB / 1.173 GB, free: 56 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001976/0.2926, allocations: 136.9 kB / 1.173 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.386e-05/0.2926, allocations: 89.05 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.791e-05/0.2926, allocations: 0 / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.628e-05/0.2927, allocations: 4 kB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.734e-05/0.2927, allocations: 12.08 kB / 1.173 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-06/0.2927, allocations: 7.938 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.791e-05/0.2928, allocations: 103.2 kB / 1.173 GB, free: 15.67 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2928, allocations: 4 kB / 1.173 GB, free: 15.67 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002748/0.2931, allocations: 47.95 kB / 1.173 GB, free: 15.62 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004857/0.2936, allocations: 0.6865 MB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004897/0.2941, allocations: 366.3 kB / 1.174 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2941, allocations: 0 / 1.174 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 7.272e-05/0.2942, allocations: 39.92 kB / 1.174 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002748/0.2944, allocations: 19.97 kB / 1.174 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002442/0.2969, allocations: 2.062 MB / 1.176 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002643/0.2972, allocations: 0.6963 MB / 1.177 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.584e-05/0.2972, allocations: 4.438 kB / 1.177 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.491e-05/0.2973, allocations: 35.36 kB / 1.177 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of SimCode: time 2.11e-07/0.2973, allocations: 0 / 1.177 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02138/0.3187, allocations: 3.825 MB / 1.181 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.823/8.142, allocations: 0 / 1.181 GB, free: 7.785 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_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_Switch.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches