Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.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.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarIntensity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarIntensity",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.00419/0.00419, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.00124/0.00124, allocations: 197.4 kB / 16.67 MB, free: 5.973 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.95/2.95, allocations: 482.4 MB / 0.7548 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 71.88 kB / 1.083 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2818, allocations: 162.2 MB / 1.241 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity): time 0.002754/0.2846, allocations: 1.501 MB / 1.243 GB, free: 8.723 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00138/0.286, allocations: 0.744 MB / 1.244 GB, free: 7.973 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.663e-05/0.286, allocations: 0 / 1.244 GB, free: 7.973 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.432e-05/0.2861, allocations: 15.8 kB / 1.244 GB, free: 7.957 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.914e-05/0.2861, allocations: 15.86 kB / 1.244 GB, free: 7.941 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005441/0.2867, allocations: 127.6 kB / 1.244 GB, free: 7.816 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001357/0.2868, allocations: 87.77 kB / 1.244 GB, free: 7.73 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.646e-05/0.2869, allocations: 23.91 kB / 1.244 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.394e-05/0.287, allocations: 43.84 kB / 1.244 GB, free: 7.664 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.867e-05/0.2871, allocations: 43.83 kB / 1.244 GB, free: 7.621 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.15e-05/0.2871, allocations: 8 kB / 1.244 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002187/0.2874, allocations: 99.84 kB / 1.244 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.209e-05/0.2874, allocations: 19.97 kB / 1.244 GB, free: 7.496 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.791e-05/0.2875, allocations: 35.8 kB / 1.244 GB, free: 7.461 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002643/0.2877, allocations: 159.5 kB / 1.244 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.2878, allocations: 0 / 1.244 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2878, allocations: 4 kB / 1.244 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.2878, allocations: 0 / 1.244 GB, free: 7.301 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006646/0.2884, allocations: 462.3 kB / 1.245 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2885, allocations: 11.97 kB / 1.245 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.151e-05/0.2885, allocations: 34.75 kB / 1.245 GB, free: 6.734 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.029e-05/0.2886, allocations: 16.88 kB / 1.245 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.2887, allocations: 176.3 kB / 1.245 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.2888, allocations: 4.375 kB / 1.245 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.421e-05/0.2888, allocations: 12.38 kB / 1.245 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002385/0.289, allocations: 89.69 kB / 1.245 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.2891, allocations: 0 / 1.245 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.2891, allocations: 4 kB / 1.245 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.2891, allocations: 0 / 1.245 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001684/0.2893, allocations: 43.97 kB / 1.245 GB, free: 6.352 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005591/0.2898, allocations: 324.7 kB / 1.245 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.29, allocations: 66.58 kB / 1.245 GB, free: 5.91 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001191/0.2902, allocations: 44.83 kB / 1.246 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.2902, allocations: 4 kB / 1.246 GB, free: 5.859 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002306/0.2904, allocations: 91.36 kB / 1.246 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.2904, allocations: 4 kB / 1.246 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9): time 0.0005332/0.291, allocations: 189.4 kB / 1.246 GB, free: 5.562 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.008e-05/0.291, allocations: 55.41 kB / 1.246 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.2912, allocations: 133.2 kB / 1.246 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.2912, allocations: 29.7 kB / 1.246 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.898e-05/0.2913, allocations: 92.53 kB / 1.246 GB, free: 5.227 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.371e-05/0.2913, allocations: 31.77 kB / 1.246 GB, free: 5.195 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.769e-05/0.2914, allocations: 33.66 kB / 1.246 GB, free: 5.156 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001589/0.2915, allocations: 330.7 kB / 1.246 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.163e-05/0.2916, allocations: 27.97 kB / 1.246 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.2918, allocations: 74 kB / 1.247 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.292, allocations: 109.9 kB / 1.247 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.292, allocations: 4 kB / 1.247 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002942/0.2923, allocations: 137.4 kB / 1.247 GB, free: 4.43 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.2923, allocations: 8.938 kB / 1.247 GB, free: 4.422 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.2923, allocations: 0 / 1.247 GB, free: 4.422 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.2923, allocations: 4 kB / 1.247 GB, free: 4.418 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.642e-05/0.2925, allocations: 15.98 kB / 1.247 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.2925, allocations: 7.938 kB / 1.247 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.008e-05/0.2925, allocations: 8 kB / 1.247 GB, free: 4.387 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.2926, allocations: 8.156 kB / 1.247 GB, free: 4.379 MB / 0.9981 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.000113/0.2927, allocations: 129.7 kB / 1.247 GB, free: 4.242 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.355e-05/0.2927, allocations: 11.94 kB / 1.247 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.786e-05/0.2927, allocations: 12.38 kB / 1.247 GB, free: 4.215 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.2928, allocations: 0 / 1.247 GB, free: 4.215 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.2928, allocations: 0 / 1.247 GB, free: 4.215 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2928, allocations: 0 / 1.247 GB, free: 4.215 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006222/0.2934, allocations: 434.3 kB / 1.247 GB, free: 3.734 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2934, allocations: 0 / 1.247 GB, free: 3.734 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.733e-05/0.2935, allocations: 12.39 kB / 1.247 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2935, allocations: 0 / 1.247 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.2935, allocations: 0 / 1.247 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2935, allocations: 4 kB / 1.247 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2935, allocations: 3.938 kB / 1.247 GB, free: 3.715 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004022/0.2939, allocations: 255.3 kB / 1.248 GB, free: 3.449 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.621e-05/0.294, allocations: 85.06 kB / 1.248 GB, free: 3.348 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.294, allocations: 0 / 1.248 GB, free: 3.348 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.2941, allocations: 11.98 kB / 1.248 GB, free: 3.336 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.45e-05/0.2942, allocations: 11.92 kB / 1.248 GB, free: 3.324 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.2942, allocations: 0 / 1.248 GB, free: 3.324 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.43e-05/0.2943, allocations: 95.27 kB / 1.248 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2943, allocations: 0 / 1.248 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003258/0.2946, allocations: 51.86 kB / 1.248 GB, free: 3.18 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: 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.0009827/0.2956, allocations: 0.851 MB / 1.249 GB, free: 2.32 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002803/0.2959, allocations: 95.83 kB / 1.249 GB, free: 2.227 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2959, allocations: 4 kB / 1.249 GB, free: 2.223 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001366/0.296, allocations: 39.98 kB / 1.249 GB, free: 2.184 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002908/0.2963, allocations: 19.92 kB / 1.249 GB, free: 2.164 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.2982, allocations: 1.605 MB / 1.25 GB, free: 456 kB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4621/0.7604, allocations: 0.6855 MB / 1.251 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.619e-05/0.7605, allocations: 6.609 kB / 1.251 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.515e-05/0.7605, allocations: 21.92 kB / 1.251 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of SimCode: time 8.31e-07/0.7605, allocations: 0 / 1.251 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02483/0.7854, allocations: 2.989 MB / 1.254 GB, free: 14.18 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.726/8.512, allocations: 3.75 kB / 1.254 GB, free: 14.18 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarIntensity.fmu > Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarIntensity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[551]=3600.000000 File[1236]=2249.280000 Error: Could not read variable bli.H in file Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity_res.csv. Warning: Get data of variable bli.H from file Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity_res.csv failed! Error: Could not read variable bli.occ in file Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity_res.csv. Warning: Get data of variable bli.occ from file Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity_res.csv failed! " Variables in the reference:time,bli.H,bli.occ,bli.pUp,bli.blindState Variables in the result:time,H.y,bli.blindState,bli.pDown,bli.pUp,H.amplitude