Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.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.Love1998Light1,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1",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.005848/0.005848, allocations: 100.8 kB / 15.73 MB, free: 6.016 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.001224/0.001224, allocations: 196.1 kB / 16.67 MB, free: 5.938 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.599/2.599, allocations: 461.9 MB / 0.7348 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 60.12 kB / 1.054 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9447/0.9462, allocations: 157.4 MB / 1.207 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1): time 0.002601/0.9488, allocations: 1.51 MB / 1.209 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001319/0.9502, allocations: 0.7556 MB / 1.209 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.733e-05/0.9502, allocations: 4 kB / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.428e-05/0.9503, allocations: 7.875 kB / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.259e-05/0.9504, allocations: 23.78 kB / 1.209 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000531/0.9509, allocations: 123.6 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000122/0.951, allocations: 83.77 kB / 1.21 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.031e-05/0.9511, allocations: 8 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.566e-05/0.9512, allocations: 43.78 kB / 1.21 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.039e-05/0.9513, allocations: 43.83 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.813e-05/0.9514, allocations: 12 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001822/0.9515, allocations: 91.84 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.449e-05/0.9516, allocations: 15.98 kB / 1.21 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.986e-05/0.9516, allocations: 39.78 kB / 1.21 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002312/0.9519, allocations: 145.9 kB / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.9519, allocations: 0 / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.647e-06/0.9519, allocations: 3.984 kB / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.296e-06/0.9519, allocations: 0 / 1.21 GB, free: 10.66 MB / 0.9356 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.0007229/0.9526, allocations: 462.5 kB / 1.211 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.9527, allocations: 11.97 kB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.103e-05/0.9527, allocations: 38.73 kB / 1.211 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.9528, allocations: 12.84 kB / 1.211 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.9529, allocations: 176.2 kB / 1.211 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.676e-05/0.9529, allocations: 384 / 1.211 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.78e-05/0.953, allocations: 8.375 kB / 1.211 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001778/0.9532, allocations: 73.77 kB / 1.211 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.9532, allocations: 0 / 1.211 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.9532, allocations: 8 kB / 1.211 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.9532, allocations: 4 kB / 1.211 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00015/0.9534, allocations: 43.84 kB / 1.211 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000526/0.9539, allocations: 320.8 kB / 1.211 GB, free: 9.367 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000147/0.954, allocations: 58.56 kB / 1.211 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.258e-05/0.9541, allocations: 44.86 kB / 1.211 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.9542, allocations: 4 kB / 1.211 GB, free: 9.25 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002311/0.9544, allocations: 87.36 kB / 1.211 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.9544, allocations: 0 / 1.211 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0004098/0.9548, allocations: 157.5 kB / 1.212 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/0.9549, allocations: 55.39 kB / 1.212 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.955, allocations: 133.8 kB / 1.212 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.955, allocations: 29.7 kB / 1.212 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.138e-05/0.9551, allocations: 96.36 kB / 1.212 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.604e-05/0.9551, allocations: 23.66 kB / 1.212 GB, free: 8.625 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-05/0.9552, allocations: 29.7 kB / 1.212 GB, free: 8.59 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.9553, allocations: 326.8 kB / 1.212 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.276e-05/0.9554, allocations: 19.98 kB / 1.212 GB, free: 8.242 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/0.9555, allocations: 80.44 kB / 1.212 GB, free: 8.148 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001793/0.9557, allocations: 101.1 kB / 1.212 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.9557, allocations: 0 / 1.212 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002402/0.9559, allocations: 125.4 kB / 1.212 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.956, allocations: 4 kB / 1.213 GB, free: 7.898 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.956, allocations: 4.094 kB / 1.213 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.956, allocations: 3.984 kB / 1.213 GB, free: 7.891 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.9561, allocations: 19.92 kB / 1.213 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.9561, allocations: 7.984 kB / 1.213 GB, free: 7.863 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.9562, allocations: 12.12 kB / 1.213 GB, free: 7.852 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.9563, allocations: 7.938 kB / 1.213 GB, free: 7.844 MB / 0.9356 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.194e-05/0.9564, allocations: 131 kB / 1.213 GB, free: 7.707 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.923e-05/0.9564, allocations: 7.906 kB / 1.213 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003338/0.9567, allocations: 149.9 kB / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.9567, allocations: 0 / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.9568, allocations: 3.938 kB / 1.213 GB, free: 7.539 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.9568, allocations: 4 kB / 1.213 GB, free: 7.535 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006183/0.9574, allocations: 430.3 kB / 1.213 GB, free: 7.059 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.9574, allocations: 4 kB / 1.213 GB, free: 7.055 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.103e-05/0.9575, allocations: 15.98 kB / 1.213 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.9575, allocations: 0 / 1.213 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.9575, allocations: 4 kB / 1.213 GB, free: 7.035 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.9575, allocations: 7.922 kB / 1.213 GB, free: 7.027 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.9575, allocations: 0 / 1.213 GB, free: 7.027 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002966/0.9578, allocations: 227.4 kB / 1.213 GB, free: 6.789 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.46e-05/0.9579, allocations: 84.95 kB / 1.214 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.541e-05/0.9579, allocations: 7.984 kB / 1.214 GB, free: 6.68 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.958, allocations: 11.94 kB / 1.214 GB, free: 6.668 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.793e-05/0.9581, allocations: 7.984 kB / 1.214 GB, free: 6.66 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.908e-05/0.9581, allocations: 11.98 kB / 1.214 GB, free: 6.648 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.847e-05/0.9582, allocations: 99.27 kB / 1.214 GB, free: 6.551 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9582, allocations: 0 / 1.214 GB, free: 6.551 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003194/0.9585, allocations: 40 kB / 1.214 GB, free: 6.512 MB / 0.9356 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.000826/0.9594, allocations: 0.8213 MB / 1.215 GB, free: 5.68 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002372/0.9596, allocations: 87.89 kB / 1.215 GB, free: 5.594 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.9596, allocations: 3.938 kB / 1.215 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.9597, allocations: 43.92 kB / 1.215 GB, free: 5.547 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.96, allocations: 21.89 kB / 1.215 GB, free: 5.527 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00179/0.9618, allocations: 1.605 MB / 1.216 GB, free: 3.816 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.9621, allocations: 0.6924 MB / 1.217 GB, free: 3.098 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.973e-05/0.9622, allocations: 8.438 kB / 1.217 GB, free: 3.09 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.947e-05/0.9623, allocations: 31.42 kB / 1.217 GB, free: 3.059 MB / 0.9356 GB Notification: Performance of SimCode: time 2.61e-07/0.9623, allocations: 0 / 1.217 GB, free: 3.059 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02064/0.9829, allocations: 3.137 MB / 1.22 GB, free: 44 kB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.935/8.918, allocations: 7.719 kB / 1.22 GB, free: 36 kB / 0.9356 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.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