Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_6_0_0_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.541/4.541, allocations: 433.2 MB / 440.7 MB, free: 4.598 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.061e-05/3.09e-05, allocations: 3.062 kB / 0.5325 GB, free: 12.72 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2495, allocations: 98.73 MB / 0.6289 GB, free: 9.184 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2392/0.4888, allocations: 126.1 MB / 0.752 GB, free: 10.93 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003335/0.4892, allocations: 91.94 kB / 0.7521 GB, free: 10.84 MB / 0.6355 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/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 - DAE generated: time 0.01557/0.5048, allocations: 3.238 MB / 0.7553 GB, free: 7.594 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.593e-06/0.5048, allocations: 0 / 0.7553 GB, free: 7.594 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.126e-06/0.5049, allocations: 0 / 0.7553 GB, free: 7.594 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008526/0.5057, allocations: 0.4956 MB / 0.7558 GB, free: 7.035 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.5058, allocations: 8.031 kB / 0.7558 GB, free: 7.027 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.982e-05/0.5058, allocations: 19.86 kB / 0.7558 GB, free: 7.008 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001692/0.506, allocations: 171.6 kB / 0.7559 GB, free: 6.801 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.763e-05/0.5061, allocations: 7.984 kB / 0.756 GB, free: 6.793 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.822e-05/0.5061, allocations: 8 kB / 0.756 GB, free: 6.785 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001649/0.5063, allocations: 35.98 kB / 0.756 GB, free: 6.75 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001726/0.5065, allocations: 69.59 kB / 0.7561 GB, free: 6.676 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.5065, allocations: 0 / 0.7561 GB, free: 6.676 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.475e-05/0.5065, allocations: 7.953 kB / 0.7561 GB, free: 6.668 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.5065, allocations: 0 / 0.7561 GB, free: 6.668 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000701/0.5072, allocations: 306 kB / 0.7564 GB, free: 6.332 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002489/0.5075, allocations: 82.69 kB / 0.7564 GB, free: 6.242 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.786e-05/0.5076, allocations: 28.8 kB / 0.7565 GB, free: 6.211 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.058e-05/0.5077, allocations: 4 kB / 0.7565 GB, free: 6.207 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002218/0.5079, allocations: 99.22 kB / 0.7566 GB, free: 6.098 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 2.004e-06/0.5079, allocations: 4 kB / 0.7566 GB, free: 6.094 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0004144/0.5083, allocations: 117.6 kB / 0.7567 GB, free: 5.973 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.042e-05/0.5084, allocations: 55.41 kB / 0.7567 GB, free: 5.906 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.5085, allocations: 127.3 kB / 0.7569 GB, free: 5.777 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.881e-05/0.5086, allocations: 25.7 kB / 0.7569 GB, free: 5.746 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.164e-05/0.5087, allocations: 96.12 kB / 0.757 GB, free: 5.648 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.183e-05/0.5087, allocations: 35.5 kB / 0.757 GB, free: 5.613 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.969e-06/0.5088, allocations: 0 / 0.757 GB, free: 5.613 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001308/0.5089, allocations: 322.8 kB / 0.7573 GB, free: 5.289 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.929e-05/0.509, allocations: 31.86 kB / 0.7573 GB, free: 5.258 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.5091, allocations: 57.16 kB / 0.7574 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.441e-05/0.5092, allocations: 29.7 kB / 0.7574 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.5092, allocations: 0 / 0.7574 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002858/0.5095, allocations: 117.4 kB / 0.7575 GB, free: 5.035 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.5096, allocations: 11.95 kB / 0.7575 GB, free: 5.023 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.5096, allocations: 0 / 0.7575 GB, free: 5.023 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.5096, allocations: 4 kB / 0.7576 GB, free: 5.02 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000191/0.5098, allocations: 15.98 kB / 0.7576 GB, free: 5.004 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.5098, allocations: 4.094 kB / 0.7576 GB, free: 5 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.51, allocations: 15.98 kB / 0.7576 GB, free: 4.984 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.51, allocations: 4 kB / 0.7576 GB, free: 4.98 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,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001024/0.5101, allocations: 109.7 kB / 0.7577 GB, free: 4.867 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003387/0.5105, allocations: 125.5 kB / 0.7578 GB, free: 4.738 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.075e-05/0.5105, allocations: 11.86 kB / 0.7578 GB, free: 4.727 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004427/0.511, allocations: 154.1 kB / 0.758 GB, free: 4.57 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.511, allocations: 4 kB / 0.758 GB, free: 4.566 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.511, allocations: 3.984 kB / 0.758 GB, free: 4.562 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.511, allocations: 0 / 0.758 GB, free: 4.562 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008445/0.5119, allocations: 422.9 kB / 0.7584 GB, free: 4.105 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.5119, allocations: 4 kB / 0.7584 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000144/0.5121, allocations: 16 kB / 0.7584 GB, free: 4.086 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.521e-06/0.5121, allocations: 4 kB / 0.7584 GB, free: 4.082 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/0.5121, allocations: 3.984 kB / 0.7584 GB, free: 4.078 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.5121, allocations: 0 / 0.7584 GB, free: 4.078 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.5121, allocations: 144 / 0.7584 GB, free: 4.078 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004025/0.5126, allocations: 231.6 kB / 0.7586 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.952e-05/0.5126, allocations: 88.92 kB / 0.7587 GB, free: 3.73 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.645e-05/0.5127, allocations: 7.984 kB / 0.7587 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.5129, allocations: 16 kB / 0.7587 GB, free: 3.707 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.534e-05/0.513, allocations: 19.91 kB / 0.7588 GB, free: 3.688 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.195e-05/0.513, allocations: 4 kB / 0.7588 GB, free: 3.684 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 9.363e-05/0.5131, allocations: 105.3 kB / 0.7589 GB, free: 3.582 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.11e-07/0.5131, allocations: 0 / 0.7589 GB, free: 3.582 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0004931/0.5136, allocations: 47.94 kB / 0.7589 GB, free: 3.535 MB / 0.6355 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 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulsStart) * Number of discrete states: 1 (lig.on) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.001082/0.5147, allocations: 0.8447 MB / 0.7597 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002662/0.515, allocations: 71.92 kB / 0.7598 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.515, allocations: 4.188 kB / 0.7598 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001282/0.5152, allocations: 44 kB / 0.7598 GB, free: 2.555 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003339/0.5155, allocations: 15.92 kB / 0.7599 GB, free: 2.539 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007637/0.5163, allocations: 194 kB / 0.76 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.5166, allocations: 0.708 MB / 0.7607 GB, free: 1.574 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 9.58e-05/0.5168, allocations: 8.562 kB / 0.7607 GB, free: 1.566 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.5169, allocations: 35.42 kB / 0.7608 GB, free: 1.531 MB / 0.6355 GB Notification: Performance of SimCode: time 7.01e-07/0.5169, allocations: 0 / 0.7608 GB, free: 1.531 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04413/0.561, allocations: 2.935 MB / 0.7636 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002473/0.5613, allocations: 194.2 kB / 0.7638 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.539/3.1, allocations: 0 / 0.7638 GB, free: 14.41 MB / 0.6511 GB