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.005538/0.005537, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.001344/0.001344, allocations: 195.9 kB / 16.68 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.33/1.33, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.193/2.193, allocations: 390.3 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 55.91 kB / 0.9504 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7679/0.7692, allocations: 140.4 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude): time 0.002522/0.7718, allocations: 1.511 MB / 1.089 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001326/0.7731, allocations: 0.7424 MB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.07e-05/0.7732, allocations: 0 / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.797e-05/0.7732, allocations: 5.953 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.394e-05/0.7733, allocations: 14.59 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006685/0.774, allocations: 134.7 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001598/0.7742, allocations: 90.66 kB / 1.09 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.7743, allocations: 11.77 kB / 1.09 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.7744, allocations: 42.7 kB / 1.09 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.95e-05/0.7745, allocations: 44.7 kB / 1.09 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.404e-05/0.7746, allocations: 7.75 kB / 1.09 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002221/0.7748, allocations: 96.2 kB / 1.09 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.722e-05/0.7748, allocations: 28.06 kB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.03e-05/0.7749, allocations: 46.3 kB / 1.09 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003291/0.7752, allocations: 146.8 kB / 1.09 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.7752, allocations: 0 / 1.09 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.744e-06/0.7753, allocations: 0 / 1.09 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.184e-05/0.7753, allocations: 1.641 kB / 1.09 GB, free: 3.434 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.0006104/0.7759, allocations: 462.8 kB / 1.091 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.7759, allocations: 13.89 kB / 1.091 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.499e-05/0.776, allocations: 42.11 kB / 1.091 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.259e-05/0.776, allocations: 9.922 kB / 1.091 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.309e-05/0.7761, allocations: 182.3 kB / 1.091 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.114e-05/0.7762, allocations: 4.516 kB / 1.091 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.664e-05/0.7762, allocations: 10.39 kB / 1.091 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002342/0.7764, allocations: 84.36 kB / 1.091 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.7765, allocations: 3.984 kB / 1.091 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.7765, allocations: 9.906 kB / 1.091 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.7765, allocations: 1.219 kB / 1.091 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.7766, allocations: 49.38 kB / 1.091 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005044/0.7772, allocations: 320.2 kB / 1.091 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001694/0.7773, allocations: 63.7 kB / 1.091 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.7775, allocations: 42.12 kB / 1.092 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.7775, allocations: 9.594 kB / 1.092 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002568/0.7778, allocations: 92.91 kB / 1.092 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.654e-06/0.7778, allocations: 0 / 1.092 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0005259/0.7783, allocations: 188.4 kB / 1.092 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.23e-05/0.7783, allocations: 54.48 kB / 1.092 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.914e-05/0.7784, allocations: 130.2 kB / 1.092 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.7785, allocations: 31.73 kB / 1.092 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.396e-05/0.7785, allocations: 93.25 kB / 1.092 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.751e-05/0.7785, allocations: 29.56 kB / 1.092 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.381e-05/0.7786, allocations: 31.19 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.699e-05/0.7787, allocations: 324 kB / 1.092 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.672e-05/0.7788, allocations: 25.08 kB / 1.092 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001065/0.7789, allocations: 81.52 kB / 1.093 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001835/0.7791, allocations: 111 kB / 1.093 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.7791, allocations: 0.875 kB / 1.093 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002584/0.7793, allocations: 129.6 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.7794, allocations: 6.781 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.7794, allocations: 1.625 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.7794, allocations: 2.844 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.7795, allocations: 26.47 kB / 1.093 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/0.7795, allocations: 3.078 kB / 1.093 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.103e-05/0.7796, allocations: 15.2 kB / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.7796, allocations: 4.562 kB / 1.093 GB, free: 1.207 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 8.381e-05/0.7797, allocations: 133.9 kB / 1.093 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.132e-05/0.7798, allocations: 7.297 kB / 1.093 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.059e-05/0.7798, allocations: 12.36 kB / 1.093 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.7798, allocations: 5.188 kB / 1.093 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.7798, allocations: 0 / 1.093 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.207e-06/0.7798, allocations: 0.7969 kB / 1.093 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005051/0.7803, allocations: 426.8 kB / 1.093 GB, free: 0.707 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.7803, allocations: 4.031 kB / 1.093 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.209e-05/0.7804, allocations: 5.469 kB / 1.093 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.7804, allocations: 4.797 kB / 1.093 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.7804, allocations: 3.359 kB / 1.093 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.7804, allocations: 1.672 kB / 1.093 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.7804, allocations: 7.938 kB / 1.093 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000337/0.7808, allocations: 248.7 kB / 1.094 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.42e-05/0.7808, allocations: 84.48 kB / 1.094 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.681e-05/0.7808, allocations: 1.531 kB / 1.094 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.781, allocations: 5.344 kB / 1.094 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.813e-05/0.781, allocations: 13.77 kB / 1.094 GB, free: 424 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.781, allocations: 9.359 kB / 1.094 GB, free: 420 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.774e-05/0.7811, allocations: 97.88 kB / 1.094 GB, free: 336 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7811, allocations: 0.9062 kB / 1.094 GB, free: 336 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003734/0.7815, allocations: 45.28 kB / 1.094 GB, free: 324 kB / 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.0008258/0.7823, allocations: 0.8474 MB / 1.095 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000296/0.7826, allocations: 86.06 kB / 1.095 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.7826, allocations: 0 / 1.095 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.7828, allocations: 52.22 kB / 1.095 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.7831, allocations: 29.53 kB / 1.095 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002276/0.7854, allocations: 1.602 MB / 1.096 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/0.7857, allocations: 0.6936 MB / 1.097 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.519e-05/0.7858, allocations: 5.766 kB / 1.097 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.707e-05/0.7859, allocations: 21.58 kB / 1.097 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of SimCode: time 1.142e-06/0.7859, allocations: 0.75 kB / 1.097 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01837/0.8042, allocations: 2.971 MB / 1.1 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.71/8.514, allocations: 12.05 kB / 1.1 GB, free: 12.92 MB / 0.8731 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 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.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[551]=3600.000000 File[1236]=2249.280000 Error: Could not read variable bli.solarAltitude in file Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.csv. Warning: Get data of variable bli.solarAltitude from file Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.csv failed! Error: Could not read variable bli.occ in file Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.csv. Warning: Get data of variable bli.occ from file Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.csv failed! " Variables in the reference:time,bli.solarAltitude,bli.occ,bli.pUp,bli.blindState Variables in the result:time,SA.y,bli.blindState,bli.pDown,bli.pUp,SA.amplitude