Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Reals.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_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.006532/0.006532, allocations: 99.41 kB / 15.73 MB, free: 5.551 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.001659/0.001659, allocations: 197 kB / 16.68 MB, free: 5.48 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.772/2.772, allocations: 482.6 MB / 0.755 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 63.89 kB / 1.083 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2915, allocations: 162.3 MB / 1.242 GB, free: 9.77 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001813/0.2934, allocations: 0.7954 MB / 1.243 GB, free: 8.98 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00132/0.2947, allocations: 1.151 MB / 1.244 GB, free: 7.816 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.809e-05/0.2947, allocations: 0 / 1.244 GB, free: 7.816 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.306e-05/0.2948, allocations: 7.875 kB / 1.244 GB, free: 7.809 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.994e-05/0.2949, allocations: 11.86 kB / 1.244 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004178/0.2953, allocations: 127.7 kB / 1.244 GB, free: 7.672 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001799/0.2955, allocations: 131.8 kB / 1.244 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.354e-05/0.2956, allocations: 23.95 kB / 1.244 GB, free: 7.52 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.057e-05/0.2956, allocations: 47.91 kB / 1.244 GB, free: 7.473 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.413e-05/0.2957, allocations: 55.81 kB / 1.244 GB, free: 7.418 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.889e-05/0.2958, allocations: 15.94 kB / 1.244 GB, free: 7.402 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.882e-05/0.2959, allocations: 31.91 kB / 1.244 GB, free: 7.371 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.572e-05/0.2959, allocations: 15.92 kB / 1.244 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.164e-05/0.296, allocations: 39.86 kB / 1.244 GB, free: 7.316 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001684/0.2961, allocations: 115.6 kB / 1.244 GB, free: 7.203 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2961, allocations: 4 kB / 1.244 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.062e-06/0.2961, allocations: 0 / 1.244 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.147e-06/0.2962, allocations: 0 / 1.244 GB, free: 7.199 MB / 0.9981 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.000597/0.2968, allocations: 428.8 kB / 1.245 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.065e-05/0.2968, allocations: 12.03 kB / 1.245 GB, free: 6.711 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.425e-05/0.2968, allocations: 34.75 kB / 1.245 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.238e-05/0.2969, allocations: 12.89 kB / 1.245 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.297, allocations: 179.6 kB / 1.245 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.297, allocations: 4.375 kB / 1.245 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.01e-05/0.297, allocations: 8.375 kB / 1.245 GB, free: 6.434 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002495/0.2973, allocations: 82.14 kB / 1.245 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.2973, allocations: 3.938 kB / 1.245 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.2973, allocations: 4 kB / 1.245 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.2973, allocations: 4 kB / 1.245 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002931/0.2976, allocations: 63.92 kB / 1.245 GB, free: 6.273 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004149/0.2981, allocations: 336.7 kB / 1.246 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001831/0.2982, allocations: 54.48 kB / 1.246 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.2984, allocations: 40.91 kB / 1.246 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.2984, allocations: 3.938 kB / 1.246 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002599/0.2987, allocations: 95.34 kB / 1.246 GB, free: 5.68 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 1.373e-06/0.2987, allocations: 4 kB / 1.246 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0005727/0.2993, allocations: 165.5 kB / 1.246 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.063e-05/0.2993, allocations: 55.41 kB / 1.246 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.681e-05/0.2994, allocations: 126.1 kB / 1.246 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.2995, allocations: 29.7 kB / 1.246 GB, free: 5.27 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.574e-05/0.2995, allocations: 100.2 kB / 1.246 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.2996, allocations: 15.83 kB / 1.246 GB, free: 5.152 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.195e-05/0.2996, allocations: 37.7 kB / 1.246 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.2998, allocations: 318.8 kB / 1.247 GB, free: 4.789 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002138/0.3, allocations: 63.94 kB / 1.247 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.3002, allocations: 82.52 kB / 1.247 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003655/0.3006, allocations: 140.1 kB / 1.247 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.3006, allocations: 4 kB / 1.247 GB, free: 4.48 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005273/0.3011, allocations: 211.3 kB / 1.247 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.612e-05/0.3012, allocations: 41.62 kB / 1.247 GB, free: 4.215 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-06/0.3012, allocations: 4.062 kB / 1.247 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.818e-06/0.3012, allocations: 0 / 1.247 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.3013, allocations: 19.98 kB / 1.247 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.3013, allocations: 0 / 1.247 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002186/0.3016, allocations: 35.95 kB / 1.247 GB, free: 4.156 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.158e-05/0.3016, allocations: 7.984 kB / 1.247 GB, free: 4.148 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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.756e-05/0.3017, allocations: 129.7 kB / 1.247 GB, free: 4.012 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.314e-05/0.3017, allocations: 4.266 kB / 1.247 GB, free: 4.008 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.666e-05/0.3017, allocations: 16.36 kB / 1.247 GB, free: 3.992 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.3017, allocations: 0 / 1.247 GB, free: 3.992 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3018, allocations: 4 kB / 1.247 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.3018, allocations: 0 / 1.247 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001479/0.3019, allocations: 189.5 kB / 1.247 GB, free: 3.754 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.3019, allocations: 0 / 1.247 GB, free: 3.754 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.644e-05/0.302, allocations: 15.98 kB / 1.247 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.302, allocations: 0 / 1.247 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.3021, allocations: 8 kB / 1.247 GB, free: 3.73 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3021, allocations: 0 / 1.247 GB, free: 3.73 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.3021, allocations: 3.984 kB / 1.247 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003898/0.3025, allocations: 156.8 kB / 1.248 GB, free: 3.555 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.477e-05/0.3025, allocations: 85.05 kB / 1.248 GB, free: 3.453 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.3025, allocations: 8 kB / 1.248 GB, free: 3.445 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.02e-05/0.3026, allocations: 7.984 kB / 1.248 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.514e-05/0.3027, allocations: 11.98 kB / 1.248 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.3027, allocations: 4 kB / 1.248 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.871e-05/0.3027, allocations: 91.27 kB / 1.248 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3027, allocations: 0 / 1.248 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002055/0.303, allocations: 23.94 kB / 1.248 GB, free: 3.309 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007299/0.3037, allocations: 0.691 MB / 1.249 GB, free: 2.59 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000476/0.3042, allocations: 191.2 kB / 1.249 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3042, allocations: 0 / 1.249 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001776/0.3044, allocations: 51.89 kB / 1.249 GB, free: 2.34 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000202/0.3046, allocations: 22.48 kB / 1.249 GB, free: 2.32 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00215/0.3067, allocations: 1.635 MB / 1.25 GB, free: 0.582 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4657/0.7725, allocations: 0.6868 MB / 1.251 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.125e-05/0.7726, allocations: 5.188 kB / 1.251 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.538e-05/0.7726, allocations: 21.47 kB / 1.251 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of SimCode: time 8.72e-07/0.7726, allocations: 0 / 1.251 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.017/1.789, allocations: 2.681 MB / 1.254 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/13, allocations: 1.656 kB / 1.254 GB, free: 14.04 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches