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: translateModel(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.solarAltitude|bli.occ|bli.pUp|bli.blindState",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude") translateModel(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.solarAltitude|bli.occ|bli.pUp|bli.blindState",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000832/0.000832, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.006171/0.006171, allocations: 171.4 kB / 16.26 MB, free: 6.613 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.386/1.386, allocations: 223.3 MB / 240.3 MB, free: 5.34 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.421/2.421, allocations: 390.9 MB / 0.6663 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003878/0.0003878, allocations: 8 kB / 0.816 GB, free: 13.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.696/0.6964, allocations: 142.4 MB / 0.955 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude): time 0.001312/0.6977, allocations: 1.226 MB / 0.9562 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00108/0.6988, allocations: 0.7334 MB / 0.957 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.392e-05/0.6989, allocations: 0 / 0.957 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.671e-05/0.6989, allocations: 5 kB / 0.957 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.191e-05/0.699, allocations: 13.3 kB / 0.957 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004661/0.6994, allocations: 110 kB / 0.9571 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001034/0.6996, allocations: 88.88 kB / 0.9572 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.223e-05/0.6996, allocations: 9.484 kB / 0.9572 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.541e-05/0.6997, allocations: 44.53 kB / 0.9572 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.056e-05/0.6998, allocations: 45.23 kB / 0.9573 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.932e-05/0.6998, allocations: 3.812 kB / 0.9573 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001787/0.7, allocations: 86.91 kB / 0.9573 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.366e-05/0.7001, allocations: 26.56 kB / 0.9574 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.879e-05/0.7001, allocations: 61 kB / 0.9574 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001989/0.7003, allocations: 151.8 kB / 0.9576 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.7003, allocations: 0 / 0.9576 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.493e-06/0.7003, allocations: 0 / 0.9576 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.907e-06/0.7004, allocations: 0 / 0.9576 GB, free: 5.793 MB / 0.7169 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.0004586/0.7008, allocations: 447.1 kB / 0.958 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.7009, allocations: 13.03 kB / 0.958 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.993e-05/0.7009, allocations: 10.22 kB / 0.958 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.517e-05/0.701, allocations: 175.8 kB / 0.9582 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.142e-05/0.701, allocations: 3.906 kB / 0.9582 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.544e-05/0.701, allocations: 13.8 kB / 0.9582 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002051/0.7013, allocations: 92.75 kB / 0.9583 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.617e-06/0.7013, allocations: 0 / 0.9583 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.7013, allocations: 5.281 kB / 0.9583 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.7013, allocations: 5.312 kB / 0.9583 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001531/0.7015, allocations: 50 kB / 0.9583 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000461/0.7019, allocations: 324.5 kB / 0.9587 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001607/0.7021, allocations: 71.58 kB / 0.9587 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.7022, allocations: 47.73 kB / 0.9588 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.7022, allocations: 1.344 kB / 0.9588 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002225/0.7025, allocations: 102.2 kB / 0.9589 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 2.024e-06/0.7025, allocations: 0 / 0.9589 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0004829/0.703, allocations: 198 kB / 0.9591 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/0.703, allocations: 58.06 kB / 0.9591 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.889e-05/0.7031, allocations: 131 kB / 0.9592 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.7031, allocations: 30.73 kB / 0.9593 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.328e-05/0.7032, allocations: 87.88 kB / 0.9594 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/0.7032, allocations: 23.2 kB / 0.9594 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.986e-05/0.7032, allocations: 22.38 kB / 0.9594 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.114e-05/0.7033, allocations: 325.1 kB / 0.9597 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.254e-05/0.7034, allocations: 27.61 kB / 0.9597 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.351e-05/0.7035, allocations: 80.55 kB / 0.9598 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000171/0.7036, allocations: 118.4 kB / 0.9599 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.7036, allocations: 0 / 0.9599 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002509/0.7039, allocations: 141 kB / 0.9601 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.7039, allocations: 6.875 kB / 0.9601 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.7039, allocations: 1.375 kB / 0.9601 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.704, allocations: 2.75 kB / 0.9601 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.837e-05/0.7041, allocations: 16.31 kB / 0.9601 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.7041, allocations: 6.734 kB / 0.9601 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.99e-05/0.7041, allocations: 17.34 kB / 0.9601 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.7042, allocations: 5.594 kB / 0.9601 GB, free: 3.441 MB / 0.7169 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 7.269e-05/0.7042, allocations: 128.6 kB / 0.9602 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.799e-05/0.7043, allocations: 10.66 kB / 0.9602 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.365e-05/0.7043, allocations: 11.11 kB / 0.9603 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.7043, allocations: 1.375 kB / 0.9603 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.7043, allocations: 96 / 0.9603 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.7043, allocations: 3.984 kB / 0.9603 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004421/0.7048, allocations: 447.9 kB / 0.9607 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.7048, allocations: 3.938 kB / 0.9607 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.134e-05/0.7048, allocations: 8.109 kB / 0.9607 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.7048, allocations: 1.375 kB / 0.9607 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.7048, allocations: 1.375 kB / 0.9607 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.7049, allocations: 0 / 0.9607 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.7049, allocations: 5.781 kB / 0.9607 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003099/0.7052, allocations: 261.5 kB / 0.961 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.074e-05/0.7052, allocations: 87.7 kB / 0.961 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.445e-05/0.7052, allocations: 5.359 kB / 0.961 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.7053, allocations: 5.5 kB / 0.961 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.071e-05/0.7054, allocations: 14.67 kB / 0.9611 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.7054, allocations: 6.75 kB / 0.9611 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.929e-05/0.7055, allocations: 95.27 kB / 0.9612 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7055, allocations: 0 / 0.9612 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003162/0.7058, allocations: 43.61 kB / 0.9612 GB, free: 2.461 MB / 0.7169 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.0002847/0.7061, allocations: 162.2 kB / 0.9614 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002529/0.7063, allocations: 90.55 kB / 0.9614 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.7063, allocations: 0 / 0.9614 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001352/0.7065, allocations: 53.89 kB / 0.9615 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002826/0.7068, allocations: 25.39 kB / 0.9615 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003688/0.7072, allocations: 223.4 kB / 0.9617 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001055/0.7073, allocations: 0.6962 MB / 0.9624 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.692e-05/0.7073, allocations: 8.484 kB / 0.9624 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.305e-05/0.7073, allocations: 10.78 kB / 0.9624 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7074, allocations: 1.094 kB / 0.9624 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of Templates: time 0.003992/0.7113, allocations: 1.587 MB / 0.964 GB, free: 0.5508 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.makefile (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 & ./Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches