Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Reinhart2003Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",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.001257/0.001257, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001403/0.001403, allocations: 193.2 kB / 16.14 MB, free: 6.652 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.231/1.231, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.209/2.209, allocations: 390.2 MB / 0.6643 GB, free: 0.6602 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 71.83 kB / 0.812 GB, free: 14.82 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.505/0.5065, allocations: 140.4 MB / 0.949 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.0021/0.5086, allocations: 1.596 MB / 0.9506 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000924/0.5096, allocations: 0.7703 MB / 0.9514 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.557e-05/0.5096, allocations: 1.375 kB / 0.9514 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.862e-05/0.5096, allocations: 11.92 kB / 0.9514 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.597e-05/0.5097, allocations: 18.55 kB / 0.9514 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003573/0.5101, allocations: 110 kB / 0.9515 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.447e-05/0.5102, allocations: 87.59 kB / 0.9516 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.403e-05/0.5103, allocations: 18.78 kB / 0.9516 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.289e-05/0.5103, allocations: 45.72 kB / 0.9516 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.441e-05/0.5104, allocations: 44.89 kB / 0.9517 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.728e-05/0.5104, allocations: 5.281 kB / 0.9517 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.5106, allocations: 93.59 kB / 0.9518 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.243e-05/0.5106, allocations: 25.14 kB / 0.9518 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.426e-05/0.5107, allocations: 39.05 kB / 0.9518 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001732/0.5108, allocations: 156.5 kB / 0.952 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.5108, allocations: 0.6875 kB / 0.952 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.31e-07/0.5109, allocations: 0 / 0.952 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.5109, allocations: 1.656 kB / 0.952 GB, free: 6.867 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005684/0.5114, allocations: 0.5022 MB / 0.9525 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.209e-05/0.5115, allocations: 9.406 kB / 0.9525 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.701e-05/0.5115, allocations: 41.33 kB / 0.9525 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.339e-05/0.5116, allocations: 9 kB / 0.9525 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.914e-05/0.5116, allocations: 188.1 kB / 0.9527 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.5117, allocations: 7.047 kB / 0.9527 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.697e-05/0.5117, allocations: 8.562 kB / 0.9527 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001618/0.5118, allocations: 88.48 kB / 0.9528 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.5119, allocations: 0 / 0.9528 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.5119, allocations: 1.375 kB / 0.9528 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.5119, allocations: 0 / 0.9528 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001336/0.512, allocations: 50.31 kB / 0.9529 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004034/0.5124, allocations: 326 kB / 0.9532 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001864/0.5126, allocations: 89.5 kB / 0.9533 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.046e-05/0.5127, allocations: 42.33 kB / 0.9533 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.5127, allocations: 5.297 kB / 0.9533 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001719/0.5129, allocations: 101.8 kB / 0.9534 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.372e-06/0.5129, allocations: 4 kB / 0.9534 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003651/0.5133, allocations: 179 kB / 0.9536 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.188e-05/0.5133, allocations: 54.03 kB / 0.9536 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.558e-05/0.5134, allocations: 146.1 kB / 0.9538 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.11e-05/0.5134, allocations: 26.86 kB / 0.9538 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.908e-05/0.5135, allocations: 99.06 kB / 0.9539 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.034e-05/0.5135, allocations: 31.44 kB / 0.9539 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.515e-05/0.5135, allocations: 36.39 kB / 0.9539 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.728e-05/0.5136, allocations: 329.5 kB / 0.9543 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.187e-05/0.5137, allocations: 31.25 kB / 0.9543 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.944e-05/0.5137, allocations: 67.8 kB / 0.9544 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001453/0.5139, allocations: 107.2 kB / 0.9545 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.5139, allocations: 1.375 kB / 0.9545 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002159/0.5141, allocations: 134.3 kB / 0.9546 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.5141, allocations: 6.406 kB / 0.9546 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.5141, allocations: 0.9375 kB / 0.9546 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.5142, allocations: 6.906 kB / 0.9546 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.5143, allocations: 17.14 kB / 0.9546 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.5143, allocations: 5.953 kB / 0.9546 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.619e-05/0.5144, allocations: 13.59 kB / 0.9546 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.5144, allocations: 8.797 kB / 0.9546 GB, free: 4.387 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,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.093e-05/0.5145, allocations: 132.7 kB / 0.9548 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.941e-05/0.5145, allocations: 7.75 kB / 0.9548 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003069/0.5148, allocations: 173.3 kB / 0.9549 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.5148, allocations: 5.766 kB / 0.955 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.5148, allocations: 0 / 0.955 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.5148, allocations: 5.328 kB / 0.955 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000468/0.5153, allocations: 455.9 kB / 0.9554 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-06/0.5153, allocations: 4 kB / 0.9554 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.988e-05/0.5154, allocations: 22.42 kB / 0.9554 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.5154, allocations: 1.156 kB / 0.9554 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.5154, allocations: 5.5 kB / 0.9554 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.5154, allocations: 5.375 kB / 0.9554 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.5154, allocations: 0 / 0.9554 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002654/0.5157, allocations: 246.4 kB / 0.9557 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.104e-05/0.5157, allocations: 88.64 kB / 0.9557 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.401e-05/0.5158, allocations: 5.094 kB / 0.9558 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.5159, allocations: 17.55 kB / 0.9558 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.335e-05/0.5159, allocations: 9.641 kB / 0.9558 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.516, allocations: 7.406 kB / 0.9558 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.477e-05/0.516, allocations: 112.7 kB / 0.9559 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.516, allocations: 0 / 0.9559 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000283/0.5163, allocations: 45.53 kB / 0.9559 GB, free: 3.293 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 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0005708/0.5169, allocations: 0.8376 MB / 0.9568 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000213/0.5171, allocations: 94.64 kB / 0.9568 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.5171, allocations: 5.531 kB / 0.9568 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.5172, allocations: 48.2 kB / 0.9569 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002827/0.5175, allocations: 26.17 kB / 0.9569 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.5188, allocations: 1.691 MB / 0.9586 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.309e-05/0.5189, allocations: 0.6997 MB / 0.9593 GB, free: 244 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.818e-05/0.5189, allocations: 19.42 kB / 0.9593 GB, free: 232 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.549e-05/0.519, allocations: 33.86 kB / 0.9593 GB, free: 204 kB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.519, allocations: 0 / 0.9593 GB, free: 204 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.447/0.966, allocations: 3.183 MB / 0.9624 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001895/0.9662, allocations: 263.3 kB / 0.9627 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.161/3.127, allocations: 0 / 0.9627 GB, free: 14.35 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches