Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.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.Love1998Light2,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",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.005204/0.005204, allocations: 102.5 kB / 15.73 MB, free: 6.023 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.001168/0.001168, allocations: 189.5 kB / 16.67 MB, free: 5.961 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.383/1.383, 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 11.0.1-master/package.mo): time 2.916/2.916, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 59.91 kB / 1.054 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3798/0.3819, allocations: 157.4 MB / 1.207 GB, free: 10.19 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.003163/0.3851, allocations: 1.51 MB / 1.209 GB, free: 8.664 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001423/0.3865, allocations: 0.7599 MB / 1.209 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.77e-05/0.3866, allocations: 0 / 1.209 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.514e-05/0.3867, allocations: 3.938 kB / 1.209 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001061/0.3868, allocations: 19.81 kB / 1.209 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006521/0.3875, allocations: 127.5 kB / 1.21 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000147/0.3876, allocations: 83.7 kB / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.3878, allocations: 23.97 kB / 1.21 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.3879, allocations: 35.86 kB / 1.21 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.864e-05/0.388, allocations: 43.81 kB / 1.21 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.388, allocations: 4 kB / 1.21 GB, free: 7.562 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002105/0.3882, allocations: 95.91 kB / 1.21 GB, free: 7.469 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.457e-05/0.3882, allocations: 19.92 kB / 1.21 GB, free: 7.449 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.914e-05/0.3883, allocations: 31.86 kB / 1.21 GB, free: 7.418 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002897/0.3886, allocations: 151.8 kB / 1.21 GB, free: 7.27 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3886, allocations: 4 kB / 1.21 GB, free: 7.266 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3886, allocations: 4 kB / 1.21 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.109e-05/0.3887, allocations: 0 / 1.21 GB, free: 7.262 MB / 0.9669 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.000804/0.3895, allocations: 458.6 kB / 1.211 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.3895, allocations: 12.62 kB / 1.211 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.46e-05/0.3896, allocations: 30.75 kB / 1.211 GB, free: 6.703 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.061e-05/0.3896, allocations: 8.844 kB / 1.211 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.3898, allocations: 180.2 kB / 1.211 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.3898, allocations: 8.375 kB / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.3898, allocations: 12.31 kB / 1.211 GB, free: 6.461 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.39, allocations: 81.75 kB / 1.211 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.3901, allocations: 0 / 1.211 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.3901, allocations: 0 / 1.211 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.3901, allocations: 4 kB / 1.211 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001309/0.3902, allocations: 39.97 kB / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005712/0.3908, allocations: 320.7 kB / 1.211 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001803/0.391, allocations: 66.55 kB / 1.211 GB, free: 5.895 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.804e-05/0.3911, allocations: 28.84 kB / 1.211 GB, free: 5.863 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.3911, allocations: 4 kB / 1.211 GB, free: 5.859 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002523/0.3914, allocations: 95.3 kB / 1.211 GB, free: 5.754 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 2.084e-06/0.3914, allocations: 4 kB / 1.211 GB, free: 5.75 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.000405/0.3918, allocations: 161.4 kB / 1.212 GB, free: 5.586 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/0.3919, allocations: 55.41 kB / 1.212 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001123/0.392, allocations: 131.6 kB / 1.212 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.392, allocations: 33.7 kB / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.073e-05/0.3921, allocations: 92.52 kB / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.792e-05/0.3921, allocations: 23.7 kB / 1.212 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.615e-05/0.3922, allocations: 41.64 kB / 1.212 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.3923, allocations: 322.8 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.387e-05/0.3924, allocations: 27.98 kB / 1.212 GB, free: 4.824 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001012/0.3925, allocations: 62.39 kB / 1.212 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001647/0.3927, allocations: 105 kB / 1.212 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3927, allocations: 0 / 1.212 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002405/0.3929, allocations: 133.4 kB / 1.213 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.3929, allocations: 8.125 kB / 1.213 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3929, allocations: 0 / 1.213 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.393, allocations: 4 kB / 1.213 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.3931, allocations: 15.98 kB / 1.213 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.3931, allocations: 0 / 1.213 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.3932, allocations: 15.92 kB / 1.213 GB, free: 4.445 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.3932, allocations: 8 kB / 1.213 GB, free: 4.438 MB / 0.9669 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 0.0001006/0.3933, allocations: 125.7 kB / 1.213 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.82e-05/0.3934, allocations: 7.906 kB / 1.213 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003283/0.3937, allocations: 149.9 kB / 1.213 GB, free: 4.141 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.3937, allocations: 3.938 kB / 1.213 GB, free: 4.137 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3937, allocations: 4.031 kB / 1.213 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.565e-06/0.3937, allocations: 7.969 kB / 1.213 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005598/0.3943, allocations: 422.4 kB / 1.213 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3943, allocations: 4 kB / 1.213 GB, free: 3.652 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.827e-05/0.3944, allocations: 19.92 kB / 1.213 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3944, allocations: 0 / 1.213 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.3944, allocations: 4 kB / 1.213 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.3944, allocations: 3.938 kB / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3944, allocations: 0 / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002778/0.3947, allocations: 231.9 kB / 1.213 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.033e-05/0.3948, allocations: 88.95 kB / 1.214 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.339e-05/0.3948, allocations: 4 kB / 1.214 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.3949, allocations: 15.92 kB / 1.214 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.663e-05/0.395, allocations: 15.92 kB / 1.214 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.395, allocations: 4 kB / 1.214 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.603e-05/0.3951, allocations: 101 kB / 1.214 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3951, allocations: 0 / 1.214 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003219/0.3954, allocations: 39.98 kB / 1.214 GB, free: 3.102 MB / 0.9669 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 (12): * Single equations (assignments): 9 * 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.0007587/0.3962, allocations: 0.8192 MB / 1.215 GB, free: 2.273 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000231/0.3964, allocations: 84.25 kB / 1.215 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3964, allocations: 4.062 kB / 1.215 GB, free: 2.188 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.3965, allocations: 51.91 kB / 1.215 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.3968, allocations: 16.95 kB / 1.215 GB, free: 2.121 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.3985, allocations: 1.589 MB / 1.216 GB, free: 436 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002902/0.3988, allocations: 0.6963 MB / 1.217 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.569e-05/0.3988, allocations: 12.42 kB / 1.217 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.427e-05/0.3989, allocations: 31.36 kB / 1.217 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of SimCode: time 2.71e-07/0.3989, allocations: 0 / 1.217 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01889/0.4178, allocations: 3.141 MB / 1.22 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.661/8.079, allocations: 11.16 kB / 1.22 GB, free: 12.64 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,lig.ill,lig.occ,lig.p,lig.on Variables in the result:ill.amplitude,ill.f,ill.offset,ill.phase,ill.startTime,ill.y,lig.B,lig.M,lig.ill,lig.occ,lig.on,lig.p,lig.samplePeriod,lig.seed,occ.period,occ.startTime,occ.width,occ.y,time