Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Shade.Validation.Shade_T,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_Shade_Validation_Shade_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_T,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_Shade_Validation_Shade_T",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.008759/0.008758, allocations: 100.5 kB / 15.73 MB, free: 6.027 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.002045/0.002045, allocations: 187.2 kB / 16.67 MB, free: 5.965 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.436/2.436, allocations: 390.3 MB / 0.6648 GB, free: 132 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 62.22 kB / 0.9504 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2789, allocations: 140.4 MB / 1.087 GB, free: 2.051 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_T): time 0.002097/0.2811, allocations: 0.697 MB / 1.088 GB, free: 1.352 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001141/0.2822, allocations: 0.8507 MB / 1.089 GB, free: 500 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.328e-05/0.2823, allocations: 0 / 1.089 GB, free: 500 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.185e-05/0.2824, allocations: 3.938 kB / 1.089 GB, free: 496 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.914e-05/0.2825, allocations: 11.86 kB / 1.089 GB, free: 484 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001895/0.2827, allocations: 19.98 kB / 1.089 GB, free: 464 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001029/0.2828, allocations: 63.78 kB / 1.089 GB, free: 400 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.2829, allocations: 19.98 kB / 1.089 GB, free: 380 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.2831, allocations: 27.86 kB / 1.089 GB, free: 352 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.027e-05/0.2832, allocations: 27.84 kB / 1.089 GB, free: 324 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.2e-05/0.2832, allocations: 4 kB / 1.089 GB, free: 320 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.481e-05/0.2832, allocations: 8 kB / 1.089 GB, free: 312 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.432e-05/0.2832, allocations: 11.98 kB / 1.089 GB, free: 300 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.963e-05/0.2833, allocations: 31.8 kB / 1.089 GB, free: 268 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001249/0.2834, allocations: 62.66 kB / 1.089 GB, free: 208 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2834, allocations: 0 / 1.089 GB, free: 208 kB / 0.8419 GB Notification: Performance of FrontEnd: time 3.226e-06/0.2834, allocations: 0 / 1.089 GB, free: 208 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.2835, allocations: 3.938 kB / 1.089 GB, free: 204 kB / 0.8419 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.0005615/0.284, allocations: 372.1 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.2841, allocations: 8.031 kB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.116e-05/0.2841, allocations: 38.69 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.855e-05/0.2842, allocations: 12.84 kB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002714/0.2844, allocations: 196.2 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.2845, allocations: 4.375 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.28e-05/0.2845, allocations: 4.312 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001554/0.2847, allocations: 66.22 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.2847, allocations: 3.938 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.2847, allocations: 0 / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.2847, allocations: 0 / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001058/0.2848, allocations: 31.92 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004709/0.2853, allocations: 292.8 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002948/0.2856, allocations: 70.53 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.727e-05/0.2857, allocations: 21 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.2857, allocations: 3.938 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.2857, allocations: 34.56 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.393e-06/0.2857, allocations: 0 / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.000258/0.286, allocations: 77.56 kB / 1.09 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.563e-05/0.286, allocations: 51.41 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.2861, allocations: 129.8 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.2862, allocations: 25.7 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.275e-05/0.2862, allocations: 88.14 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/0.2863, allocations: 19.73 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.754e-05/0.2863, allocations: 13.72 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.2864, allocations: 330.8 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.574e-05/0.2865, allocations: 12 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.363e-05/0.2866, allocations: 29.64 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.857e-05/0.2867, allocations: 36.78 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.2867, allocations: 0 / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001476/0.2868, allocations: 61.67 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.2868, allocations: 8.031 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.2869, allocations: 4 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.2869, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.928e-05/0.2869, allocations: 4 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.2869, allocations: 3.938 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.912e-05/0.287, allocations: 7.984 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.807e-06/0.287, allocations: 4 kB / 1.091 GB, free: 13.93 MB / 0.8575 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 (shaT.hys.y,$PRE.shaT.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.468e-05/0.2871, allocations: 117.8 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.722e-05/0.2871, allocations: 3.906 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.646e-05/0.2872, allocations: 19.89 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.2872, allocations: 0 / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2872, allocations: 0 / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2872, allocations: 0 / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001782/0.2874, allocations: 181.6 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2874, allocations: 0 / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.296e-05/0.2874, allocations: 4 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.2875, allocations: 0 / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.2875, allocations: 3.938 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2875, allocations: 0 / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2875, allocations: 4 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001973/0.2877, allocations: 167.3 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.37e-05/0.2878, allocations: 77.11 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.2878, allocations: 11.98 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.5e-05/0.2879, allocations: 4 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.823e-05/0.2879, allocations: 7.984 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.2879, allocations: 0 / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.692e-05/0.288, allocations: 99.27 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.288, allocations: 0 / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002222/0.2882, allocations: 8 kB / 1.092 GB, free: 13.14 MB / 0.8575 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 (shaT.hys.y) * Number of discrete states: 1 (shaT.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.0004705/0.2887, allocations: 0.6854 MB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001672/0.2889, allocations: 51.88 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2889, allocations: 0 / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.634e-05/0.289, allocations: 19.98 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.2893, allocations: 10.03 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001395/0.2907, allocations: 1.337 MB / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002657/0.291, allocations: 0.6924 MB / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.939e-05/0.291, allocations: 0 / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.336e-05/0.2911, allocations: 19.42 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.2911, allocations: 0 / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01858/0.3097, allocations: 1.761 MB / 1.096 GB, free: 8.52 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.765/8.075, allocations: 0 / 1.096 GB, free: 8.52 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_Shade_Validation_Shade_T_fmu --startTime=0 --stopTime=1800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_Shade_Validation_Shade_T.fmu > Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_Shade_Validation_Shade_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,shaT.THigh,shaT.TLow,shaT.T,shaT.y Variables in the result:T.amplitude,T.freqHz,T.offset,T.phase,T.startTime,T.y,shaT.T,shaT.THigh,shaT.TLow,shaT.y,time