Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.Zhang2012WindowsSouth,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",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.219/2.219, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001093/0.001093, allocations: 184.8 kB / 487.4 MB, free: 5.055 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.512/1.512, allocations: 221.5 MB / 0.7824 GB, free: 0.9453 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.0008685/0.0008682, allocations: 94.03 kB / 0.9219 GB, free: 2.188 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.189e-05/2.198e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2473, allocations: 142.4 MB / 1.206 GB, free: 43.89 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9206/1.168, allocations: 150.5 MB / 1.353 GB, free: 18.23 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/1.168, allocations: 80.58 kB / 1.353 GB, free: 18.23 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.009443/1.178, allocations: 2.999 MB / 1.356 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.543e-06/1.178, allocations: 0 / 1.356 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.152e-06/1.178, allocations: 0 / 1.356 GB, free: 33.78 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.0004589/1.178, allocations: 419.1 kB / 1.356 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/1.178, allocations: 8.438 kB / 1.356 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.612e-05/1.178, allocations: 9.906 kB / 1.356 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.175e-05/1.178, allocations: 175.9 kB / 1.357 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/1.178, allocations: 0.7031 kB / 1.357 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.65e-05/1.178, allocations: 7.875 kB / 1.357 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.946e-05/1.179, allocations: 19.83 kB / 1.357 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001044/1.179, allocations: 59.17 kB / 1.357 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/1.179, allocations: 0 / 1.357 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/1.179, allocations: 7.875 kB / 1.357 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/1.179, allocations: 0.7031 kB / 1.357 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000524/1.179, allocations: 296.8 kB / 1.357 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.619e-05/1.179, allocations: 37.56 kB / 1.357 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.813e-05/1.179, allocations: 20.62 kB / 1.357 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/1.179, allocations: 7.594 kB / 1.357 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000105/1.179, allocations: 69.19 kB / 1.357 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/1.179, allocations: 4 kB / 1.357 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002496/1.18, allocations: 93.5 kB / 1.357 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.12e-05/1.18, allocations: 55.92 kB / 1.357 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.254e-05/1.18, allocations: 111.2 kB / 1.357 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.232e-05/1.18, allocations: 25.7 kB / 1.357 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.292e-05/1.18, allocations: 96.36 kB / 1.357 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.726e-05/1.18, allocations: 12.81 kB / 1.357 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.151e-06/1.18, allocations: 0 / 1.357 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001025/1.18, allocations: 325.2 kB / 1.358 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.325e-05/1.18, allocations: 15.67 kB / 1.358 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.297e-05/1.18, allocations: 39.02 kB / 1.358 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.872e-05/1.18, allocations: 21.36 kB / 1.358 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/1.18, allocations: 0 / 1.358 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001391/1.18, allocations: 94.08 kB / 1.358 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/1.18, allocations: 8.031 kB / 1.358 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/1.18, allocations: 3.906 kB / 1.358 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/1.18, allocations: 0 / 1.358 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.944e-05/1.181, allocations: 11.03 kB / 1.358 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/1.181, allocations: 7.75 kB / 1.358 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.387e-05/1.181, allocations: 5.422 kB / 1.358 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.37e-05/1.181, allocations: 4.375 kB / 1.358 GB, free: 32.08 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 7.248e-05/1.181, allocations: 121.4 kB / 1.358 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001398/1.181, allocations: 96.83 kB / 1.358 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.109e-05/1.181, allocations: 3.812 kB / 1.358 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.7e-05/1.181, allocations: 8.688 kB / 1.358 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/1.181, allocations: 0 / 1.358 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/1.181, allocations: 0 / 1.358 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/1.181, allocations: 8.359 kB / 1.358 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003102/1.181, allocations: 338.6 kB / 1.359 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/1.181, allocations: 0.5156 kB / 1.359 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.527e-05/1.181, allocations: 9.391 kB / 1.359 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/1.181, allocations: 3.906 kB / 1.359 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/1.181, allocations: 1.406 kB / 1.359 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/1.181, allocations: 0 / 1.359 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/1.181, allocations: 5.641 kB / 1.359 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001797/1.182, allocations: 192.2 kB / 1.359 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.162e-05/1.182, allocations: 81.53 kB / 1.359 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/1.182, allocations: 0.6562 kB / 1.359 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.186e-05/1.182, allocations: 9.5 kB / 1.359 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.724e-05/1.182, allocations: 17.52 kB / 1.359 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.988e-06/1.182, allocations: 4.5 kB / 1.359 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.4e-05/1.182, allocations: 89.91 kB / 1.359 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.182, allocations: 0 / 1.359 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003347/1.182, allocations: 52.34 kB / 1.359 GB, free: 31.31 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.0006921/1.183, allocations: 0.7946 MB / 1.36 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001259/1.183, allocations: 51.41 kB / 1.36 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/1.183, allocations: 0 / 1.36 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.036e-05/1.183, allocations: 28.08 kB / 1.36 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001915/1.183, allocations: 14.11 kB / 1.36 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004893/1.184, allocations: 157.8 kB / 1.36 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/1.184, allocations: 0.6909 MB / 1.361 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.804e-05/1.184, allocations: 8.016 kB / 1.361 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.245e-05/1.184, allocations: 21.5 kB / 1.361 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of SimCode: time 2.8e-07/1.184, allocations: 0 / 1.361 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01996/1.204, allocations: 2.18 MB / 1.363 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001718/1.204, allocations: 187.8 kB / 1.363 GB, free: 29.42 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.503/2.707, allocations: 0 / 1.363 GB, free: 29.42 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat does not exist to compare? outputFormat=mat