Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Nicol2001HeatingUK,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK",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.004747/0.004747, allocations: 100.9 kB / 15.73 MB, free: 5.988 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.001139/0.001139, allocations: 192.5 kB / 16.67 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.395/2.395, allocations: 390.3 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 66.58 kB / 0.9504 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3112, allocations: 140.4 MB / 1.087 GB, free: 2.035 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002913/0.3142, allocations: 1.477 MB / 1.089 GB, free: 0.5469 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001396/0.3156, allocations: 0.7298 MB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.881e-05/0.3157, allocations: 0 / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.337e-05/0.3157, allocations: 3.938 kB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.268e-05/0.3158, allocations: 11.86 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006486/0.3165, allocations: 127.6 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001163/0.3166, allocations: 75.78 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.3167, allocations: 19.95 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001028/0.3168, allocations: 31.92 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.204e-05/0.3169, allocations: 39.83 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.3169, allocations: 4 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002364/0.3172, allocations: 103.8 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.128e-05/0.3172, allocations: 19.92 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.474e-05/0.3173, allocations: 35.86 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002561/0.3175, allocations: 138.5 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3175, allocations: 3.938 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3176, allocations: 0 / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.3176, allocations: 4 kB / 1.09 GB, free: 15.21 MB / 0.8575 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.000689/0.3183, allocations: 405.8 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.3183, allocations: 12.03 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.407e-05/0.3184, allocations: 34.73 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.626e-05/0.3184, allocations: 16.78 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.3186, allocations: 184.2 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.754e-05/0.3186, allocations: 4.375 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.3186, allocations: 4.375 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002052/0.3188, allocations: 69.78 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.3189, allocations: 0 / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.3189, allocations: 0 / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.3189, allocations: 7.984 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001299/0.319, allocations: 31.98 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006514/0.3197, allocations: 320.7 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/0.3199, allocations: 46.56 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.721e-05/0.32, allocations: 32.97 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.875e-05/0.32, allocations: 0 / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000228/0.3202, allocations: 87.44 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.3202, allocations: 0 / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004325/0.3207, allocations: 137.5 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.428e-05/0.3207, allocations: 51.41 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.3209, allocations: 129.7 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.3209, allocations: 29.7 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.167e-05/0.321, allocations: 96.05 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.781e-05/0.321, allocations: 19.8 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.993e-05/0.3211, allocations: 29.7 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001797/0.3213, allocations: 314.8 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.812e-05/0.3214, allocations: 27.98 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/0.3215, allocations: 50.48 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001716/0.3217, allocations: 78.48 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3217, allocations: 0 / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002685/0.3219, allocations: 109.9 kB / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.322, allocations: 7.984 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.322, allocations: 4.141 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.322, allocations: 4 kB / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.3221, allocations: 11.94 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.3221, allocations: 3.984 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.095e-05/0.3222, allocations: 11.89 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.3222, allocations: 8 kB / 1.092 GB, free: 12.62 MB / 0.8575 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,hea.curSeed,$PRE.hea.curSeed,hea.p,$PRE.hea.p,hea.on,$PRE.hea.on,hea.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001297/0.3224, allocations: 121.7 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.994e-05/0.3224, allocations: 11.84 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.607e-05/0.3224, allocations: 20.36 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.3224, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3225, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.3225, allocations: 4 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005077/0.323, allocations: 378.4 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.323, allocations: 0 / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.211e-05/0.323, allocations: 4 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.3231, allocations: 0 / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.3231, allocations: 11.97 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.3231, allocations: 7.938 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3231, allocations: 0 / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003069/0.3234, allocations: 207.4 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.235e-05/0.3235, allocations: 85.02 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.031e-05/0.3235, allocations: 3.984 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.006e-05/0.3236, allocations: 7.938 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/0.3236, allocations: 8 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.3237, allocations: 7.984 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.636e-05/0.3237, allocations: 95.2 kB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.3237, allocations: 0 / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000337/0.3241, allocations: 36 kB / 1.093 GB, free: 11.53 MB / 0.8575 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009204/0.325, allocations: 0.7935 MB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002634/0.3253, allocations: 75.89 kB / 1.094 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3253, allocations: 0 / 1.094 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.3254, allocations: 39.91 kB / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.3257, allocations: 20.55 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001668/0.3274, allocations: 1.481 MB / 1.096 GB, free: 9.016 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.3278, allocations: 0.6962 MB / 1.096 GB, free: 8.293 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.466e-05/0.3278, allocations: 11.73 kB / 1.096 GB, free: 8.281 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.355e-05/0.3279, allocations: 19.44 kB / 1.096 GB, free: 8.262 MB / 0.8575 GB Notification: Performance of SimCode: time 3.81e-07/0.3279, allocations: 0 / 1.096 GB, free: 8.262 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01986/0.3477, allocations: 2.648 MB / 1.099 GB, free: 5.754 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.89/7.238, allocations: 11.75 kB / 1.099 GB, free: 5.742 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.fmu > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,hea.TOut,hea.occ,hea.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,TOut.y,hea.A,hea.B,hea.TOut,hea.occ,hea.on,hea.p,hea.samplePeriod,hea.seed,occ.startTime,occ.startValue,occ.y,time