Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_10_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.006834/0.006834, allocations: 96.31 kB / 15.73 MB, free: 6.043 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.001823/0.001823, allocations: 195.8 kB / 16.68 MB, free: 5.969 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.474/2.474, allocations: 437.1 MB / 0.7106 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 67.89 kB / 1.018 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2512, allocations: 151.6 MB / 1.166 GB, free: 7.473 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.00227/0.2535, allocations: 1.511 MB / 1.168 GB, free: 5.941 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001145/0.2546, allocations: 0.7673 MB / 1.168 GB, free: 5.168 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.534e-05/0.2547, allocations: 0 / 1.168 GB, free: 5.168 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.979e-05/0.2547, allocations: 11.88 kB / 1.168 GB, free: 5.156 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.672e-05/0.2548, allocations: 15.84 kB / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004502/0.2553, allocations: 131.5 kB / 1.169 GB, free: 5.012 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001307/0.2554, allocations: 103.7 kB / 1.169 GB, free: 4.91 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 7.726e-05/0.2555, allocations: 11.98 kB / 1.169 GB, free: 4.898 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.104e-05/0.2556, allocations: 51.77 kB / 1.169 GB, free: 4.848 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.976e-05/0.2557, allocations: 43.83 kB / 1.169 GB, free: 4.805 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.948e-05/0.2557, allocations: 8 kB / 1.169 GB, free: 4.797 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000172/0.2559, allocations: 91.91 kB / 1.169 GB, free: 4.707 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.023e-05/0.2559, allocations: 23.92 kB / 1.169 GB, free: 4.684 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.276e-05/0.256, allocations: 47.78 kB / 1.169 GB, free: 4.637 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002304/0.2562, allocations: 163.7 kB / 1.169 GB, free: 4.477 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2562, allocations: 0 / 1.169 GB, free: 4.477 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.193e-06/0.2562, allocations: 0 / 1.169 GB, free: 4.477 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.127e-06/0.2562, allocations: 0 / 1.169 GB, free: 4.477 MB / 0.92 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.0006719/0.2569, allocations: 500 kB / 1.17 GB, free: 3.922 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.2569, allocations: 8.031 kB / 1.17 GB, free: 3.914 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.713e-05/0.257, allocations: 34.75 kB / 1.17 GB, free: 3.871 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.06e-05/0.257, allocations: 16.89 kB / 1.17 GB, free: 3.855 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.2572, allocations: 188.1 kB / 1.17 GB, free: 3.633 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.34e-05/0.2572, allocations: 4.375 kB / 1.17 GB, free: 3.629 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.514e-05/0.2572, allocations: 8.375 kB / 1.17 GB, free: 3.621 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001778/0.2574, allocations: 77.77 kB / 1.17 GB, free: 3.539 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.2574, allocations: 0 / 1.17 GB, free: 3.539 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.2574, allocations: 7.938 kB / 1.17 GB, free: 3.531 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.2574, allocations: 0 / 1.17 GB, free: 3.531 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001516/0.2576, allocations: 55.95 kB / 1.17 GB, free: 3.477 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004921/0.2581, allocations: 336.6 kB / 1.17 GB, free: 3.098 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002008/0.2583, allocations: 82.67 kB / 1.17 GB, free: 3.008 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.862e-05/0.2584, allocations: 36.84 kB / 1.17 GB, free: 2.969 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.2584, allocations: 0 / 1.17 GB, free: 2.969 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002063/0.2586, allocations: 103.4 kB / 1.17 GB, free: 2.855 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 1.312e-06/0.2586, allocations: 0 / 1.17 GB, free: 2.855 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0004009/0.2591, allocations: 177.5 kB / 1.171 GB, free: 2.676 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.907e-05/0.2591, allocations: 55.41 kB / 1.171 GB, free: 2.609 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.2592, allocations: 132.1 kB / 1.171 GB, free: 2.469 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.2592, allocations: 29.7 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.549e-05/0.2593, allocations: 108.1 kB / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.708e-05/0.2593, allocations: 23.8 kB / 1.171 GB, free: 2.301 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.183e-05/0.2594, allocations: 33.64 kB / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.2595, allocations: 326.8 kB / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.83e-05/0.2596, allocations: 27.98 kB / 1.171 GB, free: 1.906 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.2597, allocations: 73.12 kB / 1.171 GB, free: 1.816 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.2599, allocations: 105.1 kB / 1.171 GB, free: 1.695 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2599, allocations: 0 / 1.171 GB, free: 1.695 MB / 0.92 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002464/0.2602, allocations: 145.4 kB / 1.172 GB, free: 1.547 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.2602, allocations: 4 kB / 1.172 GB, free: 1.543 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.2602, allocations: 4 kB / 1.172 GB, free: 1.539 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.006e-05/0.2602, allocations: 0 / 1.172 GB, free: 1.539 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.709e-05/0.2603, allocations: 19.92 kB / 1.172 GB, free: 1.52 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.2603, allocations: 7.984 kB / 1.172 GB, free: 1.512 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.973e-05/0.2604, allocations: 8 kB / 1.172 GB, free: 1.504 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.2604, allocations: 8 kB / 1.172 GB, free: 1.496 MB / 0.92 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.0001064/0.2606, allocations: 137.7 kB / 1.172 GB, free: 1.352 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.938e-05/0.2606, allocations: 7.953 kB / 1.172 GB, free: 1.344 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003279/0.2609, allocations: 154.3 kB / 1.172 GB, free: 1.188 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2609, allocations: 0 / 1.172 GB, free: 1.188 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.2609, allocations: 0 / 1.172 GB, free: 1.188 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.2609, allocations: 0 / 1.172 GB, free: 1.188 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006091/0.2615, allocations: 473.7 kB / 1.172 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.2616, allocations: 0 / 1.172 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.828e-05/0.2616, allocations: 11.98 kB / 1.172 GB, free: 0.6602 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.2616, allocations: 0 / 1.172 GB, free: 0.6602 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.2617, allocations: 0 / 1.172 GB, free: 0.6602 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.2617, allocations: 7.938 kB / 1.172 GB, free: 0.6523 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.2617, allocations: 3.938 kB / 1.172 GB, free: 0.6484 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003181/0.262, allocations: 247.3 kB / 1.173 GB, free: 400 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.309e-05/0.2621, allocations: 85.06 kB / 1.173 GB, free: 296 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.2621, allocations: 11.94 kB / 1.173 GB, free: 284 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.2622, allocations: 7.984 kB / 1.173 GB, free: 276 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.204e-05/0.2623, allocations: 11.98 kB / 1.173 GB, free: 264 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.2623, allocations: 7.984 kB / 1.173 GB, free: 256 kB / 0.92 GB Notification: Performance of sorting global known variables: time 6.609e-05/0.2623, allocations: 105 kB / 1.173 GB, free: 152 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2624, allocations: 4 kB / 1.173 GB, free: 148 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.000274/0.2626, allocations: 39.94 kB / 1.173 GB, free: 108 kB / 0.92 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.0008284/0.2635, allocations: 0.8354 MB / 1.174 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002371/0.2637, allocations: 99.89 kB / 1.174 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2637, allocations: 0 / 1.174 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.2638, allocations: 55.91 kB / 1.174 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.2641, allocations: 23.91 kB / 1.174 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001641/0.2658, allocations: 1.645 MB / 1.176 GB, free: 13.33 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002649/0.2661, allocations: 0.6963 MB / 1.176 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.591e-05/0.2661, allocations: 12.42 kB / 1.176 GB, free: 12.59 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.952e-05/0.2662, allocations: 35.42 kB / 1.176 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.2662, allocations: 0 / 1.176 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.6/3.867, allocations: 3.319 MB / 1.18 GB, free: 9.367 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/14.18, allocations: 8.906 kB / 1.18 GB, free: 9.363 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches