Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.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: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1",fmuType="me",version="2.0",platforms={"static"}) [: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.958/1.958, allocations: 387.2 MB / 394.5 MB, free: 13.58 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.001013/0.001013, allocations: 173.3 kB / 487 MB, free: 5.336 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.249/1.249, allocations: 221.3 MB / 0.7819 GB, free: 1.422 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.0009609/0.000961, allocations: 106.1 kB / 0.9213 GB, free: 2.66 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5452/0.5462, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.7931, allocations: 142.3 MB / 1.205 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.673/1.466, allocations: 150.6 MB / 1.352 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000314/1.466, allocations: 79.31 kB / 1.352 GB, free: 15.77 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: 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.01068/1.477, allocations: 3.324 MB / 1.356 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/1.477, allocations: 9.688 kB / 1.356 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.8e-05/1.477, allocations: 7.594 kB / 1.356 GB, free: 15.17 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/1.477, allocations: 180.9 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/1.477, allocations: 2 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.137e-05/1.477, allocations: 5.031 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.576e-05/1.478, allocations: 30.66 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/1.478, allocations: 62.36 kB / 1.356 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/1.478, allocations: 0.9688 kB / 1.356 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/1.478, allocations: 0 / 1.356 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/1.478, allocations: 5.25 kB / 1.356 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004444/1.478, allocations: 306.1 kB / 1.356 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001163/1.478, allocations: 57.12 kB / 1.356 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.927e-05/1.478, allocations: 26.25 kB / 1.356 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/1.478, allocations: 1.625 kB / 1.356 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001278/1.479, allocations: 86.91 kB / 1.356 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.253e-06/1.479, allocations: 1.188 kB / 1.356 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.0002919/1.479, allocations: 93.47 kB / 1.357 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.304e-05/1.479, allocations: 53.69 kB / 1.357 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.845e-05/1.479, allocations: 116.3 kB / 1.357 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/1.479, allocations: 31.11 kB / 1.357 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.662e-05/1.479, allocations: 92.09 kB / 1.357 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.88e-05/1.479, allocations: 20.91 kB / 1.357 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.211e-06/1.479, allocations: 0 / 1.357 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.546e-05/1.479, allocations: 325 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.357e-05/1.479, allocations: 16.55 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.581e-05/1.479, allocations: 55.98 kB / 1.357 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.872e-05/1.479, allocations: 23.92 kB / 1.357 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/1.479, allocations: 5.359 kB / 1.357 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001903/1.48, allocations: 105.3 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/1.48, allocations: 6.578 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/1.48, allocations: 1.469 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/1.48, allocations: 2.438 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/1.48, allocations: 18.91 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/1.48, allocations: 5.969 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/1.48, allocations: 20.98 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.899e-05/1.48, allocations: 9.578 kB / 1.357 GB, free: 13.84 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 8.246e-05/1.48, allocations: 114.4 kB / 1.358 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.956e-05/1.48, allocations: 8.406 kB / 1.358 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002918/1.48, allocations: 114.1 kB / 1.358 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/1.48, allocations: 10.62 kB / 1.358 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/1.48, allocations: 0.9062 kB / 1.358 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/1.48, allocations: 96 / 1.358 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004898/1.481, allocations: 371 kB / 1.358 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/1.481, allocations: 4.844 kB / 1.358 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.384e-05/1.481, allocations: 19.39 kB / 1.358 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/1.481, allocations: 0.75 kB / 1.358 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/1.481, allocations: 6.891 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/1.481, allocations: 0.9375 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.481, allocations: 0 / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002206/1.481, allocations: 193.8 kB / 1.358 GB, free: 13.26 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003145/1.482, allocations: 0.5727 MB / 1.359 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.918e-05/1.482, allocations: 83.7 kB / 1.359 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.894e-05/1.482, allocations: 5.812 kB / 1.359 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/1.482, allocations: 10.95 kB / 1.359 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.167e-05/1.482, allocations: 13.14 kB / 1.359 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/1.482, allocations: 8.219 kB / 1.359 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.149e-05/1.482, allocations: 94.81 kB / 1.359 GB, free: 12.56 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0009549/1.483, allocations: 54.61 kB / 1.359 GB, free: 12.55 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.0004915/1.483, allocations: 178.7 kB / 1.359 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002222/1.484, allocations: 67.59 kB / 1.359 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/1.484, allocations: 0.8125 kB / 1.359 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001055/1.484, allocations: 44.3 kB / 1.359 GB, free: 12.42 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/1.484, allocations: 11.31 kB / 1.359 GB, free: 12.42 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004642/1.484, allocations: 127.2 kB / 1.359 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000289/1.485, allocations: 0.717 MB / 1.36 GB, free: 27.64 MB / 0.823 GB Notification: Performance of SimCode: time 2.41e-07/1.485, allocations: 0 / 1.36 GB, free: 27.64 MB / 0.823 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe 2>&1)