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: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_latest_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.00848/0.00848, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.001924/0.001924, allocations: 189.7 kB / 16.67 MB, free: 5.977 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.458/1.458, 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 11.0.1-master/package.mo): time 2.824/2.824, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 63.91 kB / 1.054 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3365, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.003384/0.3399, allocations: 1.518 MB / 1.209 GB, free: 8.629 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001538/0.3415, allocations: 0.7598 MB / 1.209 GB, free: 7.863 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.218e-05/0.3415, allocations: 3.938 kB / 1.209 GB, free: 7.859 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.395e-05/0.3416, allocations: 11.92 kB / 1.209 GB, free: 7.848 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.964e-05/0.3417, allocations: 11.81 kB / 1.209 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006467/0.3424, allocations: 131.6 kB / 1.21 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001714/0.3426, allocations: 95.75 kB / 1.21 GB, free: 7.613 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.3427, allocations: 15.98 kB / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001334/0.3428, allocations: 47.78 kB / 1.21 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.799e-05/0.3429, allocations: 47.81 kB / 1.21 GB, free: 7.504 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.016e-05/0.343, allocations: 8 kB / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002204/0.3432, allocations: 99.84 kB / 1.21 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.399e-05/0.3432, allocations: 19.92 kB / 1.21 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.735e-05/0.3433, allocations: 43.78 kB / 1.21 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000292/0.3436, allocations: 163.8 kB / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3436, allocations: 0 / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.843e-06/0.3436, allocations: 0 / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.335e-06/0.3437, allocations: 0 / 1.21 GB, free: 7.176 MB / 0.9669 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.0007832/0.3444, allocations: 0.4885 MB / 1.211 GB, free: 6.621 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.3445, allocations: 8.625 kB / 1.211 GB, free: 6.613 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.298e-05/0.3445, allocations: 42.73 kB / 1.211 GB, free: 6.562 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.078e-05/0.3446, allocations: 8.844 kB / 1.211 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001489/0.3447, allocations: 176.2 kB / 1.211 GB, free: 6.344 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.816e-05/0.3448, allocations: 8.375 kB / 1.211 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.3448, allocations: 4.375 kB / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.345, allocations: 81.77 kB / 1.211 GB, free: 6.246 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.345, allocations: 7.984 kB / 1.211 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.345, allocations: 4 kB / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.345, allocations: 0 / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001525/0.3452, allocations: 51.91 kB / 1.211 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005567/0.3458, allocations: 336.6 kB / 1.211 GB, free: 5.805 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000323/0.3461, allocations: 86.75 kB / 1.211 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.634e-05/0.3462, allocations: 40.78 kB / 1.211 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.3462, allocations: 4 kB / 1.211 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002494/0.3465, allocations: 95.36 kB / 1.212 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.723e-06/0.3465, allocations: 3.938 kB / 1.212 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0004265/0.3469, allocations: 173.5 kB / 1.212 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.139e-05/0.347, allocations: 59.34 kB / 1.212 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.3471, allocations: 140.8 kB / 1.212 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.3471, allocations: 25.7 kB / 1.212 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.217e-05/0.3472, allocations: 100.1 kB / 1.212 GB, free: 5.027 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.148e-05/0.3472, allocations: 27.64 kB / 1.212 GB, free: 5 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.033e-05/0.3473, allocations: 41.7 kB / 1.212 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.3474, allocations: 326.8 kB / 1.212 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.513e-05/0.3475, allocations: 27.98 kB / 1.212 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.3477, allocations: 73.12 kB / 1.212 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001848/0.3479, allocations: 101.1 kB / 1.213 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.3479, allocations: 4 kB / 1.213 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000263/0.3481, allocations: 141.3 kB / 1.213 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.3482, allocations: 8 kB / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3482, allocations: 0 / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.3482, allocations: 0 / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.3483, allocations: 32.02 kB / 1.213 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.3483, allocations: 4 kB / 1.213 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.3484, allocations: 19.83 kB / 1.213 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.3485, allocations: 4 kB / 1.213 GB, free: 4.176 MB / 0.9669 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.0001053/0.3486, allocations: 125.7 kB / 1.213 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.197e-05/0.3486, allocations: 11.91 kB / 1.213 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003472/0.349, allocations: 154.3 kB / 1.213 GB, free: 3.871 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.349, allocations: 4 kB / 1.213 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.349, allocations: 0 / 1.213 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.349, allocations: 7.984 kB / 1.213 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00064/0.3496, allocations: 444.2 kB / 1.213 GB, free: 3.371 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3497, allocations: 0 / 1.213 GB, free: 3.371 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.475e-05/0.3497, allocations: 15.98 kB / 1.214 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.3497, allocations: 0 / 1.214 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.3498, allocations: 4 kB / 1.214 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.3498, allocations: 7.938 kB / 1.214 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3498, allocations: 0 / 1.214 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003257/0.3501, allocations: 243.3 kB / 1.214 GB, free: 3.09 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.966e-05/0.3502, allocations: 92.94 kB / 1.214 GB, free: 2.98 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.408e-05/0.3502, allocations: 3.938 kB / 1.214 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001198/0.3503, allocations: 15.92 kB / 1.214 GB, free: 2.961 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.254e-05/0.3504, allocations: 7.984 kB / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.3504, allocations: 8 kB / 1.214 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.331e-05/0.3505, allocations: 105.5 kB / 1.214 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3505, allocations: 0 / 1.214 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003381/0.3508, allocations: 43.98 kB / 1.214 GB, free: 2.801 MB / 0.9669 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.0008779/0.3517, allocations: 0.842 MB / 1.215 GB, free: 1.949 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002609/0.352, allocations: 95.89 kB / 1.215 GB, free: 1.855 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.352, allocations: 0 / 1.215 GB, free: 1.855 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.3521, allocations: 51.92 kB / 1.215 GB, free: 1.805 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.3525, allocations: 28.17 kB / 1.215 GB, free: 1.777 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.3543, allocations: 1.651 MB / 1.217 GB, free: 20 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000326/0.3546, allocations: 0.6963 MB / 1.217 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.341e-05/0.3547, allocations: 12.42 kB / 1.217 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.796e-05/0.3547, allocations: 31.42 kB / 1.217 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.3547, allocations: 0 / 1.217 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02229/0.377, allocations: 3.375 MB / 1.221 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.061/8.438, allocations: 10.62 kB / 1.221 GB, free: 12 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > 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) "" 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