Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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: "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.402/2.402, allocations: 387.1 MB / 399.7 MB, free: 9.492 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.001534/0.001534, allocations: 191.9 kB / 492.3 MB, free: 0.6172 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.769/1.769, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.001023/0.001023, allocations: 87.95 kB / 0.9267 GB, free: 13.94 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.628e-05/5.692e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4395/0.4396, allocations: 142.4 MB / 1.212 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.315/1.755, allocations: 151.2 MB / 1.36 GB, free: 18.9 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/1.756, allocations: 79.3 kB / 1.36 GB, free: 18.9 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.01043/1.766, allocations: 3.013 MB / 1.363 GB, free: 34.45 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.993e-06/1.766, allocations: 0 / 1.363 GB, free: 34.45 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.226e-05/1.766, allocations: 3.844 kB / 1.363 GB, free: 34.45 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.0006723/1.767, allocations: 424.1 kB / 1.364 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.102e-05/1.767, allocations: 7.688 kB / 1.364 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.874e-05/1.767, allocations: 35.83 kB / 1.364 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.009e-05/1.767, allocations: 3.906 kB / 1.364 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001303/1.767, allocations: 168.6 kB / 1.364 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.213e-05/1.767, allocations: 7.531 kB / 1.364 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.57e-05/1.767, allocations: 3.844 kB / 1.364 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000154/1.767, allocations: 67.69 kB / 1.364 GB, free: 33.76 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/1.767, allocations: 4 kB / 1.364 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/1.767, allocations: 0 / 1.364 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/1.767, allocations: 3.812 kB / 1.364 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.292e-05/1.767, allocations: 26.84 kB / 1.364 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006768/1.768, allocations: 310 kB / 1.364 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.843e-05/1.768, allocations: 46.17 kB / 1.364 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.761e-05/1.768, allocations: 28.81 kB / 1.364 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.339e-05/1.768, allocations: 3.906 kB / 1.364 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001413/1.769, allocations: 73.25 kB / 1.364 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 2.304e-06/1.769, allocations: 3.625 kB / 1.364 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002865/1.769, allocations: 98.84 kB / 1.364 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/1.769, allocations: 59.25 kB / 1.364 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/1.769, allocations: 112.1 kB / 1.365 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/1.769, allocations: 29.58 kB / 1.365 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.598e-05/1.769, allocations: 92.16 kB / 1.365 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.064e-05/1.769, allocations: 20.2 kB / 1.365 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-06/1.769, allocations: 0 / 1.365 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.881e-05/1.769, allocations: 321.7 kB / 1.365 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.709e-05/1.769, allocations: 18.31 kB / 1.365 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.748e-05/1.769, allocations: 40.2 kB / 1.365 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.109e-05/1.769, allocations: 27.92 kB / 1.365 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/1.769, allocations: 0 / 1.365 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001742/1.77, allocations: 97.52 kB / 1.365 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/1.77, allocations: 9.031 kB / 1.365 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/1.77, allocations: 0 / 1.365 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/1.77, allocations: 0 / 1.365 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/1.77, allocations: 26.38 kB / 1.365 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/1.77, allocations: 7.891 kB / 1.365 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.037e-05/1.77, allocations: 6.109 kB / 1.365 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.446e-05/1.77, allocations: 3.844 kB / 1.365 GB, free: 32.67 MB / 0.8386 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 () * 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.082e-05/1.77, allocations: 114.6 kB / 1.365 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.039e-05/1.77, allocations: 7.844 kB / 1.365 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.846e-05/1.77, allocations: 9.594 kB / 1.365 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/1.77, allocations: 7.906 kB / 1.365 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/1.77, allocations: 0 / 1.365 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/1.77, allocations: 5.547 kB / 1.365 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004017/1.77, allocations: 365.3 kB / 1.366 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/1.77, allocations: 4 kB / 1.366 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.129e-05/1.771, allocations: 3.781 kB / 1.366 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/1.771, allocations: 2.953 kB / 1.366 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/1.771, allocations: 0 / 1.366 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/1.771, allocations: 7.672 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/1.771, allocations: 4 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002288/1.771, allocations: 194.1 kB / 1.366 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.956e-05/1.771, allocations: 77.11 kB / 1.366 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/1.771, allocations: 3.844 kB / 1.366 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.345e-05/1.771, allocations: 10.48 kB / 1.366 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.214e-05/1.771, allocations: 10.16 kB / 1.366 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/1.771, allocations: 3.875 kB / 1.366 GB, free: 32 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.134e-05/1.771, allocations: 94.5 kB / 1.366 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.771, allocations: 7.812 kB / 1.366 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003717/1.772, allocations: 50.69 kB / 1.366 GB, free: 31.9 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 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.p,win.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.0008434/1.772, allocations: 0.7964 MB / 1.367 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001675/1.773, allocations: 59.7 kB / 1.367 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/1.773, allocations: 0 / 1.367 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.742e-05/1.773, allocations: 33.59 kB / 1.367 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001988/1.773, allocations: 8.172 kB / 1.367 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005238/1.773, allocations: 153.5 kB / 1.367 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/1.774, allocations: 0.7008 MB / 1.368 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.331e-05/1.774, allocations: 4.031 kB / 1.368 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.971e-05/1.774, allocations: 20.53 kB / 1.368 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of SimCode: time 4.81e-07/1.774, allocations: 0 / 1.368 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01724/1.791, allocations: 2.512 MB / 1.37 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002205/1.791, allocations: 205.4 kB / 1.371 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.692/3.483, allocations: 2.109 kB / 1.371 GB, free: 29.89 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat does not exist to compare? outputFormat=mat