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: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",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 2.085/2.085, allocations: 387.2 MB / 394.5 MB, free: 13.69 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.001118/0.001119, allocations: 187.2 kB / 487 MB, free: 5.391 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.27/1.27, allocations: 221.3 MB / 0.7819 GB, free: 1.438 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.0009135/0.0009135, allocations: 97.89 kB / 0.9213 GB, free: 2.684 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4998/0.5008, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.7396, allocations: 142.3 MB / 1.205 GB, free: 26.13 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6717/1.411, allocations: 150.6 MB / 1.352 GB, free: 15.87 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/1.412, allocations: 81.44 kB / 1.352 GB, free: 15.87 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.01076/1.422, allocations: 3.331 MB / 1.356 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/1.423, allocations: 9.938 kB / 1.356 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.333e-05/1.423, allocations: 8.938 kB / 1.356 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/1.423, allocations: 172.9 kB / 1.356 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/1.423, allocations: 6.281 kB / 1.356 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.405e-05/1.423, allocations: 7.531 kB / 1.356 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001146/1.423, allocations: 26.3 kB / 1.356 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001326/1.423, allocations: 63.95 kB / 1.356 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/1.423, allocations: 8.438 kB / 1.356 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/1.423, allocations: 0 / 1.356 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/1.423, allocations: 5.938 kB / 1.356 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005035/1.424, allocations: 301.1 kB / 1.356 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/1.424, allocations: 56.22 kB / 1.356 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.487e-05/1.424, allocations: 27.17 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/1.424, allocations: 1.219 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000131/1.424, allocations: 88.06 kB / 1.356 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.653e-06/1.424, allocations: 0 / 1.356 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.0002785/1.424, allocations: 92.81 kB / 1.357 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.741e-05/1.424, allocations: 58.25 kB / 1.357 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.069e-05/1.424, allocations: 116.2 kB / 1.357 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/1.424, allocations: 26.45 kB / 1.357 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.174e-05/1.424, allocations: 88.22 kB / 1.357 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.58e-05/1.424, allocations: 28.16 kB / 1.357 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.582e-06/1.424, allocations: 0 / 1.357 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.402e-05/1.425, allocations: 324.3 kB / 1.357 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.844e-05/1.425, allocations: 19.39 kB / 1.357 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.926e-05/1.425, allocations: 53.38 kB / 1.357 GB, free: 14 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.544e-05/1.425, allocations: 27.45 kB / 1.357 GB, free: 14 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/1.425, allocations: 0.625 kB / 1.357 GB, free: 14 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002039/1.425, allocations: 106.7 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/1.425, allocations: 5.031 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/1.425, allocations: 1.781 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/1.425, allocations: 2.75 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/1.425, allocations: 20.36 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/1.425, allocations: 5.719 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/1.425, allocations: 21.09 kB / 1.357 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/1.425, allocations: 8.859 kB / 1.357 GB, free: 13.94 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 7.719e-05/1.425, allocations: 111.4 kB / 1.358 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.886e-05/1.425, allocations: 11.66 kB / 1.358 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002762/1.426, allocations: 117.3 kB / 1.358 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/1.426, allocations: 6.438 kB / 1.358 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/1.426, allocations: 0 / 1.358 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/1.426, allocations: 1.547 kB / 1.358 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004725/1.426, allocations: 371.5 kB / 1.358 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/1.426, allocations: 1.391 kB / 1.358 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.253e-05/1.426, allocations: 16.81 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/1.426, allocations: 1.391 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/1.426, allocations: 6.125 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/1.426, allocations: 1.625 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/1.426, allocations: 0 / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002065/1.427, allocations: 200.1 kB / 1.358 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002902/1.427, allocations: 0.5717 MB / 1.359 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.762e-05/1.427, allocations: 84.58 kB / 1.359 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.087e-05/1.427, allocations: 5.781 kB / 1.359 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001351/1.427, allocations: 15.05 kB / 1.359 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.009e-05/1.427, allocations: 8.969 kB / 1.359 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/1.427, allocations: 8.375 kB / 1.359 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.985e-05/1.427, allocations: 91.55 kB / 1.359 GB, free: 12.66 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0009401/1.428, allocations: 53.7 kB / 1.359 GB, free: 12.66 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.0003443/1.429, allocations: 168.8 kB / 1.359 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001611/1.429, allocations: 68.72 kB / 1.359 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/1.429, allocations: 0 / 1.359 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 7.975e-05/1.429, allocations: 45.2 kB / 1.359 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002172/1.429, allocations: 12.03 kB / 1.359 GB, free: 12.53 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000371/1.429, allocations: 125.4 kB / 1.359 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001822/1.43, allocations: 0.7121 MB / 1.36 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of SimCode: time 3.71e-07/1.43, allocations: 0 / 1.36 GB, free: 11.75 MB / 0.8073 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1)