Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.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.Haldi2008BlindsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.TIn|bli.occ|bli.pDown|bli.blindState",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn") translateModel(Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bli.TIn|bli.occ|bli.pDown|bli.blindState",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.45/2.45, allocations: 390.3 MB / 402.8 MB, free: 6.684 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.00112/0.00112, allocations: 188.7 kB / 496.1 MB, free: 12.85 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.765/1.765, allocations: 221.3 MB / 0.7915 GB, free: 5.457 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.0008723/0.0008724, allocations: 99.19 kB / 0.9317 GB, free: 5.762 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.263e-05/3.267e-05, allocations: 0 / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.294, allocations: 143 MB / 1.219 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.034/1.328, allocations: 151.9 MB / 1.367 GB, free: 2.184 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/1.329, allocations: 89 kB / 1.367 GB, free: 2.137 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.009181/1.338, allocations: 2.91 MB / 1.37 GB, free: 15.63 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.433e-06/1.338, allocations: 0 / 1.37 GB, free: 15.63 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.985e-06/1.338, allocations: 0 / 1.37 GB, free: 15.63 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005394/1.338, allocations: 441.2 kB / 1.37 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/1.338, allocations: 12.03 kB / 1.37 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.433e-05/1.338, allocations: 7.953 kB / 1.37 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001653/1.339, allocations: 174.9 kB / 1.371 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/1.339, allocations: 0 / 1.371 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.071e-05/1.339, allocations: 10.81 kB / 1.371 GB, free: 14.92 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001578/1.339, allocations: 56.61 kB / 1.371 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/1.339, allocations: 3.984 kB / 1.371 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/1.339, allocations: 7.234 kB / 1.371 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/1.339, allocations: 4.812 kB / 1.371 GB, free: 14.85 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.694e-05/1.339, allocations: 24.39 kB / 1.371 GB, free: 14.84 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005239/1.34, allocations: 301.2 kB / 1.371 GB, free: 14.51 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.306e-05/1.34, allocations: 36.64 kB / 1.371 GB, free: 14.48 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.922e-05/1.34, allocations: 23.61 kB / 1.371 GB, free: 14.46 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/1.34, allocations: 4 kB / 1.371 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001337/1.34, allocations: 72.75 kB / 1.371 GB, free: 14.38 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/1.34, allocations: 0 / 1.371 GB, free: 14.38 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002537/1.34, allocations: 111.7 kB / 1.371 GB, free: 14.28 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/1.34, allocations: 55.41 kB / 1.371 GB, free: 14.21 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.84e-05/1.34, allocations: 110 kB / 1.371 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/1.34, allocations: 29.7 kB / 1.371 GB, free: 14.07 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.078e-05/1.34, allocations: 90.3 kB / 1.372 GB, free: 13.98 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.287e-05/1.34, allocations: 19 kB / 1.372 GB, free: 13.97 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-06/1.34, allocations: 0 / 1.372 GB, free: 13.97 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001255/1.341, allocations: 322.2 kB / 1.372 GB, free: 13.65 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.886e-05/1.341, allocations: 22.38 kB / 1.372 GB, free: 13.63 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.072e-05/1.341, allocations: 51.39 kB / 1.372 GB, free: 13.57 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.698e-05/1.341, allocations: 18.94 kB / 1.372 GB, free: 13.56 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/1.341, allocations: 4 kB / 1.372 GB, free: 13.55 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001666/1.341, allocations: 98.23 kB / 1.372 GB, free: 13.46 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/1.341, allocations: 8 kB / 1.372 GB, free: 13.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/1.341, allocations: 4 kB / 1.372 GB, free: 13.45 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/1.341, allocations: 4 kB / 1.372 GB, free: 13.45 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.128e-05/1.341, allocations: 15.92 kB / 1.372 GB, free: 13.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/1.341, allocations: 7.953 kB / 1.372 GB, free: 13.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.196e-05/1.341, allocations: 12.06 kB / 1.372 GB, free: 13.41 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.663e-05/1.341, allocations: 15.55 kB / 1.372 GB, free: 13.4 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.bli.curSeed,bli.curSeed,$PRE.bli.blindState,bli.blindState,$PRE.bli.pDown,bli.pDown,bli.occ,$whenCondition1,bli.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 8.219e-05/1.341, allocations: 109.4 kB / 1.372 GB, free: 13.29 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.777e-05/1.341, allocations: 7.906 kB / 1.372 GB, free: 13.29 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.587e-05/1.341, allocations: 4.625 kB / 1.372 GB, free: 13.28 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/1.341, allocations: 4 kB / 1.372 GB, free: 13.27 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/1.341, allocations: 0 / 1.372 GB, free: 13.27 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/1.341, allocations: 3.953 kB / 1.372 GB, free: 13.27 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003877/1.342, allocations: 366.8 kB / 1.373 GB, free: 12.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/1.342, allocations: 0 / 1.373 GB, free: 12.89 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.525e-05/1.342, allocations: 7.984 kB / 1.373 GB, free: 12.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/1.342, allocations: 0 / 1.373 GB, free: 12.88 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/1.342, allocations: 0 / 1.373 GB, free: 12.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/1.342, allocations: 7.953 kB / 1.373 GB, free: 12.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/1.342, allocations: 0 / 1.373 GB, free: 12.87 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002182/1.342, allocations: 203.2 kB / 1.373 GB, free: 12.68 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.915e-05/1.342, allocations: 85.05 kB / 1.373 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/1.342, allocations: 3.375 kB / 1.373 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.636e-05/1.342, allocations: 4 kB / 1.373 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.491e-05/1.342, allocations: 11.94 kB / 1.373 GB, free: 12.56 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.338e-06/1.342, allocations: 0 / 1.373 GB, free: 12.56 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.952e-05/1.342, allocations: 98.67 kB / 1.373 GB, free: 12.47 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.342, allocations: 0 / 1.373 GB, free: 12.47 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003123/1.343, allocations: 47.88 kB / 1.373 GB, free: 12.43 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: 6 (bli.sampleTrigger,$whenCondition1,bli.occ,bli.blindState,bli.pDown,bli.curSeed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003694/1.343, allocations: 180.1 kB / 1.373 GB, free: 12.26 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000149/1.343, allocations: 54.06 kB / 1.373 GB, free: 12.22 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/1.343, allocations: 0 / 1.373 GB, free: 12.22 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.091e-05/1.343, allocations: 29.56 kB / 1.373 GB, free: 12.2 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001906/1.344, allocations: 15.92 kB / 1.373 GB, free: 12.18 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003244/1.344, allocations: 110.8 kB / 1.373 GB, free: 12.06 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/1.344, allocations: 0.6887 MB / 1.374 GB, free: 11.35 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.617e-05/1.344, allocations: 4.188 kB / 1.374 GB, free: 11.34 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.751e-05/1.344, allocations: 15.42 kB / 1.374 GB, free: 11.33 MB / 0.8386 GB Notification: Performance of SimCode: time 4.71e-07/1.344, allocations: 4 kB / 1.374 GB, free: 11.32 MB / 0.8386 GB Notification: Performance of Templates: time 0.004188/1.349, allocations: 1.52 MB / 1.376 GB, free: 9.82 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.sim & ./Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Blinds_Validation_Haldi2008BlindsTIn.csv","../files/Buildings_latest_Buildings.Occupants.Office.Blinds.Validation.Haldi2008BlindsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bli.TIn,bli.occ,bli.pDown,bli.blindState Variables in the result:TIn.amplitude,TIn.f,TIn.offset,TIn.phase,TIn.startTime,TIn.y,bli.A,bli.B,bli.TIn,bli.blindState,bli.occ,bli.pDown,bli.samplePeriod,bli.seed,bli.t0,occ.startTime,occ.startValue,time