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.004547/0.004547, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001102/0.001102, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.408/2.408, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 65.64 kB / 0.9504 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2337, allocations: 140.4 MB / 1.087 GB, free: 2.008 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002429/0.2361, allocations: 1.474 MB / 1.089 GB, free: 0.5195 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001189/0.2374, allocations: 0.7259 MB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.343e-05/0.2374, allocations: 11.94 kB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.214e-05/0.2375, allocations: 7.875 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.717e-05/0.2375, allocations: 3.938 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005334/0.2381, allocations: 127.5 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001087/0.2382, allocations: 75.81 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.069e-05/0.2383, allocations: 15.98 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.16e-05/0.2384, allocations: 35.86 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.5e-05/0.2384, allocations: 43.81 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.073e-05/0.2385, allocations: 8 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001829/0.2386, allocations: 95.91 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.764e-05/0.2387, allocations: 15.92 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.216e-05/0.2388, allocations: 31.8 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002314/0.239, allocations: 147.8 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.239, allocations: 0 / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.503e-06/0.239, allocations: 0 / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.239, allocations: 0 / 1.09 GB, free: 15.18 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.0005976/0.2396, allocations: 428.7 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.2397, allocations: 8.031 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.52e-05/0.2397, allocations: 34.75 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.431e-05/0.2398, allocations: 8.891 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.2399, allocations: 176.2 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.2399, allocations: 12.3 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.778e-05/0.2399, allocations: 4.375 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.2401, allocations: 73.72 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.2401, allocations: 4 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.2402, allocations: 4 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.2402, allocations: 0 / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001283/0.2403, allocations: 35.97 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005592/0.2409, allocations: 316.7 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001367/0.241, allocations: 54.56 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.731e-05/0.2411, allocations: 36.91 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.2411, allocations: 0 / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001818/0.2413, allocations: 75.38 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.503e-06/0.2413, allocations: 0 / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004019/0.2417, allocations: 141.6 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.967e-05/0.2418, allocations: 55.41 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.95e-05/0.2419, allocations: 121.8 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.008e-05/0.2419, allocations: 29.7 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.172e-05/0.242, allocations: 92.12 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.15e-05/0.242, allocations: 19.91 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.164e-05/0.2421, allocations: 25.7 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001/0.2422, allocations: 326.8 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.33e-05/0.2423, allocations: 27.98 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.863e-05/0.2424, allocations: 46.56 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001634/0.2425, allocations: 78.78 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.2425, allocations: 4 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002472/0.2428, allocations: 117.5 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.2428, allocations: 4 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.2428, allocations: 0 / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.2429, allocations: 4 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.543e-05/0.243, allocations: 11.98 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.243, allocations: 0 / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.834e-05/0.243, allocations: 11.89 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.2431, allocations: 4.062 kB / 1.092 GB, free: 12.58 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 9.857e-05/0.2432, allocations: 131.8 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.017e-05/0.2432, allocations: 11.95 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.379e-05/0.2432, allocations: 4.375 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.2432, allocations: 0 / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.2432, allocations: 4 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.2432, allocations: 0 / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004467/0.2437, allocations: 386.5 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2437, allocations: 0 / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.437e-05/0.2438, allocations: 7.984 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.2438, allocations: 0 / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.2438, allocations: 3.938 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.2438, allocations: 3.938 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2438, allocations: 0 / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003111/0.2441, allocations: 215.5 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.074e-05/0.2442, allocations: 88.98 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.147e-05/0.2442, allocations: 4 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.245e-05/0.2443, allocations: 3.938 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.841e-05/0.2443, allocations: 7.984 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.2444, allocations: 4 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.566e-05/0.2444, allocations: 95.27 kB / 1.093 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2444, allocations: 0 / 1.093 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003088/0.2447, allocations: 35.88 kB / 1.093 GB, free: 11.49 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.0007357/0.2455, allocations: 0.8107 MB / 1.094 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002357/0.2457, allocations: 79.88 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2457, allocations: 0 / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.349e-05/0.2458, allocations: 35.98 kB / 1.094 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002514/0.2461, allocations: 3.938 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00154/0.2476, allocations: 1.494 MB / 1.096 GB, free: 8.965 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002287/0.2479, allocations: 0.6846 MB / 1.096 GB, free: 8.254 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.053e-05/0.2479, allocations: 11.73 kB / 1.096 GB, free: 8.242 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.508e-05/0.248, allocations: 19.44 kB / 1.097 GB, free: 8.223 MB / 0.8575 GB Notification: Performance of SimCode: time 2.8e-07/0.248, allocations: 4 kB / 1.097 GB, free: 8.219 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/0.2654, allocations: 2.648 MB / 1.099 GB, free: 5.715 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.191/7.457, allocations: 7.688 kB / 1.099 GB, free: 5.707 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 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.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[551]=3600.000000 File[1236]=2249.280000 Error: Could not read variable hea.occ in file Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv. Warning: Get data of variable hea.occ from file Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv failed! Error: Could not read variable hea.on in file Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv. Warning: Get data of variable hea.on from file Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv failed! " Variables in the reference:time,hea.TOut,hea.occ,hea.on Variables in the result:time,hea.TOut,hea.p,TOut.amplitude,TOut.f,TOut.offset