Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Zhang2012WindowsNorth,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",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.208/2.208, allocations: 390.3 MB / 405.3 MB, free: 13.51 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.001034/0.001034, allocations: 181 kB / 498.1 MB, free: 5.766 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.476/1.476, allocations: 223.2 MB / 0.7948 GB, free: 18.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.0008981/0.000898, allocations: 98.52 kB / 0.9346 GB, free: 7.234 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003854/0.0003854, allocations: 9.781 kB / 1.084 GB, free: 212.5 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2927, allocations: 142.4 MB / 1.223 GB, free: 89.52 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1933/0.4861, allocations: 151.2 MB / 1.371 GB, free: 2.105 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.4864, allocations: 91.88 kB / 1.371 GB, free: 2.016 MB / 0.8698 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.009623/0.496, allocations: 3.031 MB / 1.374 GB, free: 14.98 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.603e-06/0.4961, allocations: 0 / 1.374 GB, free: 14.98 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.767e-06/0.4961, allocations: 0 / 1.374 GB, free: 14.98 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.0006788/0.4968, allocations: 432.7 kB / 1.374 GB, free: 14.5 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.171e-05/0.4968, allocations: 12.03 kB / 1.374 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001024/0.497, allocations: 30.56 kB / 1.374 GB, free: 14.45 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.632e-05/0.497, allocations: 15.84 kB / 1.374 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001344/0.4972, allocations: 163.1 kB / 1.374 GB, free: 14.23 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/0.4972, allocations: 4 kB / 1.374 GB, free: 14.23 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.053e-05/0.4972, allocations: 4 kB / 1.374 GB, free: 14.23 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002087/0.4974, allocations: 77.59 kB / 1.374 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.4975, allocations: 0 / 1.374 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.4975, allocations: 3.938 kB / 1.374 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.4975, allocations: 0 / 1.374 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001376/0.4976, allocations: 47.97 kB / 1.374 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006826/0.4983, allocations: 320.7 kB / 1.375 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001373/0.4985, allocations: 54.55 kB / 1.375 GB, free: 13.67 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.4985, allocations: 11.88 kB / 1.375 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001812/0.4987, allocations: 83.67 kB / 1.375 GB, free: 13.56 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.773e-06/0.4987, allocations: 0 / 1.375 GB, free: 13.56 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0003988/0.4991, allocations: 141.6 kB / 1.375 GB, free: 13.42 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/0.4992, allocations: 59.41 kB / 1.375 GB, free: 13.35 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.294e-05/0.4993, allocations: 112.9 kB / 1.375 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.4993, allocations: 25.7 kB / 1.375 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.036e-05/0.4993, allocations: 92.31 kB / 1.375 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.447e-05/0.4994, allocations: 27.75 kB / 1.375 GB, free: 13.07 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-06/0.4994, allocations: 0 / 1.375 GB, free: 13.07 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.4995, allocations: 318.8 kB / 1.376 GB, free: 12.75 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.676e-05/0.4996, allocations: 39.98 kB / 1.376 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.895e-05/0.4997, allocations: 46.56 kB / 1.376 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.526e-05/0.4998, allocations: 31.98 kB / 1.376 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.4998, allocations: 0 / 1.376 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002328/0.5, allocations: 121.5 kB / 1.376 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.5001, allocations: 4 kB / 1.376 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.5001, allocations: 0 / 1.376 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.5001, allocations: 4 kB / 1.376 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.432e-05/0.5002, allocations: 11.98 kB / 1.376 GB, free: 12.48 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.5002, allocations: 7.891 kB / 1.376 GB, free: 12.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.858e-05/0.5003, allocations: 12.06 kB / 1.376 GB, free: 12.46 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.5003, allocations: 4 kB / 1.376 GB, free: 12.46 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 8.891e-05/0.5004, allocations: 121.8 kB / 1.376 GB, free: 12.33 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.442e-05/0.5004, allocations: 3.906 kB / 1.376 GB, free: 12.33 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.721e-05/0.5005, allocations: 12.38 kB / 1.376 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.5005, allocations: 0 / 1.376 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.5005, allocations: 3.938 kB / 1.376 GB, free: 12.31 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.5005, allocations: 3.953 kB / 1.376 GB, free: 12.31 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004404/0.5009, allocations: 386.5 kB / 1.376 GB, free: 11.88 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.5009, allocations: 0 / 1.376 GB, free: 11.88 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.232e-05/0.501, allocations: 7.984 kB / 1.376 GB, free: 11.87 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.501, allocations: 0 / 1.376 GB, free: 11.87 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.501, allocations: 0 / 1.376 GB, free: 11.87 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.501, allocations: 3.953 kB / 1.376 GB, free: 11.86 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.501, allocations: 8 kB / 1.376 GB, free: 11.86 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002649/0.5013, allocations: 211.4 kB / 1.377 GB, free: 11.63 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.704e-05/0.5013, allocations: 88.95 kB / 1.377 GB, free: 11.53 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.5014, allocations: 0 / 1.377 GB, free: 11.53 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.075e-05/0.5015, allocations: 15.92 kB / 1.377 GB, free: 11.51 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.239e-05/0.5015, allocations: 19.92 kB / 1.377 GB, free: 11.49 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.5015, allocations: 0 / 1.377 GB, free: 11.49 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.388e-05/0.5016, allocations: 99.86 kB / 1.377 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5016, allocations: 0 / 1.377 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003215/0.5019, allocations: 55.86 kB / 1.377 GB, free: 11.34 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.0007857/0.5027, allocations: 0.808 MB / 1.378 GB, free: 10.52 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002379/0.503, allocations: 83.89 kB / 1.378 GB, free: 10.44 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.503, allocations: 3.938 kB / 1.378 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 9.261e-05/0.5031, allocations: 35.92 kB / 1.378 GB, free: 10.4 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001791/0.5033, allocations: 11.94 kB / 1.378 GB, free: 10.39 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007024/0.504, allocations: 0.7207 MB / 1.378 GB, free: 9.605 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002214/0.5042, allocations: 0.7043 MB / 1.379 GB, free: 8.875 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.698e-05/0.5043, allocations: 192 / 1.379 GB, free: 8.875 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.576e-05/0.5043, allocations: 19.44 kB / 1.379 GB, free: 8.855 MB / 0.8855 GB Notification: Performance of SimCode: time 4.1e-07/0.5043, allocations: 0 / 1.379 GB, free: 8.855 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01342/0.5177, allocations: 2.487 MB / 1.382 GB, free: 6.539 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000183/0.518, allocations: 233.6 kB / 1.382 GB, free: 6.301 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.578/2.096, allocations: 4 kB / 1.382 GB, free: 6.297 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat does not exist to compare? outputFormat=mat