Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.H|bli.occ|bli.pUp|bli.blindState",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity") translateModel(Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.H|bli.occ|bli.pUp|bli.blindState",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.038/2.038, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001026/0.001026, allocations: 172.9 kB / 487.4 MB, free: 5.027 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.317/1.317, allocations: 221.5 MB / 0.7824 GB, free: 0.9727 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008871/0.0008871, allocations: 95.89 kB / 0.9219 GB, free: 2.199 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.085e-05/1.086e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2107, allocations: 142.4 MB / 1.206 GB, free: 43.94 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7659/0.9766, allocations: 150.6 MB / 1.353 GB, free: 18.29 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002081/0.9769, allocations: 82.09 kB / 1.353 GB, free: 18.29 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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.008725/0.9856, allocations: 3.081 MB / 1.356 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.102e-06/0.9857, allocations: 0 / 1.356 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.9857, allocations: 0 / 1.356 GB, free: 33.82 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.0003944/0.9861, allocations: 449.8 kB / 1.356 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.9861, allocations: 11.53 kB / 1.357 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.92e-05/0.9862, allocations: 10.81 kB / 1.357 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.814e-05/0.9862, allocations: 176.9 kB / 1.357 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.718e-05/0.9863, allocations: 7.844 kB / 1.357 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.723e-05/0.9863, allocations: 4.766 kB / 1.357 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.42e-05/0.9864, allocations: 34.78 kB / 1.357 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001209/0.9865, allocations: 71.59 kB / 1.357 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.9865, allocations: 0 / 1.357 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.9866, allocations: 1.078 kB / 1.357 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.9866, allocations: 3.969 kB / 1.357 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004628/0.987, allocations: 299 kB / 1.357 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.429e-05/0.9871, allocations: 61.77 kB / 1.357 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.659e-05/0.9872, allocations: 36.83 kB / 1.357 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/0.9872, allocations: 3.984 kB / 1.357 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001153/0.9873, allocations: 85.53 kB / 1.357 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.9873, allocations: 0 / 1.357 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0002657/0.9876, allocations: 129.5 kB / 1.357 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.164e-05/0.9876, allocations: 59.97 kB / 1.357 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.068e-05/0.9877, allocations: 111.3 kB / 1.358 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.145e-05/0.9877, allocations: 29.55 kB / 1.358 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.655e-05/0.9878, allocations: 92.23 kB / 1.358 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.9878, allocations: 21.53 kB / 1.358 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.099e-06/0.9878, allocations: 0 / 1.358 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.9879, allocations: 329.8 kB / 1.358 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.044e-05/0.988, allocations: 18.34 kB / 1.358 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.938e-05/0.988, allocations: 64.59 kB / 1.358 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.442e-05/0.9881, allocations: 25.41 kB / 1.358 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.9881, allocations: 0.8906 kB / 1.358 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001328/0.9882, allocations: 112.8 kB / 1.358 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.9883, allocations: 4.359 kB / 1.358 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.9883, allocations: 3.844 kB / 1.358 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.9883, allocations: 0.7969 kB / 1.358 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.771e-05/0.9884, allocations: 18.72 kB / 1.358 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.9884, allocations: 8.094 kB / 1.358 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.043e-05/0.9885, allocations: 12.81 kB / 1.358 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.9885, allocations: 4.641 kB / 1.358 GB, free: 32.04 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 7.597e-05/0.9886, allocations: 118.4 kB / 1.358 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.442e-05/0.9886, allocations: 4.406 kB / 1.358 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.691e-05/0.9886, allocations: 9.844 kB / 1.358 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.9886, allocations: 0 / 1.358 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.9886, allocations: 4 kB / 1.358 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.9886, allocations: 0.6562 kB / 1.358 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003457/0.989, allocations: 398.2 kB / 1.359 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.989, allocations: 0 / 1.359 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.168e-05/0.989, allocations: 10.61 kB / 1.359 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.989, allocations: 0.8125 kB / 1.359 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.9891, allocations: 0 / 1.359 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.9891, allocations: 9.859 kB / 1.359 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.9891, allocations: 0 / 1.359 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002192/0.9893, allocations: 234.7 kB / 1.359 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.982e-05/0.9893, allocations: 84.86 kB / 1.359 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.442e-05/0.9894, allocations: 0.875 kB / 1.359 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.159e-05/0.9895, allocations: 6.688 kB / 1.359 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.539e-05/0.9895, allocations: 6.453 kB / 1.359 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.167e-05/0.9895, allocations: 7.156 kB / 1.359 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.355e-05/0.9896, allocations: 88.25 kB / 1.359 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9896, allocations: 4.188 kB / 1.359 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002697/0.9899, allocations: 52.62 kB / 1.359 GB, free: 31.3 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.000295/0.9902, allocations: 181.4 kB / 1.359 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001328/0.9903, allocations: 75.11 kB / 1.36 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.9903, allocations: 0 / 1.36 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.806e-05/0.9904, allocations: 43.2 kB / 1.36 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000189/0.9906, allocations: 10.17 kB / 1.36 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002515/0.9908, allocations: 113.6 kB / 1.36 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002311/0.9911, allocations: 0.6965 MB / 1.36 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.626e-05/0.9911, allocations: 11.16 kB / 1.36 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.058e-05/0.9911, allocations: 11.31 kB / 1.36 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/0.9911, allocations: 0 / 1.36 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of Templates: time 0.003572/0.9947, allocations: 1.723 MB / 1.362 GB, free: 30.23 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.sim & ./Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Blinds_Validation_Zhang2012BlindsSolarIntensity.csv","../files/Buildings_9_Buildings.Occupants.Office.Blinds.Validation.Zhang2012BlindsSolarIntensity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bli.H,bli.occ,bli.pUp,bli.blindState Variables in the result:H.amplitude,H.f,H.offset,H.phase,H.startTime,H.y,bli.ADown,bli.AUp,bli.BDown,bli.BUp,bli.H,bli.blindState,bli.occ,bli.pUp,bli.samplePeriod,bli.seed,bli.t0,occ.startTime,occ.startValue,time