Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_11_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.001235/0.001235, 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.001148/0.001148, allocations: 195.8 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.287/1.287, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.591/2.591, allocations: 469.8 MB / 0.7424 GB, free: 7.453 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 64.78 kB / 0.9087 GB, free: 34.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2579, allocations: 159.2 MB / 1.064 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002132/0.26, allocations: 0.717 MB / 1.065 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001679/0.2617, allocations: 1.258 MB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.817e-05/0.2618, allocations: 4 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.286e-05/0.2618, allocations: 11.81 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.76e-05/0.2619, allocations: 15.86 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008263/0.2628, allocations: 305.1 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003247/0.2631, allocations: 275.7 kB / 1.067 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.772e-05/0.2632, allocations: 12.19 kB / 1.067 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001554/0.2634, allocations: 103.8 kB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/0.2635, allocations: 75.77 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.279e-05/0.2636, allocations: 20 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.211e-05/0.2637, allocations: 36 kB / 1.067 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.997e-05/0.2637, allocations: 23.91 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.2638, allocations: 83.73 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002782/0.2641, allocations: 215.8 kB / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2641, allocations: 0 / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2641, allocations: 0 / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.103e-06/0.2641, allocations: 0 / 1.067 GB, free: 11.08 MB / 0.8262 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.0005956/0.2647, allocations: 492.2 kB / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.2648, allocations: 12.03 kB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.663e-05/0.2648, allocations: 38.73 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.381e-05/0.2649, allocations: 20.84 kB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000132/0.265, allocations: 173.8 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.2651, allocations: 12.36 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.204e-05/0.2651, allocations: 16.38 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.2652, allocations: 57.98 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.2652, allocations: 0 / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.2653, allocations: 0 / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.2653, allocations: 4 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.07e-05/0.2653, allocations: 15.98 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005484/0.2659, allocations: 424.5 kB / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 6.804e-05/0.266, allocations: 30.56 kB / 1.068 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.686e-05/0.266, allocations: 20.94 kB / 1.068 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.417e-06/0.266, allocations: 0 / 1.068 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000205/0.2662, allocations: 115.1 kB / 1.069 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.362e-06/0.2662, allocations: 0 / 1.069 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0002972/0.2665, allocations: 133.5 kB / 1.069 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/0.2666, allocations: 59.39 kB / 1.069 GB, free: 9.281 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.2667, allocations: 127.9 kB / 1.069 GB, free: 9.148 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.985e-05/0.2668, allocations: 37.7 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.453e-05/0.2668, allocations: 92.05 kB / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.117e-05/0.2669, allocations: 23.86 kB / 1.069 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.267, allocations: 69.67 kB / 1.069 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.2671, allocations: 322.8 kB / 1.069 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001861/0.2673, allocations: 91.94 kB / 1.069 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.2675, allocations: 131.8 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/0.2678, allocations: 240.3 kB / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2678, allocations: 0 / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005986/0.2685, allocations: 379.8 kB / 1.07 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.083e-05/0.2685, allocations: 101.1 kB / 1.07 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.2685, allocations: 4 kB / 1.07 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.2686, allocations: 0 / 1.07 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.926e-05/0.2686, allocations: 15.88 kB / 1.07 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.2686, allocations: 7.984 kB / 1.07 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004983/0.2691, allocations: 79.84 kB / 1.07 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.858e-05/0.2692, allocations: 19.98 kB / 1.07 GB, free: 7.441 MB / 0.8262 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.0001197/0.2693, allocations: 125.8 kB / 1.07 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.099e-05/0.2693, allocations: 15.89 kB / 1.071 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.525e-05/0.2693, allocations: 8.375 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.2694, allocations: 4 kB / 1.071 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.2694, allocations: 0 / 1.071 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.2694, allocations: 8.297 kB / 1.071 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001672/0.2695, allocations: 205.5 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2696, allocations: 0 / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.073e-05/0.2696, allocations: 4 kB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.2696, allocations: 3.938 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.2696, allocations: 0 / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.2696, allocations: 0 / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.2696, allocations: 4 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001784/0.2698, allocations: 136.9 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.669e-05/0.2698, allocations: 89.02 kB / 1.071 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.2699, allocations: 4 kB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.239e-05/0.2699, allocations: 3.984 kB / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.603e-05/0.2699, allocations: 8 kB / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.899e-06/0.2699, allocations: 7.984 kB / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.989e-05/0.27, allocations: 95.27 kB / 1.071 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.11e-07/0.27, allocations: 0 / 1.071 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000255/0.2703, allocations: 47.91 kB / 1.071 GB, free: 6.59 MB / 0.8262 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.0005246/0.2708, allocations: 0.6787 MB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004805/0.2713, allocations: 370 kB / 1.072 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2713, allocations: 0 / 1.072 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.578e-05/0.2714, allocations: 39.92 kB / 1.072 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002492/0.2716, allocations: 26.39 kB / 1.072 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002555/0.2742, allocations: 2.05 MB / 1.074 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/0.2745, allocations: 0.6963 MB / 1.075 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.278e-05/0.2746, allocations: 4.438 kB / 1.075 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.112e-05/0.2746, allocations: 31.42 kB / 1.075 GB, free: 2.477 MB / 0.8262 GB Notification: Performance of SimCode: time 5.41e-07/0.2746, allocations: 0 / 1.075 GB, free: 2.477 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.731/2.005, allocations: 3.788 MB / 1.079 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.398/10.4, allocations: 9.531 kB / 1.079 GB, free: 14.79 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches