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.005694/0.005694, allocations: 103 kB / 15.73 MB, free: 6.043 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.001095/0.001095, allocations: 194.1 kB / 16.68 MB, free: 5.965 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.361/1.361, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.747/2.747, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.84 kB / 1.054 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.37/0.3713, 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.003051/0.3743, allocations: 1.509 MB / 1.209 GB, free: 8.668 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001383/0.3758, allocations: 0.756 MB / 1.209 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.441e-05/0.3758, allocations: 0 / 1.209 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 5.703e-05/0.3759, allocations: 7.938 kB / 1.209 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001048/0.376, allocations: 23.78 kB / 1.209 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005852/0.3766, allocations: 123.6 kB / 1.21 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001432/0.3768, allocations: 79.72 kB / 1.21 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.404e-05/0.3769, allocations: 15.98 kB / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.377, allocations: 39.84 kB / 1.21 GB, free: 7.621 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.568e-05/0.3771, allocations: 43.83 kB / 1.21 GB, free: 7.578 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.827e-05/0.3771, allocations: 4 kB / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002028/0.3773, allocations: 95.91 kB / 1.21 GB, free: 7.48 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.219e-05/0.3774, allocations: 27.84 kB / 1.21 GB, free: 7.453 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.466e-05/0.3774, allocations: 31.86 kB / 1.21 GB, free: 7.422 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.3777, allocations: 143.9 kB / 1.21 GB, free: 7.281 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3777, allocations: 7.938 kB / 1.21 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3777, allocations: 0 / 1.21 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.019e-05/0.3777, allocations: 0 / 1.21 GB, free: 7.273 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.0007651/0.3785, allocations: 462.6 kB / 1.211 GB, free: 6.762 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.3786, allocations: 12.62 kB / 1.211 GB, free: 6.75 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.126e-05/0.3786, allocations: 38.73 kB / 1.211 GB, free: 6.703 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.376e-05/0.3787, allocations: 8.844 kB / 1.211 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.3788, allocations: 180.2 kB / 1.211 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.3788, allocations: 4.375 kB / 1.211 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.614e-05/0.3789, allocations: 4.375 kB / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001968/0.3791, allocations: 81.7 kB / 1.211 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.3791, allocations: 7.984 kB / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.3791, allocations: 0 / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.3791, allocations: 4 kB / 1.211 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001419/0.3793, allocations: 39.97 kB / 1.211 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005642/0.3798, allocations: 324.6 kB / 1.211 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001736/0.38, allocations: 66.56 kB / 1.211 GB, free: 5.895 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.81e-05/0.3801, allocations: 28.84 kB / 1.211 GB, free: 5.863 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.245e-05/0.3801, allocations: 4 kB / 1.211 GB, free: 5.859 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002631/0.3804, allocations: 103.3 kB / 1.211 GB, free: 5.746 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.744e-06/0.3804, allocations: 0 / 1.211 GB, free: 5.746 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0003995/0.3808, allocations: 149.5 kB / 1.212 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.858e-05/0.3809, allocations: 63.41 kB / 1.212 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.381, allocations: 127.3 kB / 1.212 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.381, allocations: 33.7 kB / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.808e-05/0.3811, allocations: 92.36 kB / 1.212 GB, free: 5.25 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.657e-05/0.3811, allocations: 23.86 kB / 1.212 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.628e-05/0.3812, allocations: 33.7 kB / 1.212 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.3813, allocations: 322.8 kB / 1.212 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.675e-05/0.3814, allocations: 35.92 kB / 1.212 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/0.3815, allocations: 69.12 kB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001702/0.3817, allocations: 101 kB / 1.212 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3817, allocations: 0 / 1.212 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002581/0.382, allocations: 129.8 kB / 1.213 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.382, allocations: 5.875 kB / 1.213 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.382, allocations: 0 / 1.213 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.382, allocations: 4 kB / 1.213 GB, free: 4.484 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.3822, allocations: 20.05 kB / 1.213 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.3822, allocations: 7.938 kB / 1.213 GB, free: 4.457 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.3823, allocations: 19.92 kB / 1.213 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.3823, allocations: 4 kB / 1.213 GB, free: 4.434 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.0001052/0.3824, allocations: 121.8 kB / 1.213 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.224e-05/0.3824, allocations: 11.89 kB / 1.213 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003269/0.3828, allocations: 149.8 kB / 1.213 GB, free: 4.137 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.3828, allocations: 4 kB / 1.213 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3828, allocations: 0 / 1.213 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.3828, allocations: 3.938 kB / 1.213 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005727/0.3834, allocations: 418.5 kB / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.3834, allocations: 3.984 kB / 1.213 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.682e-05/0.3835, allocations: 15.92 kB / 1.213 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.3835, allocations: 0 / 1.213 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.3835, allocations: 8 kB / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.3835, allocations: 7.938 kB / 1.213 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3835, allocations: 0 / 1.213 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002945/0.3838, allocations: 227.3 kB / 1.213 GB, free: 3.391 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.181e-05/0.3839, allocations: 88.95 kB / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/0.3839, allocations: 0 / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.3841, allocations: 19.92 kB / 1.214 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.48e-05/0.3841, allocations: 7.984 kB / 1.214 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.966e-05/0.3841, allocations: 8 kB / 1.214 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.389e-05/0.3842, allocations: 106.1 kB / 1.214 GB, free: 3.148 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3842, allocations: 0 / 1.214 GB, free: 3.148 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003153/0.3845, allocations: 39.98 kB / 1.214 GB, free: 3.109 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.000799/0.3853, allocations: 0.8178 MB / 1.215 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002697/0.3856, allocations: 91.83 kB / 1.215 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3856, allocations: 0 / 1.215 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001099/0.3858, allocations: 39.98 kB / 1.215 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.3861, allocations: 25.53 kB / 1.215 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001948/0.388, allocations: 1.592 MB / 1.216 GB, free: 440 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003399/0.3884, allocations: 0.6963 MB / 1.217 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.593e-05/0.3885, allocations: 12.44 kB / 1.217 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.574e-05/0.3885, allocations: 27.64 kB / 1.217 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of SimCode: time 4.01e-07/0.3885, allocations: 0 / 1.217 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02255/0.4111, allocations: 3.148 MB / 1.22 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.855/8.266, allocations: 14.2 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