Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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.Windows.Validation.Haldi2008WindowsTOut,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut") translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.329/2.329, allocations: 393.5 MB / 408.4 MB, free: 11 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.001096/0.001096, allocations: 187.9 kB / 0.4902 GB, free: 2.246 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.518/1.518, allocations: 223.1 MB / 0.7992 GB, free: 14.75 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.001048/0.001048, allocations: 112 kB / 0.9396 GB, free: 1.906 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003521/0.0003521, allocations: 6.875 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3144, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.19/0.5045, allocations: 152 MB / 1.378 GB, free: 1.547 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002533/0.5048, allocations: 83.95 kB / 1.378 GB, free: 1.465 MB / 0.8698 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.009448/0.5143, allocations: 3.031 MB / 1.381 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.174e-06/0.5143, allocations: 4 kB / 1.381 GB, free: 14.42 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.5143, allocations: 0 / 1.381 GB, free: 14.42 MB / 0.8855 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.0005987/0.5149, allocations: 420.7 kB / 1.381 GB, free: 13.96 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.515, allocations: 16.5 kB / 1.381 GB, free: 13.94 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.958e-05/0.515, allocations: 7.953 kB / 1.381 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.5152, allocations: 166.9 kB / 1.381 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.191e-05/0.5152, allocations: 7.984 kB / 1.381 GB, free: 13.72 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.197e-05/0.5152, allocations: 8 kB / 1.381 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002005/0.5154, allocations: 73.64 kB / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.5155, allocations: 0 / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.5155, allocations: 3.938 kB / 1.381 GB, free: 13.63 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.5155, allocations: 4 kB / 1.381 GB, free: 13.63 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001413/0.5157, allocations: 39.97 kB / 1.381 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007046/0.5164, allocations: 320.7 kB / 1.382 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001353/0.5165, allocations: 46.56 kB / 1.382 GB, free: 13.17 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.669e-05/0.5166, allocations: 4 kB / 1.382 GB, free: 13.17 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001795/0.5167, allocations: 79.5 kB / 1.382 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 3.116e-06/0.5168, allocations: 0 / 1.382 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0004289/0.5172, allocations: 161.7 kB / 1.382 GB, free: 12.91 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.19e-05/0.5173, allocations: 59.39 kB / 1.382 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.553e-05/0.5174, allocations: 105 kB / 1.382 GB, free: 12.73 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.5174, allocations: 29.7 kB / 1.382 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.547e-05/0.5175, allocations: 92.23 kB / 1.382 GB, free: 12.6 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.987e-05/0.5175, allocations: 11.89 kB / 1.382 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.668e-06/0.5175, allocations: 4 kB / 1.382 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.5176, allocations: 314.8 kB / 1.383 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.2e-05/0.5177, allocations: 31.98 kB / 1.383 GB, free: 12.24 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.919e-05/0.5178, allocations: 50.98 kB / 1.383 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.117e-05/0.5179, allocations: 39.98 kB / 1.383 GB, free: 12.14 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.5179, allocations: 4 kB / 1.383 GB, free: 12.14 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002379/0.5182, allocations: 125.4 kB / 1.383 GB, free: 12.01 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.5182, allocations: 8 kB / 1.383 GB, free: 12 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.5182, allocations: 0 / 1.383 GB, free: 12 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.5182, allocations: 4 kB / 1.383 GB, free: 12 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.638e-05/0.5183, allocations: 15.98 kB / 1.383 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.5184, allocations: 12 kB / 1.383 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.171e-05/0.5184, allocations: 7.906 kB / 1.383 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.379e-05/0.5185, allocations: 7.938 kB / 1.383 GB, free: 11.95 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$PRE.win.curSeed,win.curSeed,$whenCondition1,win.sampleTrigger) * Number of discrete states: 0 () * Number of clocked 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 9.871e-05/0.5186, allocations: 126.6 kB / 1.383 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.32e-05/0.5186, allocations: 4 kB / 1.383 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.784e-05/0.5186, allocations: 8.359 kB / 1.383 GB, free: 11.81 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.5186, allocations: 4 kB / 1.383 GB, free: 11.8 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.5186, allocations: 4 kB / 1.383 GB, free: 11.8 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.5187, allocations: 3.953 kB / 1.383 GB, free: 11.8 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004418/0.5191, allocations: 378.5 kB / 1.383 GB, free: 11.37 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.5191, allocations: 0 / 1.383 GB, free: 11.37 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.156e-05/0.5192, allocations: 11.94 kB / 1.383 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.5192, allocations: 0 / 1.383 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.5192, allocations: 7.984 kB / 1.383 GB, free: 11.35 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.5192, allocations: 3.953 kB / 1.383 GB, free: 11.35 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.5192, allocations: 0 / 1.383 GB, free: 11.35 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002739/0.5195, allocations: 211.5 kB / 1.384 GB, free: 11.12 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.328e-05/0.5196, allocations: 85.02 kB / 1.384 GB, free: 11.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.5196, allocations: 3.984 kB / 1.384 GB, free: 11.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.371e-05/0.5197, allocations: 8 kB / 1.384 GB, free: 11.01 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.671e-05/0.5197, allocations: 11.94 kB / 1.384 GB, free: 11 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.5197, allocations: 4 kB / 1.384 GB, free: 11 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.998e-05/0.5198, allocations: 95.42 kB / 1.384 GB, free: 10.9 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1e-07/0.5198, allocations: 0 / 1.384 GB, free: 10.9 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003329/0.5201, allocations: 51.94 kB / 1.384 GB, free: 10.85 MB / 0.8855 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 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.p,win.curSeed) * Number of discrete states: 0 () * Number of clocked 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.0003808/0.5205, allocations: 165.3 kB / 1.384 GB, free: 10.69 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002305/0.5208, allocations: 75.95 kB / 1.384 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.5208, allocations: 0 / 1.384 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.5209, allocations: 44.44 kB / 1.384 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001621/0.5211, allocations: 5.438 kB / 1.384 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003874/0.5215, allocations: 205.3 kB / 1.384 GB, free: 10.34 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/0.5217, allocations: 0.6965 MB / 1.385 GB, free: 9.617 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.818e-05/0.5218, allocations: 12.16 kB / 1.385 GB, free: 9.605 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.052e-05/0.5218, allocations: 11.42 kB / 1.385 GB, free: 9.594 MB / 0.8855 GB Notification: Performance of SimCode: time 3.71e-07/0.5218, allocations: 0 / 1.385 GB, free: 9.594 MB / 0.8855 GB Notification: Performance of Templates: time 0.00396/0.5258, allocations: 1.524 MB / 1.387 GB, free: 8.07 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut.csv","../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0