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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001607/0.001608, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.448/2.448, allocations: 390.3 MB / 0.6653 GB, free: 2.938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003849/0.0003851, allocations: 12 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8202/0.8206, allocations: 142.3 MB / 0.9536 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002001/0.8227, allocations: 1.177 MB / 0.9547 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001242/0.824, allocations: 0.6753 MB / 0.9554 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.621e-05/0.824, allocations: 1.5 kB / 0.9554 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.753e-05/0.824, allocations: 3.938 kB / 0.9554 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.245e-05/0.8241, allocations: 5.297 kB / 0.9554 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004894/0.8246, allocations: 98.69 kB / 0.9555 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.933e-05/0.8247, allocations: 48.03 kB / 0.9555 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.8248, allocations: 8.484 kB / 0.9556 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.371e-05/0.8249, allocations: 33.84 kB / 0.9556 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.042e-05/0.825, allocations: 35.69 kB / 0.9556 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.365e-05/0.825, allocations: 6.375 kB / 0.9556 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001765/0.8252, allocations: 66.89 kB / 0.9557 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.269e-05/0.8252, allocations: 15.48 kB / 0.9557 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.412e-05/0.8253, allocations: 34.11 kB / 0.9557 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001637/0.8254, allocations: 99.81 kB / 0.9558 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.8255, allocations: 1.094 kB / 0.9558 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.795e-06/0.8255, allocations: 0 / 0.9558 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.8255, allocations: 0 / 0.9558 GB, free: 6.301 MB / 0.7169 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.0005493/0.826, allocations: 415.9 kB / 0.9562 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.8261, allocations: 9.312 kB / 0.9562 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.679e-05/0.8261, allocations: 31.66 kB / 0.9563 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.692e-05/0.8262, allocations: 19.81 kB / 0.9563 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.472e-05/0.8263, allocations: 171.3 kB / 0.9565 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.8263, allocations: 5.312 kB / 0.9565 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.693e-05/0.8263, allocations: 4.625 kB / 0.9565 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001728/0.8265, allocations: 66.72 kB / 0.9565 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.8265, allocations: 0 / 0.9565 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.546e-05/0.8265, allocations: 8 kB / 0.9565 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.8265, allocations: 5.266 kB / 0.9565 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001363/0.8267, allocations: 45.28 kB / 0.9566 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005397/0.8272, allocations: 322.1 kB / 0.9569 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001249/0.8274, allocations: 59.2 kB / 0.9569 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.8274, allocations: 0.75 kB / 0.9569 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001853/0.8276, allocations: 79.67 kB / 0.957 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.8276, allocations: 1.188 kB / 0.957 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004223/0.828, allocations: 151.9 kB / 0.9572 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/0.8281, allocations: 56.81 kB / 0.9572 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.475e-05/0.8282, allocations: 124.6 kB / 0.9573 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.8282, allocations: 30.73 kB / 0.9574 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.642e-05/0.8282, allocations: 87.45 kB / 0.9575 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.965e-05/0.8283, allocations: 17.94 kB / 0.9575 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-06/0.8283, allocations: 1.031 kB / 0.9575 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.065e-05/0.8284, allocations: 320.2 kB / 0.9578 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.243e-05/0.8284, allocations: 29.55 kB / 0.9578 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.533e-05/0.8285, allocations: 54.3 kB / 0.9579 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.77e-05/0.8286, allocations: 36.31 kB / 0.9579 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.8287, allocations: 0 / 0.9579 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002255/0.8289, allocations: 117.3 kB / 0.958 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.8289, allocations: 5.656 kB / 0.958 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.8289, allocations: 9.266 kB / 0.958 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.8289, allocations: 1.094 kB / 0.958 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.8291, allocations: 17.27 kB / 0.958 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.8291, allocations: 5.031 kB / 0.958 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.833e-05/0.8291, allocations: 13.77 kB / 0.9581 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.677e-05/0.8292, allocations: 3.062 kB / 0.9581 GB, free: 4.188 MB / 0.7169 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 8.373e-05/0.8293, allocations: 115.1 kB / 0.9582 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.8293, allocations: 10.78 kB / 0.9582 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.776e-05/0.8293, allocations: 9.781 kB / 0.9582 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.8293, allocations: 9.328 kB / 0.9582 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.8293, allocations: 0 / 0.9582 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.8293, allocations: 3.984 kB / 0.9582 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003847/0.8297, allocations: 385.6 kB / 0.9586 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.8297, allocations: 4 kB / 0.9586 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.738e-05/0.8298, allocations: 3.562 kB / 0.9586 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.8298, allocations: 5.797 kB / 0.9586 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.8298, allocations: 0 / 0.9586 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.8298, allocations: 2 kB / 0.9586 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.8298, allocations: 3.938 kB / 0.9586 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002299/0.8301, allocations: 222.7 kB / 0.9588 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.099e-05/0.8301, allocations: 82.33 kB / 0.9589 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.054e-05/0.8301, allocations: 5.297 kB / 0.9589 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.399e-05/0.8302, allocations: 7.734 kB / 0.9589 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.867e-05/0.8302, allocations: 3.906 kB / 0.9589 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.649e-06/0.8303, allocations: 5.141 kB / 0.9589 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.424e-05/0.8303, allocations: 92.62 kB / 0.959 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8303, allocations: 4 kB / 0.959 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002983/0.8306, allocations: 44.17 kB / 0.959 GB, free: 3.27 MB / 0.7169 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.0006459/0.8313, allocations: 0.8167 MB / 0.9598 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002353/0.8315, allocations: 71.5 kB / 0.9599 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.8315, allocations: 0 / 0.9599 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.605e-05/0.8316, allocations: 38.64 kB / 0.9599 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001765/0.8318, allocations: 15.72 kB / 0.9599 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006769/0.8325, allocations: 0.7225 MB / 0.9607 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000154/0.8327, allocations: 0.69 MB / 0.9613 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.849e-05/0.8327, allocations: 11.89 kB / 0.9613 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.824e-05/0.8327, allocations: 17.69 kB / 0.9614 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.8328, allocations: 0 / 0.9614 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01251/0.8453, allocations: 2.314 MB / 0.9636 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002013/0.8455, allocations: 249.6 kB / 0.9639 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.75/2.595, allocations: 2.875 kB / 0.9639 GB, free: 15.64 MB / 0.7325 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