Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1,fileNamePrefix="Buildings_7_0_0_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 7.0.1/package.mo): time 2.727/2.727, allocations: 248.6 MB / 255.9 MB, free: 7.145 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001819/0.001818, allocations: 190.5 kB / 315.1 MB, free: 4.266 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.136/2.136, allocations: 205.2 MB / 0.5658 GB, free: 448 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001341/0.001341, allocations: 86.64 kB / 0.67 GB, free: 5.652 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5264/0.5278, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.776, allocations: 106.2 MB / 0.8835 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7237/1.5, allocations: 134 MB / 1.014 GB, free: 6.27 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003408/1.5, allocations: 80.52 kB / 1.014 GB, free: 6.227 MB / 0.6355 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.01652/1.517, allocations: 3.286 MB / 1.018 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/1.517, allocations: 12 kB / 1.018 GB, free: 3.352 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.583e-05/1.517, allocations: 11.81 kB / 1.018 GB, free: 3.34 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001731/1.517, allocations: 175 kB / 1.018 GB, free: 3.129 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/1.517, allocations: 0 / 1.018 GB, free: 3.129 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.58e-05/1.517, allocations: 11.34 kB / 1.018 GB, free: 3.121 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001556/1.517, allocations: 30.17 kB / 1.018 GB, free: 3.102 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001605/1.517, allocations: 60.41 kB / 1.018 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/1.518, allocations: 0 / 1.018 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.112e-05/1.518, allocations: 7.984 kB / 1.018 GB, free: 3.035 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/1.518, allocations: 0 / 1.018 GB, free: 3.035 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007068/1.518, allocations: 301.8 kB / 1.018 GB, free: 2.727 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001542/1.518, allocations: 53.19 kB / 1.018 GB, free: 2.676 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.68e-05/1.519, allocations: 27.61 kB / 1.018 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/1.519, allocations: 4 kB / 1.018 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001956/1.519, allocations: 81.72 kB / 1.018 GB, free: 2.57 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 2.043e-06/1.519, allocations: 0 / 1.018 GB, free: 2.57 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0003592/1.519, allocations: 90.58 kB / 1.018 GB, free: 2.492 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.849e-05/1.519, allocations: 59.31 kB / 1.018 GB, free: 2.422 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/1.519, allocations: 115.9 kB / 1.019 GB, free: 2.312 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/1.519, allocations: 34.42 kB / 1.019 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.59e-05/1.519, allocations: 88.52 kB / 1.019 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.585e-05/1.52, allocations: 23.45 kB / 1.019 GB, free: 2.164 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.768e-06/1.52, allocations: 0 / 1.019 GB, free: 2.164 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001314/1.52, allocations: 322.6 kB / 1.019 GB, free: 1.844 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.11e-05/1.52, allocations: 23.56 kB / 1.019 GB, free: 1.828 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/1.52, allocations: 55.33 kB / 1.019 GB, free: 1.766 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.088e-05/1.52, allocations: 31.36 kB / 1.019 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/1.52, allocations: 0 / 1.019 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002808/1.52, allocations: 107.4 kB / 1.019 GB, free: 1.645 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/1.52, allocations: 11.92 kB / 1.019 GB, free: 1.633 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/1.52, allocations: 0 / 1.019 GB, free: 1.633 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/1.52, allocations: 4 kB / 1.019 GB, free: 1.629 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001961/1.521, allocations: 20.11 kB / 1.019 GB, free: 1.609 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/1.521, allocations: 3.938 kB / 1.019 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001911/1.521, allocations: 12 kB / 1.019 GB, free: 1.594 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/1.521, allocations: 7.984 kB / 1.019 GB, free: 1.586 MB / 0.6355 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 0.0001113/1.521, allocations: 122.2 kB / 1.019 GB, free: 1.465 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.668e-05/1.521, allocations: 7.906 kB / 1.019 GB, free: 1.457 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003544/1.521, allocations: 104.1 kB / 1.02 GB, free: 1.371 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/1.521, allocations: 4 kB / 1.02 GB, free: 1.367 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/1.521, allocations: 0 / 1.02 GB, free: 1.367 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/1.521, allocations: 0 / 1.02 GB, free: 1.367 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007008/1.522, allocations: 380.9 kB / 1.02 GB, free: 0.9844 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/1.522, allocations: 0 / 1.02 GB, free: 0.9844 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/1.522, allocations: 19.92 kB / 1.02 GB, free: 0.9648 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/1.522, allocations: 4 kB / 1.02 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/1.522, allocations: 0 / 1.02 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/1.522, allocations: 3.906 kB / 1.02 GB, free: 0.957 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.522, allocations: 0 / 1.02 GB, free: 0.957 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003561/1.523, allocations: 195.6 kB / 1.02 GB, free: 0.7695 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005341/1.523, allocations: 0.5686 MB / 1.021 GB, free: 208 kB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.796e-05/1.523, allocations: 85.11 kB / 1.021 GB, free: 104 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.718e-05/1.523, allocations: 0 / 1.021 GB, free: 104 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/1.524, allocations: 19.97 kB / 1.021 GB, free: 84 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.604e-05/1.524, allocations: 11.92 kB / 1.021 GB, free: 72 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/1.524, allocations: 11.92 kB / 1.021 GB, free: 64 kB / 0.6355 GB Notification: Performance of sort global known variables: time 9.64e-05/1.524, allocations: 90.34 kB / 1.021 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001333/1.525, allocations: 63.03 kB / 1.021 GB, free: 15.92 MB / 0.6511 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.0005451/1.526, allocations: 157.4 kB / 1.021 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003296/1.526, allocations: 72.98 kB / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/1.526, allocations: 0 / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001849/1.526, allocations: 46.98 kB / 1.021 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004417/1.527, allocations: 10.42 kB / 1.021 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000548/1.527, allocations: 124.7 kB / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003464/1.528, allocations: 0.7153 MB / 1.022 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of SimCode: time 1.022e-06/1.528, allocations: 0 / 1.022 GB, free: 14.8 MB / 0.6511 GB