Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.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.Love1998Light2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.p|lig.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2") translateModel(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.p|lig.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2") [: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 9.1.1-maint.9.1.x/package.mo): time 1.933/1.933, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.0009939/0.0009939, allocations: 185.2 kB / 487 MB, free: 5.332 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.33/1.33, allocations: 221.4 MB / 0.7819 GB, free: 1.312 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.0008938/0.000894, allocations: 94.44 kB / 0.9213 GB, free: 2.574 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.192e-06/6.212e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.2332, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5824/0.8157, allocations: 150.6 MB / 1.352 GB, free: 15.59 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.816, allocations: 81.02 kB / 1.352 GB, free: 15.59 MB / 0.8073 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: time 0.009847/0.8258, allocations: 2.869 MB / 1.355 GB, free: 15.44 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 8.336e-06/0.8259, allocations: 2 kB / 1.355 GB, free: 15.44 MB / 0.8073 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.0005535/0.8264, allocations: 463.1 kB / 1.356 GB, free: 15 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.8265, allocations: 8.344 kB / 1.356 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.64e-05/0.8265, allocations: 14.59 kB / 1.356 GB, free: 14.99 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.8267, allocations: 179.3 kB / 1.356 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.8267, allocations: 2.094 kB / 1.356 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.062e-05/0.8267, allocations: 3.375 kB / 1.356 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000118/0.8268, allocations: 29.31 kB / 1.356 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001142/0.827, allocations: 66.47 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.827, allocations: 3.938 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.827, allocations: 4.906 kB / 1.356 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.827, allocations: 4.906 kB / 1.356 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004573/0.8275, allocations: 292.5 kB / 1.356 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001123/0.8276, allocations: 56.05 kB / 1.356 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.795e-05/0.8277, allocations: 36.17 kB / 1.356 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.414e-05/0.8277, allocations: 0.9688 kB / 1.356 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001096/0.8278, allocations: 83.91 kB / 1.356 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.633e-06/0.8278, allocations: 0 / 1.356 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.0002457/0.8281, allocations: 88.72 kB / 1.356 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.606e-05/0.8281, allocations: 57.47 kB / 1.357 GB, free: 14.31 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.21e-05/0.8282, allocations: 115 kB / 1.357 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.448e-05/0.8282, allocations: 30.95 kB / 1.357 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.593e-05/0.8282, allocations: 90.17 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/0.8283, allocations: 21.94 kB / 1.357 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.404e-06/0.8283, allocations: 0 / 1.357 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.832e-05/0.8283, allocations: 319.2 kB / 1.357 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.164e-05/0.8284, allocations: 20 kB / 1.357 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.988e-05/0.8284, allocations: 56.25 kB / 1.357 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.873e-05/0.8285, allocations: 28.7 kB / 1.357 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.8285, allocations: 0 / 1.357 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001719/0.8287, allocations: 108.1 kB / 1.357 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.8287, allocations: 4.875 kB / 1.357 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.8287, allocations: 3.391 kB / 1.357 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.8287, allocations: 6.25 kB / 1.357 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.8289, allocations: 14.91 kB / 1.357 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.8289, allocations: 11.45 kB / 1.357 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.829, allocations: 15.7 kB / 1.357 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.829, allocations: 9.141 kB / 1.357 GB, free: 13.66 MB / 0.8073 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 6.391e-05/0.8291, allocations: 114.2 kB / 1.357 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.96e-05/0.8291, allocations: 10.08 kB / 1.357 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002484/0.8294, allocations: 121.8 kB / 1.358 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.8294, allocations: 5.469 kB / 1.358 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.8294, allocations: 0.875 kB / 1.358 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.8294, allocations: 0 / 1.358 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004389/0.8298, allocations: 367.7 kB / 1.358 GB, free: 13.22 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.8298, allocations: 2.875 kB / 1.358 GB, free: 13.22 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.783e-05/0.8299, allocations: 19.78 kB / 1.358 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.8299, allocations: 1.484 kB / 1.358 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.83, allocations: 6.172 kB / 1.358 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.83, allocations: 1.031 kB / 1.358 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.83, allocations: 4 kB / 1.358 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001882/0.8302, allocations: 194 kB / 1.358 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.46e-05/0.8302, allocations: 84.72 kB / 1.358 GB, free: 12.97 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.757e-05/0.8302, allocations: 1.672 kB / 1.358 GB, free: 12.97 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.8304, allocations: 11.89 kB / 1.358 GB, free: 12.97 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.097e-05/0.8304, allocations: 11.83 kB / 1.358 GB, free: 12.97 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.8304, allocations: 7.875 kB / 1.358 GB, free: 12.97 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.121e-05/0.8305, allocations: 98.73 kB / 1.358 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003172/0.8308, allocations: 49.2 kB / 1.358 GB, free: 12.88 MB / 0.8073 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.0003663/0.8312, allocations: 175.7 kB / 1.359 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001652/0.8313, allocations: 67.47 kB / 1.359 GB, free: 12.76 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.8314, allocations: 0 / 1.359 GB, free: 12.76 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 7.647e-05/0.8314, allocations: 40.83 kB / 1.359 GB, free: 12.76 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002171/0.8317, allocations: 15.25 kB / 1.359 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000356/0.832, allocations: 120.6 kB / 1.359 GB, free: 12.68 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002664/0.8323, allocations: 0.7155 MB / 1.36 GB, free: 27.98 MB / 0.823 GB Notification: Performance of SimCode: time 2.31e-07/0.8323, allocations: 0.8438 kB / 1.36 GB, free: 27.98 MB / 0.823 GB Notification: Performance of Templates: time 0.004893/0.8372, allocations: 1.888 MB / 1.361 GB, free: 27.81 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.sim & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.csv","../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches