Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.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.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",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.23/2.23, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001038/0.001038, allocations: 177.2 kB / 498.1 MB, free: 5.746 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.617/1.617, allocations: 223.2 MB / 0.7948 GB, free: 17.89 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.0009949/0.0009949, allocations: 96.33 kB / 0.9346 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003524/0.0003525, allocations: 14.81 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2657, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1842/0.4499, allocations: 151.2 MB / 1.371 GB, free: 10.77 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/0.4502, allocations: 87.89 kB / 1.371 GB, free: 10.69 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.009583/0.4598, allocations: 3.043 MB / 1.374 GB, free: 7.637 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.064e-06/0.4599, allocations: 0 / 1.374 GB, free: 7.637 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.127e-06/0.4599, allocations: 4 kB / 1.374 GB, free: 7.633 MB / 0.8698 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.000584/0.4605, allocations: 424.8 kB / 1.374 GB, free: 7.164 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.4605, allocations: 8.031 kB / 1.374 GB, free: 7.156 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.39e-05/0.4606, allocations: 42.5 kB / 1.374 GB, free: 7.105 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/0.4606, allocations: 11.86 kB / 1.374 GB, free: 7.094 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.4608, allocations: 170.9 kB / 1.374 GB, free: 6.887 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.551e-05/0.4608, allocations: 4 kB / 1.374 GB, free: 6.883 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.033e-05/0.4609, allocations: 8 kB / 1.374 GB, free: 6.875 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.4611, allocations: 77.62 kB / 1.374 GB, free: 6.793 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.4611, allocations: 0 / 1.374 GB, free: 6.793 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.4611, allocations: 0 / 1.374 GB, free: 6.793 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.543e-06/0.4611, allocations: 4 kB / 1.374 GB, free: 6.789 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001332/0.4612, allocations: 39.97 kB / 1.374 GB, free: 6.75 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006458/0.4619, allocations: 324.6 kB / 1.375 GB, free: 6.383 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.462, allocations: 54.56 kB / 1.375 GB, free: 6.32 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.4621, allocations: 0 / 1.375 GB, free: 6.32 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001671/0.4622, allocations: 79.5 kB / 1.375 GB, free: 6.23 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.4623, allocations: 0 / 1.375 GB, free: 6.23 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0004139/0.4627, allocations: 161.6 kB / 1.375 GB, free: 6.066 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.4627, allocations: 51.41 kB / 1.375 GB, free: 6.004 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.638e-05/0.4628, allocations: 116.8 kB / 1.375 GB, free: 5.883 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.4629, allocations: 29.7 kB / 1.375 GB, free: 5.848 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.536e-05/0.4629, allocations: 84.33 kB / 1.375 GB, free: 5.758 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.64e-05/0.463, allocations: 23.73 kB / 1.375 GB, free: 5.734 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-06/0.463, allocations: 0 / 1.375 GB, free: 5.734 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.4631, allocations: 318.8 kB / 1.376 GB, free: 5.414 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.68e-05/0.4632, allocations: 35.97 kB / 1.376 GB, free: 5.379 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.148e-05/0.4633, allocations: 50.5 kB / 1.376 GB, free: 5.32 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.89e-05/0.4634, allocations: 31.98 kB / 1.376 GB, free: 5.289 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.4634, allocations: 4 kB / 1.376 GB, free: 5.285 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002472/0.4636, allocations: 121.5 kB / 1.376 GB, free: 5.16 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.4637, allocations: 4 kB / 1.376 GB, free: 5.156 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-06/0.4637, allocations: 0 / 1.376 GB, free: 5.156 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.4637, allocations: 4 kB / 1.376 GB, free: 5.152 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.606e-05/0.4638, allocations: 19.86 kB / 1.376 GB, free: 5.133 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.4638, allocations: 4.016 kB / 1.376 GB, free: 5.129 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.807e-05/0.4639, allocations: 12 kB / 1.376 GB, free: 5.117 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.4639, allocations: 12 kB / 1.376 GB, free: 5.105 MB / 0.8698 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 (hea.occ,$PRE.hea.on,hea.on,$PRE.hea.p,hea.p,$PRE.hea.curSeed,hea.curSeed,$whenCondition1,hea.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 0.0001034/0.464, allocations: 119 kB / 1.376 GB, free: 4.98 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.671e-05/0.464, allocations: 7.906 kB / 1.376 GB, free: 4.973 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.578e-05/0.4641, allocations: 4.375 kB / 1.376 GB, free: 4.969 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.4641, allocations: 0 / 1.376 GB, free: 4.969 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4641, allocations: 0 / 1.376 GB, free: 4.969 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.82e-06/0.4641, allocations: 7.953 kB / 1.376 GB, free: 4.961 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00046/0.4646, allocations: 386.5 kB / 1.376 GB, free: 4.527 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4646, allocations: 0 / 1.376 GB, free: 4.527 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.528e-05/0.4646, allocations: 4 kB / 1.376 GB, free: 4.523 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.4646, allocations: 3.984 kB / 1.376 GB, free: 4.52 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.4647, allocations: 0 / 1.376 GB, free: 4.52 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.4647, allocations: 11.95 kB / 1.376 GB, free: 4.508 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4647, allocations: 0 / 1.376 GB, free: 4.508 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000279/0.465, allocations: 215.8 kB / 1.377 GB, free: 4.281 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.277e-05/0.465, allocations: 89 kB / 1.377 GB, free: 4.176 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.465, allocations: 0 / 1.377 GB, free: 4.176 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.794e-05/0.4651, allocations: 8 kB / 1.377 GB, free: 4.168 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.905e-05/0.4652, allocations: 11.94 kB / 1.377 GB, free: 4.156 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.4652, allocations: 4 kB / 1.377 GB, free: 4.152 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 4.981e-05/0.4653, allocations: 95.27 kB / 1.377 GB, free: 4.059 MB / 0.8698 GB Notification: Performance of sort global known variables: time 9.348e-06/0.4653, allocations: 0 / 1.377 GB, free: 4.059 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003049/0.4656, allocations: 47.94 kB / 1.377 GB, free: 4.012 MB / 0.8698 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 (hea.sampleTrigger,$whenCondition1,hea.occ,hea.on,hea.p,hea.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.0008667/0.4665, allocations: 0.827 MB / 1.378 GB, free: 3.172 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002453/0.4667, allocations: 87.88 kB / 1.378 GB, free: 3.086 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4667, allocations: 0 / 1.378 GB, free: 3.086 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 9.633e-05/0.4668, allocations: 35.98 kB / 1.378 GB, free: 3.051 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001719/0.467, allocations: 5.828 kB / 1.378 GB, free: 3.047 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008159/0.4678, allocations: 0.7382 MB / 1.379 GB, free: 2.246 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002585/0.4681, allocations: 0.6926 MB / 1.379 GB, free: 1.527 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.769e-05/0.4682, allocations: 192 / 1.379 GB, free: 1.527 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.009e-05/0.4682, allocations: 19.42 kB / 1.379 GB, free: 1.508 MB / 0.8698 GB Notification: Performance of SimCode: time 5.81e-07/0.4682, allocations: 0 / 1.379 GB, free: 1.508 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01518/0.4834, allocations: 2.496 MB / 1.382 GB, free: 15.18 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/0.4837, allocations: 248.2 kB / 1.382 GB, free: 14.92 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.502/1.985, allocations: 0 / 1.382 GB, free: 14.92 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.fmu > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat does not exist to compare? outputFormat=mat