Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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: translateModel(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001159/0.001158, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.313/1.313, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.56/2.56, allocations: 469.4 MB / 0.7427 GB, free: 3.668 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001357, allocations: 69.34 kB / 0.9088 GB, free: 14.13 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3038, allocations: 159.1 MB / 1.064 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002981/0.3068, allocations: 1.53 MB / 1.066 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001367/0.3082, allocations: 0.7478 MB / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.461e-05/0.3083, allocations: 0 / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.422e-05/0.3084, allocations: 7.922 kB / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.249e-05/0.3085, allocations: 23.8 kB / 1.066 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006146/0.3091, allocations: 127.6 kB / 1.067 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001454/0.3093, allocations: 95.7 kB / 1.067 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.3094, allocations: 7.984 kB / 1.067 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.3095, allocations: 47.84 kB / 1.067 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.587e-05/0.3096, allocations: 39.83 kB / 1.067 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.342e-05/0.3097, allocations: 12 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002425/0.3099, allocations: 103.8 kB / 1.067 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.422e-05/0.31, allocations: 31.89 kB / 1.067 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.875e-05/0.31, allocations: 39.8 kB / 1.067 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002971/0.3103, allocations: 159.9 kB / 1.067 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.3104, allocations: 0 / 1.067 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.605e-06/0.3104, allocations: 0 / 1.067 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.544e-06/0.3104, allocations: 3.938 kB / 1.067 GB, free: 12.03 MB / 0.8419 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.00076/0.3111, allocations: 496.2 kB / 1.068 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.3112, allocations: 12.62 kB / 1.068 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.998e-05/0.3112, allocations: 12.84 kB / 1.068 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.3114, allocations: 182.3 kB / 1.068 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.669e-05/0.3114, allocations: 4.375 kB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.948e-05/0.3114, allocations: 12.36 kB / 1.068 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002025/0.3116, allocations: 85.95 kB / 1.068 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.3117, allocations: 0 / 1.068 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.3117, allocations: 0 / 1.068 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.3117, allocations: 4 kB / 1.068 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001536/0.3118, allocations: 55.91 kB / 1.068 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006172/0.3125, allocations: 328.7 kB / 1.068 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002365/0.3127, allocations: 86.67 kB / 1.068 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.833e-05/0.3128, allocations: 36.94 kB / 1.068 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.3129, allocations: 7.938 kB / 1.068 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000244/0.3131, allocations: 99.34 kB / 1.068 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=11): time 2.424e-06/0.3131, allocations: 0 / 1.068 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.0004615/0.3136, allocations: 173.5 kB / 1.069 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.3137, allocations: 59.41 kB / 1.069 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.3138, allocations: 130.1 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.3138, allocations: 33.62 kB / 1.069 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.092e-05/0.3138, allocations: 92.14 kB / 1.069 GB, free: 9.934 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.792e-05/0.3139, allocations: 27.56 kB / 1.069 GB, free: 9.906 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.386e-05/0.3139, allocations: 33.7 kB / 1.069 GB, free: 9.867 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.651e-05/0.314, allocations: 326.8 kB / 1.069 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.89e-05/0.3141, allocations: 35.97 kB / 1.069 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.754e-05/0.3142, allocations: 67.25 kB / 1.069 GB, free: 9.422 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001816/0.3144, allocations: 109 kB / 1.07 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.3144, allocations: 4 kB / 1.07 GB, free: 9.293 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002758/0.3147, allocations: 137.4 kB / 1.07 GB, free: 9.152 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.3147, allocations: 8 kB / 1.07 GB, free: 9.145 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.3148, allocations: 0 / 1.07 GB, free: 9.145 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.3148, allocations: 0 / 1.07 GB, free: 9.145 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.3149, allocations: 23.86 kB / 1.07 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.3149, allocations: 4 kB / 1.07 GB, free: 9.117 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.315, allocations: 24.02 kB / 1.07 GB, free: 9.094 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.3151, allocations: 4 kB / 1.07 GB, free: 9.09 MB / 0.8419 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 9.711e-05/0.3152, allocations: 125.7 kB / 1.07 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.47e-05/0.3152, allocations: 11.81 kB / 1.07 GB, free: 8.945 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003416/0.3155, allocations: 160.1 kB / 1.07 GB, free: 8.785 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.3156, allocations: 0 / 1.07 GB, free: 8.785 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3156, allocations: 3.984 kB / 1.07 GB, free: 8.781 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.3156, allocations: 8 kB / 1.07 GB, free: 8.773 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005873/0.3162, allocations: 442.4 kB / 1.07 GB, free: 8.285 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3162, allocations: 0 / 1.07 GB, free: 8.285 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.434e-05/0.3163, allocations: 11.98 kB / 1.07 GB, free: 8.273 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3163, allocations: 0 / 1.07 GB, free: 8.273 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.3163, allocations: 8 kB / 1.07 GB, free: 8.266 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.3163, allocations: 4 kB / 1.07 GB, free: 8.262 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3163, allocations: 7.938 kB / 1.07 GB, free: 8.254 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003012/0.3166, allocations: 252.2 kB / 1.071 GB, free: 7.992 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.146e-05/0.3167, allocations: 92.94 kB / 1.071 GB, free: 7.883 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.3167, allocations: 0 / 1.071 GB, free: 7.883 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.3168, allocations: 7.984 kB / 1.071 GB, free: 7.875 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.704e-05/0.3169, allocations: 15.92 kB / 1.071 GB, free: 7.859 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.3169, allocations: 4 kB / 1.071 GB, free: 7.855 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.604e-05/0.317, allocations: 107.3 kB / 1.071 GB, free: 7.75 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.317, allocations: 0 / 1.071 GB, free: 7.75 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003166/0.3173, allocations: 43.98 kB / 1.071 GB, free: 7.707 MB / 0.8419 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.0003353/0.3176, allocations: 170.2 kB / 1.071 GB, free: 7.551 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002582/0.3179, allocations: 103.8 kB / 1.071 GB, free: 7.449 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3179, allocations: 0 / 1.071 GB, free: 7.449 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001219/0.3181, allocations: 61.66 kB / 1.071 GB, free: 7.391 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.3184, allocations: 17.88 kB / 1.071 GB, free: 7.375 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004695/0.3188, allocations: 242 kB / 1.072 GB, free: 7.105 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.3191, allocations: 0.6924 MB / 1.072 GB, free: 6.387 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.302e-05/0.3191, allocations: 19.42 kB / 1.072 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of SimCode: time 2.01e-07/0.3191, allocations: 0 / 1.072 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of Templates: time 0.003785/0.3229, allocations: 1.935 MB / 1.074 GB, free: 4.438 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches