Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.327/1.327, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001009/0.001009, allocations: 187.6 kB / 326.5 MB, free: 2.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.711/1.711, allocations: 205.4 MB / 0.5775 GB, free: 20.22 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008699/0.0008698, allocations: 95.2 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003534/0.0003536, allocations: 12.06 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2362, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1733/0.4096, allocations: 133.9 MB / 1.031 GB, free: 9.832 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000267/0.41, allocations: 87.92 kB / 1.031 GB, free: 9.746 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 0.00928/0.4193, allocations: 3.151 MB / 1.034 GB, free: 6.586 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.174e-06/0.4193, allocations: 3.938 kB / 1.034 GB, free: 6.582 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.506e-06/0.4193, allocations: 4 kB / 1.034 GB, free: 6.578 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006391/0.4199, allocations: 482.3 kB / 1.034 GB, free: 6.047 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.42, allocations: 8.031 kB / 1.034 GB, free: 6.039 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.491e-05/0.42, allocations: 7.906 kB / 1.035 GB, free: 6.031 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.4202, allocations: 182.9 kB / 1.035 GB, free: 5.812 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.372e-05/0.4203, allocations: 37.7 kB / 1.035 GB, free: 5.77 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.105e-05/0.4203, allocations: 8 kB / 1.035 GB, free: 5.762 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002146/0.4205, allocations: 81.58 kB / 1.035 GB, free: 5.676 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.4205, allocations: 0 / 1.035 GB, free: 5.676 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.4206, allocations: 0 / 1.035 GB, free: 5.676 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.4206, allocations: 0 / 1.035 GB, free: 5.676 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000195/0.4208, allocations: 59.95 kB / 1.035 GB, free: 5.617 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000597/0.4214, allocations: 332.6 kB / 1.035 GB, free: 5.242 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002002/0.4216, allocations: 74.55 kB / 1.035 GB, free: 5.16 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.4216, allocations: 0 / 1.035 GB, free: 5.16 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000224/0.4219, allocations: 99.48 kB / 1.035 GB, free: 5.051 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.4219, allocations: 0 / 1.035 GB, free: 5.051 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10): time 0.0004877/0.4224, allocations: 173.6 kB / 1.036 GB, free: 4.875 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/0.4224, allocations: 63.3 kB / 1.036 GB, free: 4.801 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.371e-05/0.4225, allocations: 119.4 kB / 1.036 GB, free: 4.676 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.4225, allocations: 33.7 kB / 1.036 GB, free: 4.637 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.436e-05/0.4226, allocations: 96.58 kB / 1.036 GB, free: 4.535 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.308e-05/0.4226, allocations: 19.81 kB / 1.036 GB, free: 4.516 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.594e-06/0.4227, allocations: 4 kB / 1.036 GB, free: 4.512 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.4228, allocations: 322.8 kB / 1.036 GB, free: 4.188 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.4229, allocations: 35.92 kB / 1.036 GB, free: 4.152 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.423, allocations: 75.03 kB / 1.036 GB, free: 4.062 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001106/0.4231, allocations: 35.98 kB / 1.036 GB, free: 4.027 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4232, allocations: 0 / 1.036 GB, free: 4.027 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002954/0.4235, allocations: 149.3 kB / 1.036 GB, free: 3.875 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.4235, allocations: 6.812 kB / 1.036 GB, free: 3.871 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.4235, allocations: 0 / 1.036 GB, free: 3.871 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.4235, allocations: 4 kB / 1.036 GB, free: 3.867 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.4236, allocations: 19.92 kB / 1.036 GB, free: 3.848 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.561e-05/0.4237, allocations: 7.953 kB / 1.036 GB, free: 3.84 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.4238, allocations: 20.11 kB / 1.036 GB, free: 3.82 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.4238, allocations: 4 kB / 1.036 GB, free: 3.816 MB / 0.6823 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 ($PRE.lig.curSeed,lig.curSeed,$PRE.lig.on,lig.on,$whenCondition3,$whenCondition2,lig.sampleTrigger,$whenCondition1,lig.occ,$PRE.occ.pulseStart,occ.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001076/0.4239, allocations: 126.5 kB / 1.037 GB, free: 3.684 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.798e-05/0.4239, allocations: 7.906 kB / 1.037 GB, free: 3.676 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.693e-05/0.424, allocations: 12.81 kB / 1.037 GB, free: 3.664 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.424, allocations: 11.92 kB / 1.037 GB, free: 3.652 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.424, allocations: 0 / 1.037 GB, free: 3.652 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.424, allocations: 3.953 kB / 1.037 GB, free: 3.648 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006142/0.4246, allocations: 434.3 kB / 1.037 GB, free: 3.168 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4247, allocations: 0 / 1.037 GB, free: 3.168 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.574e-05/0.4247, allocations: 11.98 kB / 1.037 GB, free: 3.156 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.4248, allocations: 4 kB / 1.037 GB, free: 3.152 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.4248, allocations: 4 kB / 1.037 GB, free: 3.148 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.4248, allocations: 3.953 kB / 1.037 GB, free: 3.145 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.4248, allocations: 0 / 1.037 GB, free: 3.145 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003816/0.4252, allocations: 235.2 kB / 1.037 GB, free: 2.898 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.762e-05/0.4252, allocations: 85.02 kB / 1.037 GB, free: 2.797 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.626e-05/0.4253, allocations: 4 kB / 1.037 GB, free: 2.793 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001347/0.4254, allocations: 16.17 kB / 1.037 GB, free: 2.777 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.827e-05/0.4255, allocations: 15.88 kB / 1.037 GB, free: 2.762 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/0.4255, allocations: 15.92 kB / 1.037 GB, free: 2.746 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 7.586e-05/0.4256, allocations: 100.5 kB / 1.038 GB, free: 2.648 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4256, allocations: 0 / 1.038 GB, free: 2.648 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003446/0.4259, allocations: 47.94 kB / 1.038 GB, free: 2.602 MB / 0.6823 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 (lig.occ,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004468/0.4264, allocations: 173.1 kB / 1.038 GB, free: 2.438 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002946/0.4267, allocations: 87.95 kB / 1.038 GB, free: 2.352 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4267, allocations: 0 / 1.038 GB, free: 2.352 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.4269, allocations: 55.91 kB / 1.038 GB, free: 2.297 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002137/0.4271, allocations: 14.33 kB / 1.038 GB, free: 2.285 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000505/0.4276, allocations: 235.4 kB / 1.038 GB, free: 2.031 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002538/0.4279, allocations: 0.6965 MB / 1.039 GB, free: 1.309 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 6.159e-05/0.4279, allocations: 20.59 kB / 1.039 GB, free: 1.285 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.511e-05/0.428, allocations: 11.44 kB / 1.039 GB, free: 1.277 MB / 0.6823 GB Notification: Performance of SimCode: time 1.91e-07/0.428, allocations: 0 / 1.039 GB, free: 1.277 MB / 0.6823 GB Notification: Performance of Templates: time 0.004654/0.4326, allocations: 1.79 MB / 1.041 GB, free: 15.49 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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:ill.amplitude,ill.freqHz,ill.offset,ill.phase,ill.startTime,ill.y,lig.AArriv,lig.BArriv,lig.CArriv,lig.MArriv,lig.ill,lig.occ,lig.on,lig.pArriv,lig.samplePeriod,lig.seed,lig.t0,occ.Twidth,occ.period,occ.startTime,occ.width,time