Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.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.Gunay2016Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",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.006321/0.006321, allocations: 99.64 kB / 15.73 MB, free: 6.469 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.001489/0.001489, allocations: 191.9 kB / 16.67 MB, free: 6.379 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.414/2.414, allocations: 390.2 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 62.5 kB / 0.9504 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.287, allocations: 140.4 MB / 1.087 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002731/0.2898, allocations: 1.528 MB / 1.089 GB, free: 496 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001391/0.2912, allocations: 0.757 MB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.089e-05/0.2913, allocations: 0 / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.969e-05/0.2914, allocations: 7.875 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001019/0.2915, allocations: 15.84 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000667/0.2922, allocations: 131.5 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001504/0.2923, allocations: 95.7 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.2924, allocations: 27.95 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.2926, allocations: 43.84 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.338e-05/0.2927, allocations: 43.83 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.587e-05/0.2927, allocations: 8 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002031/0.2929, allocations: 99.89 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.113e-05/0.2929, allocations: 19.92 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.547e-05/0.293, allocations: 39.73 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002908/0.2933, allocations: 166.4 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.2933, allocations: 0 / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.994e-06/0.2933, allocations: 4 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.979e-06/0.2933, allocations: 0 / 1.09 GB, free: 15.04 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.0007977/0.2941, allocations: 493.1 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.2942, allocations: 12.03 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.453e-05/0.2943, allocations: 34.75 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.521e-05/0.2943, allocations: 8.844 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001757/0.2945, allocations: 188.2 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.2945, allocations: 4.375 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.934e-05/0.2945, allocations: 4.375 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000206/0.2948, allocations: 85.7 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.2948, allocations: 0 / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.2948, allocations: 4 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.2948, allocations: 0 / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001502/0.295, allocations: 47.97 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000584/0.2955, allocations: 340.6 kB / 1.092 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002231/0.2958, allocations: 86.64 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.422e-05/0.2959, allocations: 40.84 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.251e-05/0.2959, allocations: 0 / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002757/0.2962, allocations: 111.3 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.393e-06/0.2962, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004352/0.2967, allocations: 169.5 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/0.2967, allocations: 55.41 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.2968, allocations: 130.1 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.2968, allocations: 25.7 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.355e-05/0.2969, allocations: 104 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.85e-05/0.2969, allocations: 23.7 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.704e-05/0.297, allocations: 41.64 kB / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.2971, allocations: 330.7 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.833e-05/0.2972, allocations: 27.98 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.854e-05/0.2973, allocations: 71.23 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001781/0.2975, allocations: 101.1 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2975, allocations: 0 / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002577/0.2978, allocations: 141.5 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.2978, allocations: 9.562 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.2978, allocations: 0 / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.2978, allocations: 4 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.2979, allocations: 19.92 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.298, allocations: 0 / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.2981, allocations: 15.92 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.2981, allocations: 4 kB / 1.093 GB, free: 12.07 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 0.0001014/0.2982, allocations: 139.4 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.268e-05/0.2982, allocations: 11.81 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003696/0.2986, allocations: 158.3 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.2986, allocations: 4 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2986, allocations: 0 / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.2986, allocations: 144 / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006216/0.2993, allocations: 460 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.2993, allocations: 4 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.223e-05/0.2994, allocations: 15.94 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.2994, allocations: 4 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.2994, allocations: 3.984 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.2994, allocations: 3.938 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2994, allocations: 0 / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003193/0.2997, allocations: 243.2 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.3e-05/0.2998, allocations: 89.02 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.338e-05/0.2998, allocations: 3.938 kB / 1.094 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.2999, allocations: 11.98 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.273e-05/0.3, allocations: 11.98 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.3, allocations: 4 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.679e-05/0.3001, allocations: 103.2 kB / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.943e-06/0.3001, allocations: 0 / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003374/0.3004, allocations: 43.94 kB / 1.094 GB, free: 10.68 MB / 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 (13): * Single equations (assignments): 10 * 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.0008223/0.3013, allocations: 0.8409 MB / 1.095 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002633/0.3016, allocations: 91.95 kB / 1.095 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3016, allocations: 0 / 1.095 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001195/0.3017, allocations: 55.91 kB / 1.095 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/0.302, allocations: 23.92 kB / 1.095 GB, free: 9.664 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001883/0.3039, allocations: 1.652 MB / 1.097 GB, free: 7.902 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000241/0.3042, allocations: 0.6963 MB / 1.097 GB, free: 7.18 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.723e-05/0.3042, allocations: 16.69 kB / 1.098 GB, free: 7.164 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.993e-05/0.3043, allocations: 27.44 kB / 1.098 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of SimCode: time 7.62e-07/0.3043, allocations: 0 / 1.098 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.024/0.3283, allocations: 3.375 MB / 1.101 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.971/8.299, allocations: 2.469 kB / 1.101 GB, free: 3.879 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.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.ill,lig.occ,lig.on,lig.pArriv,lig.pInter,lig.samplePeriod,lig.seed,time