Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.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.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude",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.006172/0.006172, allocations: 100.9 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.001431/0.001432, allocations: 198.9 kB / 16.67 MB, free: 5.98 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.467/1.467, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.413/2.413, allocations: 390.3 MB / 0.6648 GB, free: 220 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 61.41 kB / 0.9504 GB, free: 6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2901, allocations: 140.4 MB / 1.087 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude): time 0.003103/0.2933, allocations: 1.494 MB / 1.089 GB, free: 0.5469 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001533/0.2949, allocations: 0.7493 MB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.143e-05/0.2949, allocations: 0 / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.295e-05/0.295, allocations: 3.938 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.019e-05/0.2951, allocations: 15.88 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000603/0.2957, allocations: 131.5 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001469/0.2959, allocations: 95.64 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.296, allocations: 19.97 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.2961, allocations: 35.86 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.263e-05/0.2962, allocations: 51.81 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.431e-05/0.2963, allocations: 8 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002609/0.2965, allocations: 99.84 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.785e-05/0.2966, allocations: 19.92 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.481e-05/0.2967, allocations: 43.84 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003297/0.297, allocations: 150.4 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.297, allocations: 0 / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.295e-06/0.297, allocations: 0 / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.864e-06/0.297, allocations: 0 / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008617/0.2979, allocations: 463.4 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 7.907e-05/0.298, allocations: 12.03 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.971e-05/0.2981, allocations: 38.73 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.225e-05/0.2981, allocations: 12.84 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.2983, allocations: 176.2 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.171e-05/0.2984, allocations: 4.375 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.278e-05/0.2984, allocations: 20.28 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002853/0.2987, allocations: 89.77 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.2988, allocations: 0 / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.985e-05/0.2988, allocations: 8 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.2988, allocations: 3.984 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001877/0.299, allocations: 47.91 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007046/0.2997, allocations: 312.8 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000198/0.2999, allocations: 74.53 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.3, allocations: 44.78 kB / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.3001, allocations: 0 / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00024/0.3003, allocations: 95.39 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.804e-06/0.3003, allocations: 0 / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0005479/0.3009, allocations: 189.5 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.301, allocations: 55.41 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.3011, allocations: 132.4 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.3011, allocations: 29.7 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.968e-05/0.3012, allocations: 96.36 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.783e-05/0.3012, allocations: 19.75 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.669e-05/0.3013, allocations: 29.7 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3015, allocations: 326.8 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.898e-05/0.3016, allocations: 27.98 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.3017, allocations: 73.98 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000206/0.3019, allocations: 114.2 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3019, allocations: 0 / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002795/0.3022, allocations: 125.4 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.3022, allocations: 12.16 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3022, allocations: 3.938 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.3023, allocations: 4 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.3024, allocations: 19.92 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.3024, allocations: 0 / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.825e-05/0.3025, allocations: 19.89 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.3025, allocations: 4 kB / 1.093 GB, free: 12.21 MB / 0.8575 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 (bli.curSeed,$PRE.bli.curSeed,bli.pDown,$PRE.bli.pDown,bli.pUp,$PRE.bli.pUp,bli.isOpen,$PRE.bli.isOpen,bli.blindState,$PRE.bli.blindState,occ.y,bli.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 0.0001213/0.3026, allocations: 135.1 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.352e-05/0.3026, allocations: 11.91 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.965e-05/0.3027, allocations: 8.375 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.3027, allocations: 0 / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3027, allocations: 96 / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.3027, allocations: 7.969 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006293/0.3034, allocations: 430.5 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3034, allocations: 0 / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.198e-05/0.3034, allocations: 4 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.3034, allocations: 4 kB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.3035, allocations: 7.984 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.3035, allocations: 0 / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.3035, allocations: 7.875 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003997/0.3039, allocations: 251.3 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.526e-05/0.3039, allocations: 85.02 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.373e-05/0.304, allocations: 0 / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.913e-05/0.3041, allocations: 11.98 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.644e-05/0.3041, allocations: 11.94 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.3042, allocations: 7.984 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.439e-05/0.3042, allocations: 91.27 kB / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.7e-07/0.3043, allocations: 4 kB / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003451/0.3046, allocations: 39.94 kB / 1.094 GB, free: 11.02 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: 8 (bli.sampleTrigger,$whenCondition1,occ.y,bli.blindState,bli.pUp,bli.pDown,bli.isOpen,bli.curSeed) * Number of discrete states: 1 (bli.isOpen) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0009365/0.3055, allocations: 0.8518 MB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002845/0.3058, allocations: 88.12 kB / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3059, allocations: 4.062 kB / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.306, allocations: 51.92 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000295/0.3063, allocations: 17.33 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.3081, allocations: 1.591 MB / 1.096 GB, free: 8.297 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.3084, allocations: 0.6923 MB / 1.097 GB, free: 7.578 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.831e-05/0.3085, allocations: 7.984 kB / 1.097 GB, free: 7.57 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.818e-05/0.3085, allocations: 19.44 kB / 1.097 GB, free: 7.551 MB / 0.8575 GB Notification: Performance of SimCode: time 4.31e-07/0.3085, allocations: 0 / 1.097 GB, free: 7.551 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02168/0.3302, allocations: 3.032 MB / 1.1 GB, free: 4.672 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.85/8.181, allocations: 6.156 kB / 1.1 GB, free: 4.668 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude.fmu > Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bli.solarAltitude,bli.occ,bli.pUp,bli.blindState Variables in the result:SA.amplitude,SA.f,SA.offset,SA.phase,SA.startTime,SA.y,bli.ADown,bli.AUp,bli.BDown,bli.BUp,bli.blindState,bli.occ,bli.pDown,bli.pUp,bli.samplePeriod,bli.seed,bli.solarAltitude,occ.startTime,occ.startValue,occ.y,time