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.42/2.42, allocations: 387.1 MB / 399.7 MB, free: 9.434 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.001323/0.001323, allocations: 176.9 kB / 492.3 MB, free: 0.6328 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.779/1.779, 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.0009696/0.0009701, allocations: 96.47 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.039e-05/4.059e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3651/0.3651, allocations: 142.3 MB / 1.212 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.11/1.476, allocations: 151.2 MB / 1.36 GB, free: 18.81 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/1.476, allocations: 84.22 kB / 1.36 GB, free: 18.81 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.008874/1.485, allocations: 3.009 MB / 1.363 GB, free: 34.36 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.653e-06/1.485, allocations: 0 / 1.363 GB, free: 34.36 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.664e-06/1.485, allocations: 3.844 kB / 1.363 GB, free: 34.36 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.0003969/1.485, allocations: 420 kB / 1.364 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/1.485, allocations: 13.3 kB / 1.364 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.506e-05/1.485, allocations: 36.81 kB / 1.364 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.048e-05/1.485, allocations: 9.078 kB / 1.364 GB, free: 33.9 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.428e-05/1.485, allocations: 171.6 kB / 1.364 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/1.485, allocations: 4.719 kB / 1.364 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.928e-05/1.485, allocations: 7.828 kB / 1.364 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/1.486, allocations: 58.48 kB / 1.364 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/1.486, allocations: 3.938 kB / 1.364 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/1.486, allocations: 7.438 kB / 1.364 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/1.486, allocations: 3.875 kB / 1.364 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.696e-05/1.486, allocations: 23.11 kB / 1.364 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005193/1.486, allocations: 312.7 kB / 1.364 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.65e-05/1.486, allocations: 40.92 kB / 1.364 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.348e-05/1.486, allocations: 33.23 kB / 1.364 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/1.486, allocations: 0 / 1.364 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001064/1.487, allocations: 77.03 kB / 1.364 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/1.487, allocations: 0 / 1.364 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002113/1.487, allocations: 97.64 kB / 1.364 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.93e-05/1.487, allocations: 53.09 kB / 1.364 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.813e-05/1.487, allocations: 114.8 kB / 1.365 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/1.487, allocations: 29.64 kB / 1.365 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.708e-05/1.487, allocations: 97.94 kB / 1.365 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/1.487, allocations: 20.44 kB / 1.365 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.553e-06/1.487, allocations: 0 / 1.365 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 5.459e-05/1.487, allocations: 321.6 kB / 1.365 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.94e-05/1.487, allocations: 18.06 kB / 1.365 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.677e-05/1.487, allocations: 38.98 kB / 1.365 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.078e-05/1.487, allocations: 29.28 kB / 1.365 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/1.487, allocations: 3.844 kB / 1.365 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000157/1.487, allocations: 97.19 kB / 1.365 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/1.487, allocations: 4.969 kB / 1.365 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/1.487, allocations: 7.75 kB / 1.365 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/1.487, allocations: 0 / 1.365 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.708e-05/1.488, allocations: 10.73 kB / 1.365 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/1.488, allocations: 7.672 kB / 1.365 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.36e-05/1.488, allocations: 21.38 kB / 1.365 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/1.488, allocations: 5.844 kB / 1.365 GB, free: 32.57 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 6.191e-05/1.488, allocations: 109.8 kB / 1.365 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.35e-05/1.488, allocations: 7.75 kB / 1.365 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.082e-05/1.488, allocations: 5.938 kB / 1.365 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/1.488, allocations: 0 / 1.365 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/1.488, allocations: 1.125 kB / 1.365 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/1.488, allocations: 7.828 kB / 1.365 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003344/1.488, allocations: 366.8 kB / 1.366 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/1.488, allocations: 1.734 kB / 1.366 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.142e-05/1.488, allocations: 7.75 kB / 1.366 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/1.488, allocations: 1.5 kB / 1.366 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/1.488, allocations: 0 / 1.366 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/1.488, allocations: 6.141 kB / 1.366 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/1.488, allocations: 0 / 1.366 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001832/1.488, allocations: 194.9 kB / 1.366 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.861e-05/1.488, allocations: 82.2 kB / 1.366 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/1.488, allocations: 0 / 1.366 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.713e-05/1.489, allocations: 5.141 kB / 1.366 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.314e-05/1.489, allocations: 17.39 kB / 1.366 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/1.489, allocations: 6.188 kB / 1.366 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.458e-05/1.489, allocations: 92.47 kB / 1.366 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.489, allocations: 0 / 1.366 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002899/1.489, allocations: 57.36 kB / 1.366 GB, free: 31.81 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.0006956/1.49, allocations: 0.7972 MB / 1.367 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001436/1.49, allocations: 64.14 kB / 1.367 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/1.49, allocations: 0 / 1.367 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.528e-05/1.49, allocations: 35.66 kB / 1.367 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001739/1.49, allocations: 5.5 kB / 1.367 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000438/1.491, allocations: 158.6 kB / 1.367 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002568/1.491, allocations: 0.6919 MB / 1.368 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.267e-05/1.491, allocations: 10.62 kB / 1.368 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.025e-05/1.491, allocations: 19.17 kB / 1.368 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of SimCode: time 3.1e-07/1.491, allocations: 0 / 1.368 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01375/1.505, allocations: 2.507 MB / 1.37 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001495/1.505, allocations: 209.8 kB / 1.371 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.748/3.253, allocations: 0 / 1.371 GB, free: 29.82 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