Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Love1998Light2,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,fileNamePrefix="Buildings_9_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.001299/0.001299, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001327/0.001327, allocations: 193.9 kB / 16.25 MB, free: 6.629 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.208/1.208, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.075/2.075, allocations: 390.3 MB / 0.6644 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 59.91 kB / 0.8122 GB, free: 14.63 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4871/0.4883, allocations: 140.4 MB / 0.9492 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.002212/0.4905, allocations: 1.561 MB / 0.9508 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009672/0.4915, allocations: 0.743 MB / 0.9515 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.159e-05/0.4916, allocations: 0.9688 kB / 0.9515 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.298e-05/0.4916, allocations: 3.938 kB / 0.9515 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.316e-05/0.4917, allocations: 13.92 kB / 0.9515 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000452/0.4921, allocations: 115.5 kB / 0.9516 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.071e-05/0.4922, allocations: 82.28 kB / 0.9517 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.028e-05/0.4923, allocations: 21.69 kB / 0.9517 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.301e-05/0.4924, allocations: 39.22 kB / 0.9517 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.301e-05/0.4925, allocations: 39.52 kB / 0.9518 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.751e-05/0.4925, allocations: 10.44 kB / 0.9518 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001545/0.4927, allocations: 95.31 kB / 0.9519 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.117e-05/0.4927, allocations: 22.69 kB / 0.9519 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.102e-05/0.4927, allocations: 41.58 kB / 0.9519 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001829/0.4929, allocations: 139.9 kB / 0.9521 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.4929, allocations: 0 / 0.9521 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.262e-06/0.4929, allocations: 0 / 0.9521 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.493, allocations: 4 kB / 0.9521 GB, free: 6.953 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.000547/0.4935, allocations: 465.8 kB / 0.9525 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.4935, allocations: 10.16 kB / 0.9525 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.605e-05/0.4936, allocations: 31.91 kB / 0.9526 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.35e-05/0.4936, allocations: 12.78 kB / 0.9526 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.897e-05/0.4937, allocations: 180.8 kB / 0.9528 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.4937, allocations: 3.5 kB / 0.9528 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.822e-05/0.4937, allocations: 8.281 kB / 0.9528 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001517/0.4939, allocations: 77.2 kB / 0.9528 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.4939, allocations: 0 / 0.9528 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.4939, allocations: 5.109 kB / 0.9528 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.4939, allocations: 5.062 kB / 0.9529 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001158/0.4941, allocations: 46 kB / 0.9529 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003978/0.4945, allocations: 321.7 kB / 0.9532 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001236/0.4946, allocations: 63.77 kB / 0.9533 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.573e-05/0.4947, allocations: 33.19 kB / 0.9533 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.4947, allocations: 5.094 kB / 0.9533 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001713/0.4949, allocations: 91.23 kB / 0.9534 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.4949, allocations: 5.469 kB / 0.9534 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0003475/0.4952, allocations: 161.7 kB / 0.9535 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.7e-05/0.4953, allocations: 53.91 kB / 0.9536 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.805e-05/0.4954, allocations: 127.5 kB / 0.9537 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.4954, allocations: 30.83 kB / 0.9537 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.715e-05/0.4954, allocations: 86.75 kB / 0.9538 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.033e-05/0.4954, allocations: 31.66 kB / 0.9539 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.345e-05/0.4955, allocations: 39.7 kB / 0.9539 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.737e-05/0.4955, allocations: 325.6 kB / 0.9542 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.568e-05/0.4956, allocations: 22.2 kB / 0.9542 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.344e-05/0.4957, allocations: 68.27 kB / 0.9543 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001389/0.4958, allocations: 101.7 kB / 0.9544 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.4958, allocations: 0 / 0.9544 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002063/0.496, allocations: 127.4 kB / 0.9545 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.4961, allocations: 6.062 kB / 0.9545 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.4961, allocations: 5.25 kB / 0.9545 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.4961, allocations: 2.344 kB / 0.9545 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.4962, allocations: 18.77 kB / 0.9545 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.4962, allocations: 2.281 kB / 0.9545 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.941e-05/0.4963, allocations: 18.48 kB / 0.9546 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.4963, allocations: 8.359 kB / 0.9546 GB, free: 4.594 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.191e-05/0.4964, allocations: 124.5 kB / 0.9547 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.788e-05/0.4964, allocations: 12.19 kB / 0.9547 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002697/0.4967, allocations: 153.6 kB / 0.9548 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.4967, allocations: 1.438 kB / 0.9549 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.4967, allocations: 1.5 kB / 0.9549 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.4967, allocations: 7.984 kB / 0.9549 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004235/0.4971, allocations: 422.1 kB / 0.9553 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.4972, allocations: 5.5 kB / 0.9553 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.435e-05/0.4972, allocations: 11.73 kB / 0.9553 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.4972, allocations: 3.984 kB / 0.9553 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.4972, allocations: 6.219 kB / 0.9553 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.4973, allocations: 3.938 kB / 0.9553 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.4973, allocations: 1.125 kB / 0.9553 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002223/0.4975, allocations: 223.9 kB / 0.9555 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.23e-05/0.4975, allocations: 92.33 kB / 0.9556 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.4975, allocations: 1.156 kB / 0.9556 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.4977, allocations: 16.45 kB / 0.9556 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.114e-05/0.4977, allocations: 8.547 kB / 0.9556 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.384e-05/0.4977, allocations: 7.719 kB / 0.9556 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.834e-05/0.4978, allocations: 98.92 kB / 0.9557 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4978, allocations: 1.281 kB / 0.9557 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002933/0.4981, allocations: 42.98 kB / 0.9558 GB, free: 3.551 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 (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.0005458/0.4986, allocations: 0.8233 MB / 0.9566 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002133/0.4988, allocations: 98.52 kB / 0.9567 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4989, allocations: 1.031 kB / 0.9567 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.282e-05/0.499, allocations: 47.42 kB / 0.9567 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.4992, allocations: 19.27 kB / 0.9567 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001174/0.5004, allocations: 1.596 MB / 0.9583 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.934e-05/0.5005, allocations: 0.6964 MB / 0.959 GB, free: 0.5586 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.509e-05/0.5006, allocations: 14.45 kB / 0.959 GB, free: 0.5508 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5e-05/0.5006, allocations: 32.77 kB / 0.959 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.5006, allocations: 0 / 0.959 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02023/0.5209, allocations: 2.909 MB / 0.9618 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001813/0.5211, allocations: 260.2 kB / 0.9621 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.607/2.128, allocations: 7.562 kB / 0.9621 GB, free: 14.8 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches