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.007186/0.007186, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001689/0.001689, allocations: 196.3 kB / 16.67 MB, free: 5.926 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.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.182/2.182, allocations: 390.3 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 59.91 kB / 0.9504 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8938/0.8951, allocations: 140.4 MB / 1.087 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002572/0.8977, allocations: 1.541 MB / 1.089 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001336/0.899, allocations: 0.7642 MB / 1.09 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.649e-05/0.8991, allocations: 0 / 1.09 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.642e-05/0.8992, allocations: 13.27 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.914e-05/0.8993, allocations: 16.61 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005848/0.8998, allocations: 136.9 kB / 1.09 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001554/0.9, allocations: 100.2 kB / 1.09 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.9001, allocations: 12.97 kB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.9002, allocations: 44.92 kB / 1.09 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.502e-05/0.9003, allocations: 49.36 kB / 1.09 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/0.9004, allocations: 6.969 kB / 1.09 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002044/0.9006, allocations: 96 kB / 1.09 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.323e-05/0.9006, allocations: 25.81 kB / 1.09 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.395e-05/0.9007, allocations: 50.88 kB / 1.09 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003152/0.901, allocations: 161.9 kB / 1.09 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.901, allocations: 0 / 1.09 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.633e-06/0.901, allocations: 5.219 kB / 1.09 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.002e-06/0.901, allocations: 0 / 1.09 GB, free: 3.363 MB / 0.8575 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.0007535/0.9018, allocations: 0.4984 MB / 1.091 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.9019, allocations: 9.656 kB / 1.091 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.459e-05/0.9019, allocations: 42.78 kB / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.347e-05/0.9019, allocations: 10.17 kB / 1.091 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001202/0.9021, allocations: 184.7 kB / 1.091 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.9021, allocations: 2.5 kB / 1.091 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.9021, allocations: 9.609 kB / 1.091 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002048/0.9023, allocations: 85.2 kB / 1.091 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.9023, allocations: 0 / 1.091 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.9024, allocations: 1.312 kB / 1.091 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.9024, allocations: 1.219 kB / 1.091 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001534/0.9025, allocations: 54.58 kB / 1.091 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005417/0.9031, allocations: 328.8 kB / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002139/0.9033, allocations: 82.17 kB / 1.092 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.778e-05/0.9034, allocations: 44.56 kB / 1.092 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.9034, allocations: 1.219 kB / 1.092 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002874/0.9037, allocations: 103.8 kB / 1.092 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.9037, allocations: 0.8125 kB / 1.092 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004524/0.9042, allocations: 171.9 kB / 1.092 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.208e-05/0.9042, allocations: 54.22 kB / 1.092 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.9044, allocations: 154.4 kB / 1.092 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.9044, allocations: 27.08 kB / 1.092 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.2e-05/0.9044, allocations: 103 kB / 1.092 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.617e-05/0.9045, allocations: 25.94 kB / 1.092 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.06e-05/0.9045, allocations: 32.33 kB / 1.092 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.628e-05/0.9046, allocations: 325.6 kB / 1.093 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.587e-05/0.9047, allocations: 28.14 kB / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.9048, allocations: 73.39 kB / 1.093 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000179/0.905, allocations: 102.9 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.905, allocations: 4 kB / 1.093 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002542/0.9052, allocations: 139.5 kB / 1.093 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.9053, allocations: 7.844 kB / 1.093 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.9053, allocations: 2.859 kB / 1.093 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.9053, allocations: 1.75 kB / 1.093 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.9054, allocations: 16.33 kB / 1.093 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.687e-06/0.9054, allocations: 6.375 kB / 1.093 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.9055, allocations: 18.19 kB / 1.093 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.9056, allocations: 9.391 kB / 1.093 GB, free: 1.105 MB / 0.8575 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 8.055e-05/0.9057, allocations: 129.9 kB / 1.093 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.403e-05/0.9057, allocations: 9.25 kB / 1.093 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003794/0.9061, allocations: 171.7 kB / 1.093 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.9061, allocations: 1.531 kB / 1.093 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.9061, allocations: 4.719 kB / 1.093 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.9061, allocations: 0.7969 kB / 1.093 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006159/0.9067, allocations: 461.5 kB / 1.094 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.9067, allocations: 1.422 kB / 1.094 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.456e-05/0.9068, allocations: 17.25 kB / 1.094 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.9068, allocations: 0.9688 kB / 1.094 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.9069, allocations: 6.922 kB / 1.094 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.9069, allocations: 5.172 kB / 1.094 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.9069, allocations: 0.8438 kB / 1.094 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003122/0.9072, allocations: 247.1 kB / 1.094 GB, free: 348 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.992e-05/0.9072, allocations: 88.22 kB / 1.094 GB, free: 244 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.702e-05/0.9073, allocations: 2.953 kB / 1.094 GB, free: 244 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.9074, allocations: 15.55 kB / 1.094 GB, free: 236 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.124e-05/0.9075, allocations: 10.69 kB / 1.094 GB, free: 236 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.9075, allocations: 13.75 kB / 1.094 GB, free: 228 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.574e-05/0.9076, allocations: 110.6 kB / 1.094 GB, free: 140 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.9076, allocations: 4 kB / 1.094 GB, free: 136 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003649/0.9079, allocations: 44.06 kB / 1.094 GB, free: 128 kB / 0.8575 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.0008866/0.9088, allocations: 0.8438 MB / 1.095 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002978/0.9091, allocations: 96.23 kB / 1.095 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.9092, allocations: 0 / 1.095 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.9093, allocations: 55.8 kB / 1.095 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003147/0.9096, allocations: 25.17 kB / 1.095 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001992/0.9116, allocations: 1.673 MB / 1.097 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.9119, allocations: 0.7007 MB / 1.098 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.818e-05/0.912, allocations: 9.25 kB / 1.098 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.826e-05/0.9121, allocations: 37.75 kB / 1.098 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of SimCode: time 4.31e-07/0.9121, allocations: 4.594 kB / 1.098 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02222/0.9343, allocations: 3.513 MB / 1.101 GB, free: 12.65 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.193/9.128, allocations: 12.95 kB / 1.101 GB, free: 12.64 MB / 0.8731 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) "" Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,ill.amplitude,ill.f,ill.offset,ill.phase,ill.startTime,ill.y,lig.AArriv,lig.AInter,lig.BArriv,lig.BInter,lig.CArriv,lig.CInter,lig.MArriv,lig.MInter,lig.ill,lig.occ,lig.on,lig.pArriv,lig.pInter,lig.samplePeriod,lig.seed,time