Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Integers.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.Integers.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Integers_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.00502/0.00502, allocations: 96.7 kB / 15.73 MB, free: 6.043 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.001456/0.001456, allocations: 196.8 kB / 16.67 MB, free: 5.969 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.302/1.302, allocations: 222.9 MB / 240.4 MB, free: 4.285 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.549/2.549, allocations: 469.8 MB / 0.7425 GB, free: 7.328 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 67.89 kB / 1.065 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2718, allocations: 159.1 MB / 1.22 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001748/0.2736, allocations: 0.8327 MB / 1.221 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001433/0.2751, allocations: 1.283 MB / 1.222 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.013e-05/0.2751, allocations: 4 kB / 1.222 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.338e-05/0.2752, allocations: 15.8 kB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.534e-05/0.2753, allocations: 15.8 kB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007384/0.276, allocations: 334.1 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003189/0.2763, allocations: 307.5 kB / 1.223 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.2765, allocations: 49.34 kB / 1.223 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.2766, allocations: 111.8 kB / 1.223 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001733/0.2768, allocations: 111.7 kB / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.772e-05/0.2768, allocations: 24 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.276e-05/0.2769, allocations: 47.92 kB / 1.223 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.951e-05/0.277, allocations: 23.92 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.2771, allocations: 111.6 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002932/0.2774, allocations: 255.2 kB / 1.224 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2774, allocations: 0 / 1.224 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2774, allocations: 0 / 1.224 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.758e-06/0.2774, allocations: 0 / 1.224 GB, free: 10.77 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006348/0.278, allocations: 0.5288 MB / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.2781, allocations: 8.031 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.066e-05/0.2781, allocations: 46.73 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.728e-05/0.2782, allocations: 16.89 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.2783, allocations: 197.6 kB / 1.224 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.813e-05/0.2784, allocations: 23.91 kB / 1.224 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.015e-05/0.2784, allocations: 16 kB / 1.224 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001582/0.2786, allocations: 85.66 kB / 1.224 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.2786, allocations: 0 / 1.224 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-06/0.2786, allocations: 0 / 1.224 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.2786, allocations: 4 kB / 1.224 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.972e-05/0.2787, allocations: 51.91 kB / 1.225 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006243/0.2793, allocations: 0.4926 MB / 1.225 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001881/0.2795, allocations: 66.61 kB / 1.225 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.09e-05/0.2796, allocations: 28.91 kB / 1.225 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.2796, allocations: 0 / 1.225 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001907/0.2798, allocations: 119.2 kB / 1.225 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.212e-06/0.2798, allocations: 3.938 kB / 1.225 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0003177/0.2801, allocations: 173.5 kB / 1.225 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.2802, allocations: 55.41 kB / 1.225 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.2803, allocations: 167.7 kB / 1.226 GB, free: 8.48 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.507e-05/0.2804, allocations: 29.7 kB / 1.226 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.916e-05/0.2805, allocations: 108.1 kB / 1.226 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.25e-05/0.2805, allocations: 39.73 kB / 1.226 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.2806, allocations: 77.66 kB / 1.226 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.2808, allocations: 326.8 kB / 1.226 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001932/0.281, allocations: 91.95 kB / 1.226 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002297/0.2812, allocations: 157.8 kB / 1.226 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002984/0.2815, allocations: 245.2 kB / 1.227 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.2815, allocations: 4 kB / 1.227 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005954/0.2821, allocations: 402.5 kB / 1.227 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 7.065e-05/0.2822, allocations: 101.1 kB / 1.227 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.2822, allocations: 4 kB / 1.227 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.2822, allocations: 0 / 1.227 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.08e-05/0.2823, allocations: 15.98 kB / 1.227 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.2823, allocations: 0 / 1.227 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004396/0.2827, allocations: 87.83 kB / 1.227 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.002e-05/0.2828, allocations: 23.92 kB / 1.227 GB, free: 6.676 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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.0001319/0.2829, allocations: 138.3 kB / 1.227 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.395e-05/0.283, allocations: 19.88 kB / 1.227 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.202e-05/0.283, allocations: 12.84 kB / 1.227 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.283, allocations: 0 / 1.227 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.283, allocations: 0 / 1.227 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.283, allocations: 0 / 1.227 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001872/0.2832, allocations: 225.5 kB / 1.228 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.2832, allocations: 3.938 kB / 1.228 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.128e-05/0.2833, allocations: 12 kB / 1.228 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.2833, allocations: 0 / 1.228 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.2833, allocations: 7.938 kB / 1.228 GB, free: 6.203 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.2833, allocations: 0 / 1.228 GB, free: 6.203 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2833, allocations: 0 / 1.228 GB, free: 6.203 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002161/0.2835, allocations: 160.9 kB / 1.228 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.59e-05/0.2836, allocations: 100.9 kB / 1.228 GB, free: 5.914 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.2836, allocations: 4 kB / 1.228 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.746e-05/0.2836, allocations: 0 / 1.228 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.545e-05/0.2837, allocations: 15.98 kB / 1.228 GB, free: 5.895 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.836e-06/0.2837, allocations: 4 kB / 1.228 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.91e-05/0.2838, allocations: 117 kB / 1.228 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2838, allocations: 0 / 1.228 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002492/0.284, allocations: 51.94 kB / 1.228 GB, free: 5.727 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0005132/0.2845, allocations: 0.7174 MB / 1.229 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000474/0.285, allocations: 382 kB / 1.229 GB, free: 4.574 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.285, allocations: 0 / 1.229 GB, free: 4.574 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.083e-05/0.2851, allocations: 47.98 kB / 1.229 GB, free: 4.527 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002507/0.2854, allocations: 44.33 kB / 1.229 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00253/0.2879, allocations: 2.25 MB / 1.231 GB, free: 2.098 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/0.2882, allocations: 0.7162 MB / 1.232 GB, free: 1.355 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.717e-05/0.2883, allocations: 12.64 kB / 1.232 GB, free: 1.344 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.551e-05/0.2883, allocations: 35.42 kB / 1.232 GB, free: 1.309 MB / 0.9825 GB Notification: Performance of SimCode: time 2.21e-07/0.2883, allocations: 0 / 1.232 GB, free: 1.309 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.283/1.572, allocations: 4.228 MB / 1.236 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/11.84, allocations: 4.578 kB / 1.236 GB, free: 13.2 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches