Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Reinhart2003Light,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.Reinhart2003Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,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.Reinhart2003Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.017/2.017, allocations: 387.4 MB / 394.9 MB, free: 13.4 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.001045/0.001045, allocations: 176.6 kB / 487.4 MB, free: 5.055 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.337/1.337, allocations: 221.5 MB / 0.7824 GB, free: 0.9141 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.000867/0.000867, allocations: 101.4 kB / 0.9219 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.392e-05/1.394e-05, allocations: 7.984 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2303, allocations: 142.3 MB / 1.206 GB, free: 43.94 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7781/1.008, allocations: 150.8 MB / 1.353 GB, free: 18.26 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/1.009, allocations: 83.86 kB / 1.353 GB, free: 18.26 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.009473/1.018, allocations: 3.346 MB / 1.357 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.153e-06/1.018, allocations: 4.594 kB / 1.357 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.913e-06/1.018, allocations: 0 / 1.357 GB, free: 33.78 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005043/1.019, allocations: 487.8 kB / 1.357 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/1.019, allocations: 7.688 kB / 1.357 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.145e-05/1.019, allocations: 19.66 kB / 1.357 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/1.019, allocations: 181.9 kB / 1.357 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.723e-05/1.019, allocations: 3.844 kB / 1.357 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.601e-05/1.019, allocations: 11.75 kB / 1.357 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001026/1.019, allocations: 34 kB / 1.357 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/1.019, allocations: 69.67 kB / 1.357 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/1.019, allocations: 0 / 1.357 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/1.019, allocations: 0 / 1.357 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/1.019, allocations: 0 / 1.357 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004493/1.02, allocations: 320.8 kB / 1.358 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/1.02, allocations: 71.7 kB / 1.358 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.658e-05/1.02, allocations: 30.48 kB / 1.358 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/1.02, allocations: 3.25 kB / 1.358 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000125/1.02, allocations: 95.66 kB / 1.358 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.553e-06/1.02, allocations: 0 / 1.358 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002375/1.02, allocations: 124.9 kB / 1.358 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.082e-05/1.02, allocations: 61.19 kB / 1.358 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.008e-05/1.02, allocations: 122.3 kB / 1.358 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/1.02, allocations: 25.7 kB / 1.358 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.69e-05/1.021, allocations: 101.4 kB / 1.358 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.146e-05/1.021, allocations: 33.48 kB / 1.358 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.463e-06/1.021, allocations: 0 / 1.358 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.481e-05/1.021, allocations: 321 kB / 1.359 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.474e-05/1.021, allocations: 18.59 kB / 1.359 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.772e-05/1.021, allocations: 60.16 kB / 1.359 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.723e-05/1.021, allocations: 35.41 kB / 1.359 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/1.021, allocations: 0 / 1.359 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001368/1.021, allocations: 113.7 kB / 1.359 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/1.021, allocations: 7.688 kB / 1.359 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/1.021, allocations: 0 / 1.359 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/1.021, allocations: 3.812 kB / 1.359 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/1.021, allocations: 22.2 kB / 1.359 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/1.021, allocations: 6.812 kB / 1.359 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.879e-05/1.021, allocations: 18.48 kB / 1.359 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/1.021, allocations: 7.531 kB / 1.359 GB, free: 31.96 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,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.669e-05/1.021, allocations: 112.9 kB / 1.359 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.608e-05/1.021, allocations: 11.66 kB / 1.359 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002295/1.022, allocations: 143.6 kB / 1.359 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/1.022, allocations: 4 kB / 1.359 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/1.022, allocations: 7 kB / 1.359 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/1.022, allocations: 0 / 1.359 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004083/1.022, allocations: 422 kB / 1.36 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/1.022, allocations: 0.6875 kB / 1.36 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.571e-05/1.022, allocations: 14.95 kB / 1.36 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/1.022, allocations: 0 / 1.36 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/1.022, allocations: 11.03 kB / 1.36 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/1.022, allocations: 4.828 kB / 1.36 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.022, allocations: 3.938 kB / 1.36 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000211/1.022, allocations: 229.6 kB / 1.36 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.201e-05/1.022, allocations: 91.34 kB / 1.36 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/1.022, allocations: 0 / 1.36 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/1.023, allocations: 13.36 kB / 1.36 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.096e-05/1.023, allocations: 20.78 kB / 1.36 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/1.023, allocations: 5.078 kB / 1.36 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.932e-05/1.023, allocations: 103.3 kB / 1.36 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.023, allocations: 0 / 1.36 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002877/1.023, allocations: 52.78 kB / 1.36 GB, free: 31.18 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 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulseStart) * Number of discrete states: 1 (lig.on) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0003204/1.023, allocations: 179.4 kB / 1.36 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000138/1.023, allocations: 81.31 kB / 1.36 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.542e-06/1.023, allocations: 3.938 kB / 1.36 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.219e-05/1.024, allocations: 40.31 kB / 1.36 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002024/1.024, allocations: 17.33 kB / 1.36 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002838/1.024, allocations: 139 kB / 1.361 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000229/1.024, allocations: 0.7031 MB / 1.361 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.021e-05/1.024, allocations: 11.27 kB / 1.361 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.361e-05/1.024, allocations: 13.89 kB / 1.361 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.024, allocations: 3.938 kB / 1.361 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of Templates: time 0.003783/1.028, allocations: 1.951 MB / 1.363 GB, free: 30.07 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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:$whenCondition1,booleanPulse.Twidth,booleanPulse.period,booleanPulse.startTime,booleanPulse.width,ill.amplitude,ill.f,ill.offset,ill.phase,ill.startTime,ill.y,lig.AArriv,lig.AInter,lig.BArriv,lig.BInter,lig.CArriv,lig.CInter,lig.MArriv,lig.MInter,lig.ill,lig.occ,lig.on,lig.pArriv,lig.samplePeriod,lig.seed,lig.t0,time