Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Zhang2012WindowsWest,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",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.517/2.517, 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.001069/0.001069, allocations: 176.8 kB / 487.4 MB, free: 5.043 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.453/1.453, allocations: 221.5 MB / 0.7824 GB, free: 0.9336 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.000839/0.000839, allocations: 101.4 kB / 0.9219 GB, free: 2.168 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.84e-05/1.843e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2417, allocations: 142.4 MB / 1.206 GB, free: 43.84 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.921/1.163, allocations: 150.5 MB / 1.353 GB, free: 17.91 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/1.163, allocations: 80.52 kB / 1.353 GB, free: 17.91 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.01015/1.173, allocations: 2.996 MB / 1.356 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.124e-06/1.173, allocations: 0 / 1.356 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.758e-06/1.173, allocations: 0 / 1.356 GB, free: 33.46 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.0005672/1.174, allocations: 422.8 kB / 1.356 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/1.174, allocations: 11.62 kB / 1.356 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.803e-05/1.174, allocations: 12.45 kB / 1.356 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/1.174, allocations: 167.6 kB / 1.357 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.311e-05/1.174, allocations: 1.453 kB / 1.357 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.005e-05/1.174, allocations: 3.875 kB / 1.357 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.604e-05/1.174, allocations: 22.75 kB / 1.357 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000117/1.174, allocations: 60.48 kB / 1.357 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/1.174, allocations: 4 kB / 1.357 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/1.174, allocations: 4.547 kB / 1.357 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/1.174, allocations: 0 / 1.357 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006447/1.175, allocations: 296.6 kB / 1.357 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.893e-05/1.175, allocations: 44.25 kB / 1.357 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.565e-05/1.175, allocations: 24.08 kB / 1.357 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/1.175, allocations: 0 / 1.357 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001333/1.175, allocations: 73.19 kB / 1.357 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/1.175, allocations: 0 / 1.357 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.000289/1.176, allocations: 89.89 kB / 1.357 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.131e-05/1.176, allocations: 55.81 kB / 1.357 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/1.176, allocations: 113.8 kB / 1.357 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.637e-05/1.176, allocations: 25.7 kB / 1.357 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.838e-05/1.176, allocations: 96.2 kB / 1.357 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.421e-05/1.176, allocations: 20.06 kB / 1.357 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.171e-06/1.176, allocations: 0 / 1.357 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001685/1.176, allocations: 320 kB / 1.358 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.107e-05/1.176, allocations: 17.98 kB / 1.358 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.357e-05/1.176, allocations: 35.72 kB / 1.358 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.329e-05/1.176, allocations: 24.36 kB / 1.358 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/1.176, allocations: 0 / 1.358 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001623/1.177, allocations: 92.39 kB / 1.358 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/1.177, allocations: 3.844 kB / 1.358 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/1.177, allocations: 0.75 kB / 1.358 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/1.177, allocations: 3.844 kB / 1.358 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/1.177, allocations: 18.27 kB / 1.358 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.515e-06/1.177, allocations: 6.453 kB / 1.358 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.351e-05/1.177, allocations: 9.156 kB / 1.358 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/1.177, allocations: 0.75 kB / 1.358 GB, free: 31.76 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.776e-05/1.177, allocations: 112.7 kB / 1.358 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001644/1.177, allocations: 93.42 kB / 1.358 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.495e-05/1.177, allocations: 8.344 kB / 1.358 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.418e-05/1.177, allocations: 11.59 kB / 1.358 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/1.177, allocations: 0.7969 kB / 1.358 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/1.177, allocations: 4 kB / 1.358 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/1.177, allocations: 4.656 kB / 1.358 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003581/1.178, allocations: 339.6 kB / 1.359 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/1.178, allocations: 0 / 1.359 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.33e-05/1.178, allocations: 5.438 kB / 1.359 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/1.178, allocations: 0.6094 kB / 1.359 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/1.178, allocations: 2.078 kB / 1.359 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/1.178, allocations: 0.6094 kB / 1.359 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/1.178, allocations: 11.8 kB / 1.359 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002084/1.178, allocations: 191.7 kB / 1.359 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.014e-05/1.178, allocations: 85.47 kB / 1.359 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.252e-05/1.178, allocations: 0.75 kB / 1.359 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.765e-05/1.178, allocations: 9.938 kB / 1.359 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.401e-05/1.178, allocations: 9.859 kB / 1.359 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/1.178, allocations: 1.219 kB / 1.359 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.883e-05/1.178, allocations: 96.89 kB / 1.359 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.178, allocations: 0 / 1.359 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003028/1.179, allocations: 52.73 kB / 1.359 GB, free: 30.99 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.0008696/1.179, allocations: 0.7934 MB / 1.36 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000151/1.18, allocations: 50.41 kB / 1.36 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/1.18, allocations: 0 / 1.36 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.627e-05/1.18, allocations: 28.3 kB / 1.36 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/1.18, allocations: 10.16 kB / 1.36 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004777/1.18, allocations: 161 kB / 1.36 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/1.181, allocations: 0.6971 MB / 1.361 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.827e-05/1.181, allocations: 4.172 kB / 1.361 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.44e-05/1.181, allocations: 20.98 kB / 1.361 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/1.181, allocations: 0 / 1.361 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02195/1.203, allocations: 2.177 MB / 1.363 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001812/1.203, allocations: 187.6 kB / 1.363 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.619/2.822, allocations: 0 / 1.363 GB, free: 29.1 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat does not exist to compare? outputFormat=mat