Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",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.001757/0.001757, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002299/0.002299, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.465/1.465, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.79/2.79, allocations: 469.4 MB / 0.742 GB, free: 7.672 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 60.94 kB / 0.9083 GB, free: 34.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.32, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002754/0.3228, allocations: 1.534 MB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001304/0.3242, allocations: 0.7651 MB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.314e-05/0.3242, allocations: 0 / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.822e-05/0.3242, allocations: 11.88 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.614e-05/0.3243, allocations: 7.875 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005237/0.3249, allocations: 127.5 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001103/0.325, allocations: 87.77 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.954e-05/0.3251, allocations: 23.91 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.568e-05/0.3252, allocations: 35.92 kB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.024e-05/0.3253, allocations: 39.83 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.089e-05/0.3253, allocations: 8 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001771/0.3255, allocations: 95.84 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.034e-05/0.3255, allocations: 23.91 kB / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.142e-05/0.3256, allocations: 39.8 kB / 1.066 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002163/0.3258, allocations: 147.9 kB / 1.067 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.3258, allocations: 0 / 1.067 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.312e-06/0.3258, allocations: 3.938 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.619e-06/0.3258, allocations: 0 / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007143/0.3265, allocations: 482.5 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.3266, allocations: 8.031 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.136e-05/0.3266, allocations: 38.73 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.794e-05/0.3267, allocations: 8.844 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001183/0.3268, allocations: 172.2 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.944e-05/0.3269, allocations: 38.25 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.575e-05/0.3269, allocations: 4.375 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002016/0.3271, allocations: 97.39 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.3271, allocations: 0 / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.3271, allocations: 0 / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.3271, allocations: 0 / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.3274, allocations: 51.95 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004955/0.3279, allocations: 324.7 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.3281, allocations: 74.56 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.3282, allocations: 36.84 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.809e-05/0.3282, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002457/0.3285, allocations: 99.34 kB / 1.068 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.352e-06/0.3285, allocations: 0 / 1.068 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0004809/0.329, allocations: 165.5 kB / 1.068 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.069e-05/0.329, allocations: 59.33 kB / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.3291, allocations: 131.9 kB / 1.068 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.3292, allocations: 37.7 kB / 1.068 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.643e-05/0.3292, allocations: 88.38 kB / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.769e-05/0.3293, allocations: 31.78 kB / 1.068 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.065e-05/0.3293, allocations: 33.7 kB / 1.068 GB, free: 9.391 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.3294, allocations: 318.8 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.3295, allocations: 31.97 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.3297, allocations: 73.12 kB / 1.069 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002292/0.3299, allocations: 109 kB / 1.069 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.3299, allocations: 0 / 1.069 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002946/0.3302, allocations: 133.4 kB / 1.069 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.3302, allocations: 8.375 kB / 1.069 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.3303, allocations: 0 / 1.069 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.3303, allocations: 4 kB / 1.069 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.3304, allocations: 20.05 kB / 1.069 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.3304, allocations: 7.938 kB / 1.069 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001147/0.3305, allocations: 19.89 kB / 1.069 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.3305, allocations: 4 kB / 1.069 GB, free: 8.625 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 (lig.curSeed,$PRE.lig.curSeed,lig.on,$PRE.lig.on,$whenCondition3,lig.sampleTrigger,$whenCondition2,occ.pulseStart,$PRE.occ.pulseStart,occ.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.151e-05/0.3306, allocations: 129.7 kB / 1.069 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.158e-05/0.3307, allocations: 7.906 kB / 1.069 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.308e-05/0.3307, allocations: 12.7 kB / 1.069 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3307, allocations: 0 / 1.069 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3307, allocations: 4 kB / 1.069 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.3307, allocations: 7.938 kB / 1.069 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006082/0.3314, allocations: 422.2 kB / 1.07 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.3314, allocations: 7.984 kB / 1.07 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.298e-05/0.3315, allocations: 8 kB / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.3315, allocations: 0 / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.3315, allocations: 7.984 kB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.3315, allocations: 7.938 kB / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3315, allocations: 0 / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003461/0.3318, allocations: 227.3 kB / 1.07 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.825e-05/0.3319, allocations: 85 kB / 1.07 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.067e-05/0.3319, allocations: 8 kB / 1.07 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.3321, allocations: 15.92 kB / 1.07 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.761e-05/0.3321, allocations: 11.98 kB / 1.07 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.3322, allocations: 7.938 kB / 1.07 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.497e-05/0.3322, allocations: 100.7 kB / 1.07 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3322, allocations: 0 / 1.07 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000309/0.3326, allocations: 44 kB / 1.07 GB, free: 7.434 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (occ.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0008438/0.3334, allocations: 0.8197 MB / 1.071 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000309/0.3337, allocations: 95.89 kB / 1.071 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.3337, allocations: 0 / 1.071 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000135/0.3339, allocations: 43.97 kB / 1.071 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.3342, allocations: 15.92 kB / 1.071 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001835/0.336, allocations: 1.618 MB / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002491/0.3363, allocations: 0.7039 MB / 1.073 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.315e-05/0.3363, allocations: 8.672 kB / 1.073 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.241e-05/0.3364, allocations: 31.42 kB / 1.073 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of SimCode: time 2.71e-07/0.3364, allocations: 0 / 1.073 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01932/0.3557, allocations: 3.074 MB / 1.076 GB, free: 0.9883 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.516/7.872, allocations: 8.453 kB / 1.076 GB, free: 0.9844 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[575]=3600.000000 File[1254]=2249.280000 Error: Could not read variable lig.occ in file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv. Warning: Get data of variable lig.on from file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv failed! " Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:time,lig.ill,lig.pArriv,ill.amplitude,ill.f,ill.offset