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.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.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.001207/0.001207, 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.001224/0.001224, allocations: 193.7 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.215/1.215, 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.104/2.104, allocations: 390.2 MB / 0.6644 GB, free: 0.5312 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 75.89 kB / 0.8122 GB, free: 14.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4786/0.4798, allocations: 140.4 MB / 0.9492 GB, free: 9.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002059/0.4819, allocations: 1.601 MB / 0.9508 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008582/0.4828, allocations: 0.7567 MB / 0.9515 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.708e-05/0.4828, allocations: 0 / 0.9515 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.798e-05/0.4829, allocations: 7.875 kB / 0.9515 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.946e-05/0.483, allocations: 18.39 kB / 0.9516 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003989/0.4834, allocations: 116.2 kB / 0.9517 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.303e-05/0.4835, allocations: 100.9 kB / 0.9518 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.274e-05/0.4835, allocations: 10.42 kB / 0.9518 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.639e-05/0.4836, allocations: 50.27 kB / 0.9518 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.945e-05/0.4837, allocations: 45.61 kB / 0.9519 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.756e-05/0.4837, allocations: 10.56 kB / 0.9519 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001422/0.4839, allocations: 100.2 kB / 0.952 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.171e-05/0.4839, allocations: 23.47 kB / 0.952 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.5e-05/0.4839, allocations: 48 kB / 0.952 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001744/0.4841, allocations: 154.3 kB / 0.9522 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.4841, allocations: 0 / 0.9522 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.142e-06/0.4841, allocations: 5.031 kB / 0.9522 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.908e-06/0.4842, allocations: 0 / 0.9522 GB, free: 6.809 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.0005642/0.4847, allocations: 0.5033 MB / 0.9527 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.991e-05/0.4848, allocations: 10.12 kB / 0.9527 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.363e-05/0.4848, allocations: 32.09 kB / 0.9527 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.269e-05/0.4848, allocations: 10.22 kB / 0.9527 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.123e-05/0.4849, allocations: 199 kB / 0.9529 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.4849, allocations: 2.219 kB / 0.9529 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.775e-05/0.4849, allocations: 5.5 kB / 0.9529 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001601/0.4851, allocations: 87.2 kB / 0.953 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.4851, allocations: 0 / 0.953 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.4851, allocations: 5.125 kB / 0.953 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.4851, allocations: 1.281 kB / 0.953 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001275/0.4853, allocations: 53.06 kB / 0.9531 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003956/0.4857, allocations: 334.3 kB / 0.9534 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001782/0.4859, allocations: 85.17 kB / 0.9535 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.56e-05/0.486, allocations: 39.38 kB / 0.9535 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.486, allocations: 5.312 kB / 0.9535 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001672/0.4862, allocations: 102.4 kB / 0.9536 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.4862, allocations: 0 / 0.9536 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003533/0.4865, allocations: 182.7 kB / 0.9538 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.212e-05/0.4866, allocations: 53.72 kB / 0.9538 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.717e-05/0.4866, allocations: 148.8 kB / 0.954 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.4867, allocations: 31.36 kB / 0.954 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.664e-05/0.4867, allocations: 90.95 kB / 0.9541 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.104e-05/0.4867, allocations: 31.89 kB / 0.9541 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.491e-05/0.4868, allocations: 35.48 kB / 0.9542 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.669e-05/0.4868, allocations: 326.2 kB / 0.9545 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.769e-05/0.4869, allocations: 31.42 kB / 0.9545 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.533e-05/0.487, allocations: 66 kB / 0.9546 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001387/0.4871, allocations: 115.4 kB / 0.9547 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.4871, allocations: 0 / 0.9547 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002043/0.4873, allocations: 136.1 kB / 0.9548 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.4873, allocations: 4.844 kB / 0.9548 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.4873, allocations: 1.094 kB / 0.9548 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.4874, allocations: 2.344 kB / 0.9548 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.4875, allocations: 16.27 kB / 0.9548 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.4875, allocations: 10.97 kB / 0.9548 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.241e-05/0.4876, allocations: 14.55 kB / 0.9548 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.4876, allocations: 9.031 kB / 0.9549 GB, free: 4.32 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 5.915e-05/0.4876, allocations: 123.4 kB / 0.955 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.981e-05/0.4877, allocations: 9.531 kB / 0.955 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002931/0.488, allocations: 168.2 kB / 0.9551 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.488, allocations: 10.14 kB / 0.9552 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.488, allocations: 0 / 0.9552 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.488, allocations: 5.109 kB / 0.9552 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004537/0.4885, allocations: 460.7 kB / 0.9556 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4885, allocations: 0 / 0.9556 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.719e-05/0.4886, allocations: 14.84 kB / 0.9556 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.4886, allocations: 1.031 kB / 0.9556 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.4886, allocations: 9.328 kB / 0.9556 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.4886, allocations: 8.859 kB / 0.9556 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.4886, allocations: 0 / 0.9556 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002583/0.4889, allocations: 247.6 kB / 0.9559 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.012e-05/0.4889, allocations: 87.36 kB / 0.956 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.425e-05/0.4889, allocations: 2.406 kB / 0.956 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.489, allocations: 24.61 kB / 0.956 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.002e-05/0.4891, allocations: 13.39 kB / 0.956 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.4891, allocations: 7.578 kB / 0.956 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.334e-05/0.4891, allocations: 109.7 kB / 0.9561 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4892, allocations: 0 / 0.9561 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002739/0.4894, allocations: 53.08 kB / 0.9562 GB, free: 3.219 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.0005563/0.49, allocations: 0.8296 MB / 0.957 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002163/0.4902, allocations: 101.8 kB / 0.9571 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.4902, allocations: 0 / 0.9571 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.804e-05/0.4903, allocations: 59.88 kB / 0.9571 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.4906, allocations: 26.36 kB / 0.9571 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001217/0.4918, allocations: 1.686 MB / 0.9588 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.755e-05/0.4919, allocations: 0.7044 MB / 0.9595 GB, free: 168 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.771e-05/0.492, allocations: 14.78 kB / 0.9595 GB, free: 160 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.169e-05/0.492, allocations: 34.08 kB / 0.9595 GB, free: 132 kB / 0.7169 GB Notification: Performance of SimCode: time 6.11e-07/0.4921, allocations: 0 / 0.9595 GB, free: 132 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01759/0.5096, allocations: 3.278 MB / 0.9627 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002199/0.5099, allocations: 265.1 kB / 0.963 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/2.292, allocations: 0 / 0.963 GB, free: 14.25 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