Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.467/2.467, allocations: 390.5 MB / 398 MB, free: 10.9 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 174.5 kB / 491.2 MB, free: 1.555 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.547/1.547, allocations: 221.5 MB / 0.7868 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000995/0.000995, allocations: 91.86 kB / 0.9269 GB, free: 13.86 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.962e-05/1.954e-05, allocations: 0 / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2713, allocations: 143 MB / 1.212 GB, free: 39.58 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9867/1.258, allocations: 151.4 MB / 1.36 GB, free: 17.49 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/1.258, allocations: 81.59 kB / 1.36 GB, free: 17.49 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 0.009445/1.268, allocations: 3.079 MB / 1.363 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.455e-06/1.268, allocations: 0 / 1.363 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.315e-06/1.268, allocations: 0.8438 kB / 1.363 GB, free: 33.02 MB / 0.8386 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.0005177/1.268, allocations: 449.7 kB / 1.364 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/1.268, allocations: 11.69 kB / 1.364 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.078e-05/1.268, allocations: 13.2 kB / 1.364 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/1.269, allocations: 174.8 kB / 1.364 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.498e-05/1.269, allocations: 4.984 kB / 1.364 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.106e-05/1.269, allocations: 7.688 kB / 1.364 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.982e-05/1.269, allocations: 26.44 kB / 1.364 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001501/1.269, allocations: 79.81 kB / 1.364 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/1.269, allocations: 2.875 kB / 1.364 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/1.269, allocations: 0 / 1.364 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/1.269, allocations: 7.906 kB / 1.364 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000576/1.27, allocations: 302.1 kB / 1.364 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001061/1.27, allocations: 57.64 kB / 1.364 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.38e-05/1.27, allocations: 34.28 kB / 1.364 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/1.27, allocations: 4 kB / 1.364 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000154/1.27, allocations: 82.02 kB / 1.364 GB, free: 32 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.342e-06/1.27, allocations: 0 / 1.364 GB, free: 32 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0003441/1.27, allocations: 131.6 kB / 1.365 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.226e-05/1.27, allocations: 60.47 kB / 1.365 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.612e-05/1.27, allocations: 112 kB / 1.365 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/1.27, allocations: 29.58 kB / 1.365 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.789e-05/1.271, allocations: 97.44 kB / 1.365 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.572e-05/1.271, allocations: 20.19 kB / 1.365 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.631e-06/1.271, allocations: 0 / 1.365 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000115/1.271, allocations: 320.8 kB / 1.365 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.476e-05/1.271, allocations: 18.53 kB / 1.365 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.42e-05/1.271, allocations: 67.28 kB / 1.365 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.951e-05/1.271, allocations: 22.36 kB / 1.365 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/1.271, allocations: 0.9844 kB / 1.365 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001487/1.271, allocations: 107.9 kB / 1.365 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/1.271, allocations: 9.094 kB / 1.365 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/1.271, allocations: 4 kB / 1.365 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/1.271, allocations: 5.531 kB / 1.365 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.494e-05/1.271, allocations: 13.17 kB / 1.365 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/1.271, allocations: 5.688 kB / 1.365 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.222e-05/1.271, allocations: 11.7 kB / 1.365 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/1.271, allocations: 5.203 kB / 1.365 GB, free: 31.24 MB / 0.8386 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 ($PRE.bli.curSeed,bli.curSeed,$PRE.bli.pDown,bli.pDown,$PRE.bli.pUp,bli.pUp,$PRE.bli.blindState,bli.blindState,$PRE.bli.isOpen,bli.isOpen,bli.occ,$whenCondition1,bli.sampleTrigger) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001121/1.271, allocations: 120.1 kB / 1.366 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.98e-05/1.271, allocations: 9.719 kB / 1.366 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.586e-05/1.271, allocations: 16.28 kB / 1.366 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/1.271, allocations: 0 / 1.366 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/1.271, allocations: 0 / 1.366 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/1.271, allocations: 1.266 kB / 1.366 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004077/1.272, allocations: 396.7 kB / 1.366 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/1.272, allocations: 0 / 1.366 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.095e-05/1.272, allocations: 5.422 kB / 1.366 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/1.272, allocations: 5.453 kB / 1.366 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/1.272, allocations: 5.109 kB / 1.366 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/1.272, allocations: 3.938 kB / 1.366 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/1.272, allocations: 0.875 kB / 1.366 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002518/1.272, allocations: 225.6 kB / 1.366 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.067e-05/1.272, allocations: 86.12 kB / 1.366 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.827e-05/1.272, allocations: 4.703 kB / 1.366 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.569e-05/1.272, allocations: 13.09 kB / 1.366 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.181e-05/1.272, allocations: 6.656 kB / 1.366 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/1.273, allocations: 5.203 kB / 1.366 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.286e-05/1.273, allocations: 98.34 kB / 1.366 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.273, allocations: 0 / 1.366 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003338/1.273, allocations: 52.02 kB / 1.366 GB, free: 30.49 MB / 0.8386 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,bli.occ,bli.blindState,bli.pUp,bli.pDown,bli.isOpen,bli.curSeed) * Number of discrete states: 1 (bli.isOpen) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004894/1.273, allocations: 179.6 kB / 1.367 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001577/1.274, allocations: 69.14 kB / 1.367 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/1.274, allocations: 3.906 kB / 1.367 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.306e-05/1.274, allocations: 33.58 kB / 1.367 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/1.274, allocations: 10.95 kB / 1.367 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000323/1.274, allocations: 124.9 kB / 1.367 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/1.275, allocations: 0.6983 MB / 1.367 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.312e-05/1.275, allocations: 5.828 kB / 1.367 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.201e-05/1.275, allocations: 11.28 kB / 1.368 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/1.275, allocations: 0 / 1.368 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of Templates: time 0.004552/1.279, allocations: 1.721 MB / 1.369 GB, free: 29.43 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.sim & ./Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarAltitude_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarAltitude.csv","../files/Buildings_latest_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.pUp,bli.samplePeriod,bli.seed,bli.solarAltitude,bli.t0,occ.startTime,occ.startValue,time