Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Shade.Validation.Shade_H,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_H",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_H,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_H",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.001425/0.001425, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00138/0.00138, allocations: 194.9 kB / 16.14 MB, free: 6.645 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.289/1.289, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.568/2.568, allocations: 461.8 MB / 0.7342 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 64.67 kB / 0.8985 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2687, allocations: 157.4 MB / 1.052 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.002053/0.2708, allocations: 0.7675 MB / 1.053 GB, free: 7.441 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009839/0.2718, allocations: 0.8469 MB / 1.054 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.281e-05/0.2719, allocations: 0 / 1.054 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.763e-05/0.2719, allocations: 7.938 kB / 1.054 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.936e-05/0.272, allocations: 7.922 kB / 1.054 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001449/0.2722, allocations: 15.98 kB / 1.054 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.327e-05/0.2723, allocations: 59.78 kB / 1.054 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.2724, allocations: 16 kB / 1.054 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.705e-05/0.2725, allocations: 27.84 kB / 1.054 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.669e-05/0.2726, allocations: 31.84 kB / 1.054 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.2726, allocations: 0 / 1.054 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.198e-05/0.2726, allocations: 4 kB / 1.054 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.888e-05/0.2726, allocations: 8 kB / 1.054 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.675e-05/0.2727, allocations: 23.8 kB / 1.054 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001021/0.2728, allocations: 68.05 kB / 1.054 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.2728, allocations: 0 / 1.054 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.42e-07/0.2728, allocations: 0 / 1.054 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.2728, allocations: 0 / 1.054 GB, free: 6.316 MB / 0.8106 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.0005015/0.2733, allocations: 367.3 kB / 1.054 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.2734, allocations: 11.97 kB / 1.054 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.374e-05/0.2734, allocations: 38.75 kB / 1.054 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.153e-05/0.2735, allocations: 4.844 kB / 1.054 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002515/0.2737, allocations: 192.2 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.2737, allocations: 8.375 kB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.395e-05/0.2738, allocations: 4.312 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001449/0.2739, allocations: 62.22 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.2739, allocations: 3.938 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.2739, allocations: 4 kB / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.274, allocations: 0 / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.691e-05/0.2741, allocations: 27.98 kB / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004696/0.2745, allocations: 304.7 kB / 1.055 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002642/0.2748, allocations: 66.53 kB / 1.055 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.724e-05/0.2749, allocations: 21 kB / 1.055 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.495e-05/0.2749, allocations: 0 / 1.055 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.082e-05/0.2749, allocations: 34.56 kB / 1.055 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.2749, allocations: 0 / 1.055 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0002542/0.2752, allocations: 81.45 kB / 1.055 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.254e-05/0.2752, allocations: 51.41 kB / 1.055 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.2753, allocations: 121.8 kB / 1.055 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.2754, allocations: 29.7 kB / 1.055 GB, free: 4.703 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.352e-05/0.2754, allocations: 88.14 kB / 1.055 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.681e-05/0.2755, allocations: 7.891 kB / 1.055 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.918e-05/0.2755, allocations: 17.72 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.2756, allocations: 330.8 kB / 1.056 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.356e-05/0.2757, allocations: 12 kB / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.097e-05/0.2758, allocations: 25.7 kB / 1.056 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.216e-05/0.2758, allocations: 28.84 kB / 1.056 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.2759, allocations: 0 / 1.056 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001723/0.276, allocations: 69.8 kB / 1.056 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.2761, allocations: 8 kB / 1.056 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2761, allocations: 4.031 kB / 1.056 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.2761, allocations: 0 / 1.056 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.985e-05/0.2761, allocations: 8.047 kB / 1.056 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.557e-06/0.2762, allocations: 0 / 1.056 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.403e-05/0.2762, allocations: 19.84 kB / 1.056 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.455e-06/0.2762, allocations: 4 kB / 1.056 GB, free: 4.059 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (shaH.hys.y,$PRE.shaH.hys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 8.112e-05/0.2763, allocations: 117.8 kB / 1.056 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.618e-05/0.2764, allocations: 3.906 kB / 1.056 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.766e-05/0.2764, allocations: 15.89 kB / 1.056 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.2764, allocations: 0 / 1.056 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2764, allocations: 0 / 1.056 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2764, allocations: 0 / 1.056 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00021/0.2766, allocations: 181.6 kB / 1.056 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2766, allocations: 0 / 1.056 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.251e-05/0.2767, allocations: 7.938 kB / 1.056 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.2767, allocations: 0 / 1.056 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.667e-06/0.2767, allocations: 0 / 1.056 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.2767, allocations: 4 kB / 1.056 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2767, allocations: 0 / 1.056 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001984/0.2769, allocations: 163.4 kB / 1.056 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.851e-05/0.277, allocations: 77.11 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.936e-05/0.277, allocations: 7.984 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.489e-05/0.2771, allocations: 8 kB / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.409e-05/0.2771, allocations: 7.984 kB / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.499e-06/0.2771, allocations: 0 / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.537e-05/0.2772, allocations: 99.64 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2772, allocations: 0 / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002189/0.2774, allocations: 8 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (shaH.hys.y) * Number of discrete states: 1 (shaH.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0004301/0.2779, allocations: 0.6966 MB / 1.057 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001397/0.278, allocations: 39.97 kB / 1.057 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.278, allocations: 0 / 1.057 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.597e-05/0.2781, allocations: 23.92 kB / 1.057 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.2784, allocations: 4 kB / 1.057 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00153/0.2799, allocations: 1.348 MB / 1.059 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.2803, allocations: 0.6848 MB / 1.059 GB, free: 356 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.426e-05/0.2803, allocations: 4.406 kB / 1.059 GB, free: 352 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.98e-05/0.2804, allocations: 19.44 kB / 1.059 GB, free: 332 kB / 0.8106 GB Notification: Performance of SimCode: time 3.81e-07/0.2804, allocations: 0 / 1.059 GB, free: 332 kB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01065/0.291, allocations: 1.526 MB / 1.061 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002231/0.2913, allocations: 208.6 kB / 1.061 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.598/1.889, allocations: 0 / 1.061 GB, free: 14.62 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_H_fmu --startTime=0 --stopTime=1800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_H.fmu > Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Shade_Validation_Shade_H.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches