Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.p|lig.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1") translateModel(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.p|lig.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.968/1.968, allocations: 390.4 MB / 397.7 MB, free: 11.3 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.001095/0.001095, allocations: 183.8 kB / 490.8 MB, free: 1.953 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.311/1.311, allocations: 221.4 MB / 0.7863 GB, free: 13.74 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008721/0.0008721, allocations: 91.95 kB / 0.9264 GB, free: 14.26 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.812e-06/6.903e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2871, allocations: 143 MB / 1.212 GB, free: 40.13 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6946/0.9818, allocations: 151.4 MB / 1.359 GB, free: 17.16 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002904/0.9821, allocations: 84.61 kB / 1.36 GB, free: 17.16 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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: time 0.009707/0.9919, allocations: 2.879 MB / 1.362 GB, free: 17 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.256e-06/0.9919, allocations: 1.031 kB / 1.362 GB, free: 17 MB / 0.823 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.0006787/0.9926, allocations: 458.9 kB / 1.363 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.9926, allocations: 13.41 kB / 1.363 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.762e-05/0.9927, allocations: 6.875 kB / 1.363 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.9928, allocations: 173.7 kB / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.9929, allocations: 6.156 kB / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.398e-05/0.9929, allocations: 7.375 kB / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001166/0.993, allocations: 28.06 kB / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001327/0.9931, allocations: 63.8 kB / 1.363 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.9932, allocations: 0 / 1.363 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.9932, allocations: 1.188 kB / 1.363 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.9932, allocations: 1.219 kB / 1.363 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000535/0.9937, allocations: 304.4 kB / 1.363 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000104/0.9939, allocations: 54.77 kB / 1.363 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.168e-05/0.9939, allocations: 25.61 kB / 1.363 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.9939, allocations: 1.219 kB / 1.363 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001092/0.9941, allocations: 88.98 kB / 1.364 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.9941, allocations: 3.938 kB / 1.364 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002906/0.9944, allocations: 90.81 kB / 1.364 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.611e-05/0.9944, allocations: 55.81 kB / 1.364 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.658e-05/0.9945, allocations: 113.1 kB / 1.364 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.9945, allocations: 28.09 kB / 1.364 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.756e-05/0.9946, allocations: 91.91 kB / 1.364 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.265e-05/0.9946, allocations: 20.14 kB / 1.364 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.182e-06/0.9946, allocations: 1.312 kB / 1.364 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.9948, allocations: 323 kB / 1.364 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.128e-05/0.9948, allocations: 23 kB / 1.364 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.865e-05/0.9949, allocations: 57.44 kB / 1.364 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.62e-05/0.9949, allocations: 31.95 kB / 1.364 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.9949, allocations: 1.281 kB / 1.364 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000164/0.9951, allocations: 104.7 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.9951, allocations: 6.203 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.9951, allocations: 2.25 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.9952, allocations: 2.531 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.9953, allocations: 21.78 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.9953, allocations: 1 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.9954, allocations: 16.77 kB / 1.364 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.541e-05/0.9954, allocations: 10.34 kB / 1.364 GB, free: 31.22 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 7.939e-05/0.9955, allocations: 117.8 kB / 1.365 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.873e-05/0.9956, allocations: 8.344 kB / 1.365 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002445/0.9958, allocations: 112.1 kB / 1.365 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.9958, allocations: 1.062 kB / 1.365 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.9958, allocations: 0 / 1.365 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.9958, allocations: 5.312 kB / 1.365 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004318/0.9963, allocations: 378.3 kB / 1.365 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.9963, allocations: 1.719 kB / 1.365 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.575e-05/0.9964, allocations: 15.66 kB / 1.365 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.9964, allocations: 0 / 1.365 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.9964, allocations: 2.703 kB / 1.365 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.9964, allocations: 5.344 kB / 1.365 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.9964, allocations: 0 / 1.365 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002111/0.9966, allocations: 202.5 kB / 1.365 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.436e-05/0.9967, allocations: 83.61 kB / 1.365 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.856e-05/0.9967, allocations: 2.672 kB / 1.365 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001276/0.9968, allocations: 18.66 kB / 1.365 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.123e-05/0.9969, allocations: 9.422 kB / 1.365 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.9969, allocations: 4.125 kB / 1.365 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5.681e-05/0.997, allocations: 103.5 kB / 1.366 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003411/0.9973, allocations: 42.53 kB / 1.366 GB, free: 30.44 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 (12): * Single equations (assignments): 9 * 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.0003617/0.9977, allocations: 178.7 kB / 1.366 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001712/0.9979, allocations: 71.61 kB / 1.366 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.9979, allocations: 5.219 kB / 1.366 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.603e-05/0.998, allocations: 34.14 kB / 1.366 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002342/0.9982, allocations: 16.17 kB / 1.366 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003798/0.9986, allocations: 129.8 kB / 1.366 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003387/0.9989, allocations: 0.711 MB / 1.367 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of SimCode: time 2.81e-07/0.9989, allocations: 4 kB / 1.367 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of Templates: time 0.004658/1.004, allocations: 1.884 MB / 1.368 GB, free: 29.36 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.csv","../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches