Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.027/2.027, allocations: 387.4 MB / 394.9 MB, free: 13.34 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 184.8 kB / 487.4 MB, free: 5.027 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 221.5 MB / 0.7824 GB, free: 0.918 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008749/0.0008749, allocations: 98.14 kB / 0.9219 GB, free: 2.133 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.65e-05/1.652e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2273, allocations: 142.4 MB / 1.206 GB, free: 43.94 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7425/0.9698, allocations: 150.7 MB / 1.353 GB, free: 18.36 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/0.9701, allocations: 79.5 kB / 1.353 GB, free: 18.36 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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.009197/0.9793, allocations: 3.172 MB / 1.356 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.072e-06/0.9793, allocations: 0 / 1.356 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.634e-06/0.9793, allocations: 0 / 1.356 GB, free: 33.89 MB / 0.8386 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.000521/0.9798, allocations: 465.8 kB / 1.357 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.9799, allocations: 11.69 kB / 1.357 GB, free: 33.44 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.474e-05/0.9799, allocations: 8.453 kB / 1.357 GB, free: 33.44 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.98, allocations: 183.8 kB / 1.357 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.605e-05/0.9801, allocations: 31.62 kB / 1.357 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.9801, allocations: 3.906 kB / 1.357 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.662e-05/0.9802, allocations: 32.25 kB / 1.357 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.9804, allocations: 62.38 kB / 1.357 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.9804, allocations: 7.781 kB / 1.357 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.9804, allocations: 0 / 1.357 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.9804, allocations: 0 / 1.357 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004986/0.9809, allocations: 311.2 kB / 1.357 GB, free: 32.92 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.538e-05/0.981, allocations: 54.05 kB / 1.357 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.962e-05/0.981, allocations: 35.8 kB / 1.357 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.9811, allocations: 0 / 1.357 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001361/0.9812, allocations: 87.84 kB / 1.358 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.273e-06/0.9812, allocations: 0 / 1.358 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002267/0.9815, allocations: 109.6 kB / 1.358 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.213e-05/0.9815, allocations: 57.39 kB / 1.358 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.163e-05/0.9816, allocations: 124.4 kB / 1.358 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.367e-05/0.9816, allocations: 29.7 kB / 1.358 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.804e-05/0.9817, allocations: 94.3 kB / 1.358 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.969e-05/0.9817, allocations: 22.55 kB / 1.358 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-06/0.9817, allocations: 0 / 1.358 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000155/0.9819, allocations: 321.4 kB / 1.358 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.832e-05/0.9819, allocations: 18.53 kB / 1.358 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.822e-05/0.982, allocations: 63.55 kB / 1.358 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.307e-05/0.982, allocations: 26.14 kB / 1.358 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.982, allocations: 0 / 1.358 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001326/0.9821, allocations: 99.77 kB / 1.358 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.9822, allocations: 9.594 kB / 1.358 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.9822, allocations: 0 / 1.358 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.9822, allocations: 7.906 kB / 1.358 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.9823, allocations: 24.09 kB / 1.358 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.9823, allocations: 3.938 kB / 1.358 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.966e-05/0.9824, allocations: 17.12 kB / 1.358 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.246e-05/0.9825, allocations: 10.56 kB / 1.358 GB, free: 32.07 MB / 0.8386 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 () * 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 8.211e-05/0.9825, allocations: 114.3 kB / 1.359 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.458e-05/0.9826, allocations: 11.78 kB / 1.359 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.853e-05/0.9826, allocations: 11.94 kB / 1.359 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.9826, allocations: 2.719 kB / 1.359 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.9826, allocations: 0 / 1.359 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.9826, allocations: 4.078 kB / 1.359 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003708/0.983, allocations: 382.4 kB / 1.359 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.983, allocations: 7.938 kB / 1.359 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.991e-05/0.9831, allocations: 10.03 kB / 1.359 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.9831, allocations: 0 / 1.359 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.9831, allocations: 6.078 kB / 1.359 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.9831, allocations: 0 / 1.359 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.9831, allocations: 0 / 1.359 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001704/0.9833, allocations: 210.8 kB / 1.359 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.171e-05/0.9833, allocations: 84.67 kB / 1.359 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.9834, allocations: 7.047 kB / 1.359 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.9835, allocations: 14.56 kB / 1.359 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.994e-05/0.9835, allocations: 9.344 kB / 1.359 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.9835, allocations: 7.75 kB / 1.359 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.725e-05/0.9836, allocations: 98.73 kB / 1.359 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.032e-06/0.9836, allocations: 0 / 1.359 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003055/0.9839, allocations: 53.8 kB / 1.359 GB, free: 31.33 MB / 0.8386 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) * 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.0003339/0.9843, allocations: 166.2 kB / 1.36 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001391/0.9844, allocations: 66.19 kB / 1.36 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.9844, allocations: 0 / 1.36 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.191e-05/0.9845, allocations: 40.28 kB / 1.36 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002054/0.9847, allocations: 11.41 kB / 1.36 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002763/0.985, allocations: 117.5 kB / 1.36 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002383/0.9853, allocations: 0.6963 MB / 1.361 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.541e-05/0.9853, allocations: 15.95 kB / 1.361 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.991e-05/0.9854, allocations: 15.19 kB / 1.361 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/0.9854, allocations: 0 / 1.361 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of Templates: time 0.003741/0.9891, allocations: 1.774 MB / 1.362 GB, free: 30.26 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","../files/Buildings_9_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.f,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