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.001267/0.001267, allocations: 108 kB / 15.61 MB, free: 152 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.001634/0.001634, allocations: 195.4 kB / 16.53 MB, free: 6.664 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.257/1.257, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.495/2.495, allocations: 461.9 MB / 0.7347 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 58.67 kB / 0.8992 GB, free: 36.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2507, allocations: 157.4 MB / 1.053 GB, free: 8.273 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1): time 0.002131/0.2529, allocations: 1.525 MB / 1.054 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001005/0.2539, allocations: 0.7676 MB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.444e-05/0.254, allocations: 4 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.767e-05/0.254, allocations: 7.875 kB / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.599e-05/0.2541, allocations: 11.86 kB / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.2545, allocations: 127.6 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.856e-05/0.2546, allocations: 87.7 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.025e-05/0.2547, allocations: 8 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.859e-05/0.2548, allocations: 47.83 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.423e-05/0.2548, allocations: 35.84 kB / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.732e-05/0.2548, allocations: 8 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/0.255, allocations: 95.84 kB / 1.056 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.552e-05/0.255, allocations: 23.91 kB / 1.056 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.375e-05/0.2551, allocations: 27.86 kB / 1.056 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001794/0.2553, allocations: 155.9 kB / 1.056 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.2553, allocations: 0 / 1.056 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.012e-06/0.2553, allocations: 4 kB / 1.056 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.037e-06/0.2553, allocations: 0 / 1.056 GB, free: 5.332 MB / 0.8106 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.0005643/0.2559, allocations: 450.6 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.913e-05/0.2559, allocations: 12.61 kB / 1.056 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.137e-05/0.2559, allocations: 34.75 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.894e-05/0.256, allocations: 8.844 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.926e-05/0.2561, allocations: 180.2 kB / 1.056 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.2561, allocations: 12.36 kB / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.319e-05/0.2561, allocations: 8.312 kB / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001462/0.2563, allocations: 73.78 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-06/0.2563, allocations: 0 / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.2563, allocations: 0 / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.186e-06/0.2563, allocations: 4 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001172/0.2564, allocations: 43.91 kB / 1.057 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004291/0.2569, allocations: 332.6 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001239/0.257, allocations: 58.55 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.058e-05/0.2571, allocations: 36.84 kB / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.546e-05/0.2571, allocations: 0 / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001697/0.2573, allocations: 95.39 kB / 1.057 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.2573, allocations: 0 / 1.057 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0003267/0.2576, allocations: 161.5 kB / 1.057 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.422e-05/0.2576, allocations: 51.41 kB / 1.057 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.912e-05/0.2577, allocations: 129.8 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.2578, allocations: 25.7 kB / 1.057 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.334e-05/0.2578, allocations: 96.28 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.2578, allocations: 23.95 kB / 1.058 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.274e-05/0.2579, allocations: 29.7 kB / 1.058 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.518e-05/0.258, allocations: 326.8 kB / 1.058 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.061e-05/0.258, allocations: 27.98 kB / 1.058 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.092e-05/0.2581, allocations: 72.56 kB / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001458/0.2583, allocations: 101.4 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.2583, allocations: 0 / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002184/0.2585, allocations: 141.5 kB / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.2585, allocations: 4 kB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-06/0.2585, allocations: 11.88 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/0.2586, allocations: 3.984 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.2587, allocations: 15.98 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.2587, allocations: 7.938 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.041e-05/0.2588, allocations: 7.938 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.2588, allocations: 7.984 kB / 1.058 GB, free: 2.508 MB / 0.8106 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 7.954e-05/0.2589, allocations: 129.8 kB / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.2589, allocations: 7.906 kB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002647/0.2592, allocations: 145.9 kB / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.2592, allocations: 0 / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.2592, allocations: 0 / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.2592, allocations: 0 / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004681/0.2597, allocations: 438.2 kB / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.2597, allocations: 4 kB / 1.059 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.236e-05/0.2597, allocations: 8 kB / 1.059 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2597, allocations: 0 / 1.059 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.2598, allocations: 3.984 kB / 1.059 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.2598, allocations: 3.938 kB / 1.059 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2598, allocations: 0 / 1.059 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002434/0.26, allocations: 227.4 kB / 1.059 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.444e-05/0.2601, allocations: 88.94 kB / 1.059 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.231e-05/0.2601, allocations: 8 kB / 1.059 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.2602, allocations: 11.92 kB / 1.059 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.671e-05/0.2602, allocations: 15.92 kB / 1.059 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.2603, allocations: 4 kB / 1.059 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.042e-05/0.2603, allocations: 95.27 kB / 1.059 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of sort global known variables: time 9e-08/0.2603, allocations: 0 / 1.059 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002652/0.2606, allocations: 44 kB / 1.059 GB, free: 1.191 MB / 0.8106 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.0006131/0.2612, allocations: 0.8163 MB / 1.06 GB, free: 372 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002057/0.2614, allocations: 95.91 kB / 1.06 GB, free: 276 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.2614, allocations: 0 / 1.06 GB, free: 276 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.276e-05/0.2615, allocations: 51.91 kB / 1.06 GB, free: 224 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.2618, allocations: 15.94 kB / 1.06 GB, free: 208 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.2632, allocations: 1.586 MB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.2634, allocations: 0.7 MB / 1.063 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.114e-05/0.2634, allocations: 12.42 kB / 1.063 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.959e-05/0.2635, allocations: 31.42 kB / 1.063 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2635, allocations: 0 / 1.063 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.291/1.554, allocations: 3.045 MB / 1.066 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.413/9.967, allocations: 11.58 kB / 1.066 GB, free: 10.8 MB / 0.8262 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) Reference file matches