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.Gunay2016Light.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.Gunay2016Light,fileNamePrefix="Buildings_6_0_0_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.735/4.735, allocations: 433.2 MB / 440.7 MB, free: 4.586 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.707e-05/2.706e-05, allocations: 2.562 kB / 0.5325 GB, free: 12.71 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2378, allocations: 98.73 MB / 0.6289 GB, free: 9.164 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2903/0.5282, allocations: 126 MB / 0.752 GB, free: 10.97 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003296/0.5286, allocations: 83.94 kB / 0.7521 GB, free: 10.89 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.0156/0.5442, allocations: 3.182 MB / 0.7552 GB, free: 7.695 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.573e-06/0.5443, allocations: 0 / 0.7552 GB, free: 7.695 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.887e-06/0.5443, allocations: 4 kB / 0.7552 GB, free: 7.691 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.0009062/0.5452, allocations: 479.3 kB / 0.7556 GB, free: 7.16 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.5453, allocations: 8.031 kB / 0.7556 GB, free: 7.152 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.526e-05/0.5454, allocations: 19.86 kB / 0.7556 GB, free: 7.133 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.5456, allocations: 171 kB / 0.7558 GB, free: 6.926 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.5456, allocations: 7.938 kB / 0.7558 GB, free: 6.918 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.818e-05/0.5456, allocations: 4 kB / 0.7558 GB, free: 6.914 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001738/0.5458, allocations: 39.98 kB / 0.7559 GB, free: 6.875 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001871/0.546, allocations: 65.66 kB / 0.7559 GB, free: 6.805 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.546, allocations: 0 / 0.7559 GB, free: 6.805 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.5461, allocations: 4 kB / 0.7559 GB, free: 6.801 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.5461, allocations: 3.953 kB / 0.7559 GB, free: 6.797 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007828/0.5469, allocations: 313.8 kB / 0.7562 GB, free: 6.453 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002519/0.5472, allocations: 66.69 kB / 0.7563 GB, free: 6.379 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.728e-05/0.5473, allocations: 36.8 kB / 0.7563 GB, free: 6.34 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.051e-05/0.5473, allocations: 11.92 kB / 0.7563 GB, free: 6.328 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.5476, allocations: 87.31 kB / 0.7564 GB, free: 6.23 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 3.286e-06/0.5476, allocations: 4 kB / 0.7564 GB, free: 6.227 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0005076/0.5481, allocations: 129.5 kB / 0.7565 GB, free: 6.094 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/0.5482, allocations: 55.41 kB / 0.7566 GB, free: 6.027 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.5484, allocations: 117.2 kB / 0.7567 GB, free: 5.902 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.5484, allocations: 25.7 kB / 0.7567 GB, free: 5.871 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.561e-05/0.5485, allocations: 100 kB / 0.7568 GB, free: 5.77 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.508e-05/0.5485, allocations: 23.66 kB / 0.7569 GB, free: 5.746 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.087e-05/0.5486, allocations: 3.938 kB / 0.7569 GB, free: 5.742 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001585/0.5487, allocations: 326.8 kB / 0.7572 GB, free: 5.414 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.58e-05/0.5488, allocations: 20 kB / 0.7572 GB, free: 5.395 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.549, allocations: 61.14 kB / 0.7572 GB, free: 5.316 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001083/0.5491, allocations: 31.92 kB / 0.7573 GB, free: 5.285 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.5491, allocations: 4 kB / 0.7573 GB, free: 5.281 MB / 0.6355 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000317/0.5494, allocations: 113.5 kB / 0.7574 GB, free: 5.164 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.5495, allocations: 4 kB / 0.7574 GB, free: 5.16 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.5495, allocations: 4 kB / 0.7574 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.5495, allocations: 0 / 0.7574 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002221/0.5497, allocations: 19.92 kB / 0.7574 GB, free: 5.137 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.5498, allocations: 7.953 kB / 0.7574 GB, free: 5.129 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001852/0.55, allocations: 21.7 kB / 0.7574 GB, free: 5.109 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.385e-05/0.55, allocations: 8 kB / 0.7575 GB, free: 5.102 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.0001307/0.5501, allocations: 108.9 kB / 0.7576 GB, free: 4.988 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003974/0.5505, allocations: 121.6 kB / 0.7577 GB, free: 4.863 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.627e-05/0.5506, allocations: 7.906 kB / 0.7577 GB, free: 4.855 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004516/0.551, allocations: 142.2 kB / 0.7578 GB, free: 4.707 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.5511, allocations: 7.938 kB / 0.7578 GB, free: 4.699 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.5511, allocations: 0 / 0.7578 GB, free: 4.699 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.5511, allocations: 7.984 kB / 0.7578 GB, free: 4.691 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008682/0.552, allocations: 411 kB / 0.7582 GB, free: 4.246 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.552, allocations: 4 kB / 0.7582 GB, free: 4.242 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001511/0.5522, allocations: 11.98 kB / 0.7582 GB, free: 4.23 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.22e-05/0.5522, allocations: 3.953 kB / 0.7582 GB, free: 4.227 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.5522, allocations: 4 kB / 0.7582 GB, free: 4.223 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.5522, allocations: 0 / 0.7582 GB, free: 4.223 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.5523, allocations: 7.938 kB / 0.7583 GB, free: 4.215 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004199/0.5527, allocations: 219.4 kB / 0.7585 GB, free: 3.984 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.78e-05/0.5528, allocations: 85 kB / 0.7585 GB, free: 3.883 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.861e-05/0.5528, allocations: 7.953 kB / 0.7586 GB, free: 3.875 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.553, allocations: 8 kB / 0.7586 GB, free: 3.867 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.6e-05/0.5531, allocations: 11.97 kB / 0.7586 GB, free: 3.855 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.33e-05/0.5532, allocations: 15.94 kB / 0.7586 GB, free: 3.84 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 9.449e-05/0.5533, allocations: 95.27 kB / 0.7587 GB, free: 3.746 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.81e-07/0.5533, allocations: 0 / 0.7587 GB, free: 3.746 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0005212/0.5538, allocations: 51.94 kB / 0.7587 GB, free: 3.695 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 (13): * Single equations (assignments): 10 * 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.001221/0.555, allocations: 0.8354 MB / 0.7595 GB, free: 2.84 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000303/0.5554, allocations: 71.94 kB / 0.7596 GB, free: 2.77 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.5554, allocations: 0 / 0.7596 GB, free: 2.77 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.5555, allocations: 47.92 kB / 0.7597 GB, free: 2.723 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003564/0.5559, allocations: 26 kB / 0.7597 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008589/0.5568, allocations: 178.6 kB / 0.7599 GB, free: 2.484 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.5572, allocations: 0.7002 MB / 0.7605 GB, free: 1.758 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 9.486e-05/0.5573, allocations: 8.422 kB / 0.7605 GB, free: 1.75 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.5574, allocations: 35.42 kB / 0.7606 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of SimCode: time 1.102e-06/0.5574, allocations: 0 / 0.7606 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04675/0.6042, allocations: 2.791 MB / 0.7633 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004278/0.6047, allocations: 182.2 kB / 0.7635 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.446/3.051, allocations: 3.938 kB / 0.7635 GB, free: 14.74 MB / 0.6511 GB