Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_9_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.001226/0.001226, 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.001307/0.001307, allocations: 191.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.245/1.245, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.389/2.389, allocations: 390.3 MB / 0.6647 GB, free: 256 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 63.91 kB / 0.8127 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5996/0.6008, allocations: 140.4 MB / 0.9497 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002206/0.603, allocations: 1.51 MB / 0.9512 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009985/0.604, allocations: 0.7569 MB / 0.9519 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.255e-05/0.6041, allocations: 1.125 kB / 0.9519 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.556e-05/0.6041, allocations: 7.922 kB / 0.9519 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.361e-05/0.6042, allocations: 14.28 kB / 0.952 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004269/0.6047, allocations: 122.7 kB / 0.9521 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.694e-05/0.6048, allocations: 91.77 kB / 0.9522 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.59e-05/0.6049, allocations: 21.92 kB / 0.9522 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.975e-05/0.6049, allocations: 47.62 kB / 0.9522 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.374e-05/0.605, allocations: 35.81 kB / 0.9523 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.142e-05/0.605, allocations: 7.062 kB / 0.9523 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001675/0.6052, allocations: 103.5 kB / 0.9524 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.703e-05/0.6053, allocations: 22.55 kB / 0.9524 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.384e-05/0.6053, allocations: 37.7 kB / 0.9524 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001971/0.6055, allocations: 148 kB / 0.9526 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.6055, allocations: 5.438 kB / 0.9526 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.102e-06/0.6055, allocations: 0 / 0.9526 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.6055, allocations: 0 / 0.9526 GB, free: 6.973 MB / 0.7169 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.0006268/0.6062, allocations: 476.2 kB / 0.953 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.6062, allocations: 9.406 kB / 0.953 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.784e-05/0.6062, allocations: 39.72 kB / 0.9531 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.695e-05/0.6063, allocations: 10.59 kB / 0.9531 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.544e-05/0.6064, allocations: 188.6 kB / 0.9533 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.337e-05/0.6064, allocations: 35.92 kB / 0.9533 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.506e-05/0.6065, allocations: 4.594 kB / 0.9533 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.6066, allocations: 78.11 kB / 0.9534 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-06/0.6067, allocations: 1.125 kB / 0.9534 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.6067, allocations: 3.984 kB / 0.9534 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.6067, allocations: 1.125 kB / 0.9534 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001792/0.6069, allocations: 54.56 kB / 0.9534 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004044/0.6073, allocations: 321.6 kB / 0.9537 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001847/0.6075, allocations: 64.33 kB / 0.9538 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.65e-05/0.6076, allocations: 46.77 kB / 0.9538 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.853e-05/0.6076, allocations: 1.375 kB / 0.9538 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002024/0.6078, allocations: 94.11 kB / 0.9539 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.442e-06/0.6078, allocations: 0 / 0.9539 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004253/0.6083, allocations: 176.1 kB / 0.9541 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.893e-05/0.6083, allocations: 53.5 kB / 0.9542 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.478e-05/0.6084, allocations: 145.4 kB / 0.9543 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.6084, allocations: 30.64 kB / 0.9543 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.846e-05/0.6084, allocations: 91.17 kB / 0.9544 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.062e-05/0.6084, allocations: 23.92 kB / 0.9544 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.225e-05/0.6085, allocations: 34.92 kB / 0.9545 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.805e-05/0.6085, allocations: 325.4 kB / 0.9548 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.879e-05/0.6086, allocations: 28.86 kB / 0.9548 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001036/0.6088, allocations: 74.28 kB / 0.9549 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002081/0.609, allocations: 107.5 kB / 0.955 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.609, allocations: 1.406 kB / 0.955 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002641/0.6092, allocations: 131.6 kB / 0.9551 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.6093, allocations: 8.812 kB / 0.9551 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.6093, allocations: 2.188 kB / 0.9551 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.6093, allocations: 2.406 kB / 0.9551 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.6094, allocations: 19.2 kB / 0.9551 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.6094, allocations: 9.219 kB / 0.9551 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.6095, allocations: 15.78 kB / 0.9552 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.6095, allocations: 8.828 kB / 0.9552 GB, free: 4.531 MB / 0.7169 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 6.572e-05/0.6096, allocations: 133.5 kB / 0.9553 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.83e-05/0.6096, allocations: 7.469 kB / 0.9553 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.777e-05/0.6097, allocations: 10.97 kB / 0.9553 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.6097, allocations: 1.094 kB / 0.9553 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.6097, allocations: 1.188 kB / 0.9553 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.6097, allocations: 3.984 kB / 0.9553 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004808/0.6102, allocations: 428.2 kB / 0.9557 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.6102, allocations: 0 / 0.9557 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.171e-05/0.6103, allocations: 11.27 kB / 0.9557 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.6103, allocations: 0 / 0.9557 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.6103, allocations: 6.375 kB / 0.9557 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.6103, allocations: 7.922 kB / 0.9558 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.6103, allocations: 0 / 0.9558 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002767/0.6106, allocations: 232.2 kB / 0.956 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.039e-05/0.6106, allocations: 83.7 kB / 0.9561 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.324e-05/0.6106, allocations: 5.312 kB / 0.9561 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/0.6108, allocations: 13.39 kB / 0.9561 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.362e-05/0.6108, allocations: 12.25 kB / 0.9561 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.6108, allocations: 12 kB / 0.9561 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.967e-05/0.6109, allocations: 99.86 kB / 0.9562 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6109, allocations: 0 / 0.9562 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002998/0.6112, allocations: 43.08 kB / 0.9562 GB, free: 3.566 MB / 0.7169 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.0005913/0.6118, allocations: 0.8151 MB / 0.957 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002647/0.6121, allocations: 98.66 kB / 0.9571 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.6121, allocations: 0 / 0.9571 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001207/0.6122, allocations: 48.62 kB / 0.9572 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.6125, allocations: 17.86 kB / 0.9572 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001391/0.6139, allocations: 1.628 MB / 0.9588 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.511e-05/0.614, allocations: 0.6931 MB / 0.9594 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.165e-05/0.614, allocations: 14.14 kB / 0.9595 GB, free: 0.5547 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.421e-05/0.6141, allocations: 28.92 kB / 0.9595 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.6141, allocations: 4 kB / 0.9595 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01714/0.6312, allocations: 3.076 MB / 0.9625 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.023/7.654, allocations: 5.5 kB / 0.9625 GB, free: 14.9 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches