Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.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.Windows.Validation.Herkel2008WindowsCompletelyOpen,fileNamePrefix="Buildings_6_0_0_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsCompletelyOpen",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.286/4.286, allocations: 433.2 MB / 440.7 MB, free: 4.582 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.315e-05/2.344e-05, allocations: 3.156 kB / 0.5325 GB, free: 12.7 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2342, allocations: 98.73 MB / 0.6289 GB, free: 9.133 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3014/0.5357, allocations: 125.7 MB / 0.7517 GB, free: 11.23 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003117/0.5361, allocations: 87.94 kB / 0.7518 GB, free: 11.14 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.01982/0.5559, allocations: 2.913 MB / 0.7546 GB, free: 8.223 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.635e-06/0.5559, allocations: 0 / 0.7546 GB, free: 8.223 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.238e-06/0.556, allocations: 0 / 0.7546 GB, free: 8.223 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0009349/0.5569, allocations: 412 kB / 0.755 GB, free: 7.77 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.186e-05/0.557, allocations: 12.03 kB / 0.755 GB, free: 7.758 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.015e-05/0.5571, allocations: 3.953 kB / 0.755 GB, free: 7.754 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001911/0.5573, allocations: 170.9 kB / 0.7552 GB, free: 7.547 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.243e-05/0.5574, allocations: 4 kB / 0.7552 GB, free: 7.543 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.987e-05/0.5574, allocations: 4 kB / 0.7552 GB, free: 7.539 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001724/0.5576, allocations: 31.92 kB / 0.7552 GB, free: 7.508 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002089/0.5578, allocations: 53.66 kB / 0.7553 GB, free: 7.449 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.5579, allocations: 4 kB / 0.7553 GB, free: 7.445 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.756e-05/0.5579, allocations: 4 kB / 0.7553 GB, free: 7.441 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.587e-05/0.558, allocations: 7.953 kB / 0.7553 GB, free: 7.434 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001152/0.5591, allocations: 281.4 kB / 0.7556 GB, free: 7.121 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001607/0.5593, allocations: 38.58 kB / 0.7556 GB, free: 7.074 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001191/0.5595, allocations: 33.53 kB / 0.7556 GB, free: 7.039 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.215e-05/0.5595, allocations: 3.938 kB / 0.7556 GB, free: 7.035 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002187/0.5597, allocations: 63.39 kB / 0.7557 GB, free: 6.961 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 3.998e-06/0.5598, allocations: 4 kB / 0.7557 GB, free: 6.957 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0004924/0.5603, allocations: 97.59 kB / 0.7558 GB, free: 6.855 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.234e-05/0.5604, allocations: 59.41 kB / 0.7558 GB, free: 6.785 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001477/0.5605, allocations: 109 kB / 0.7559 GB, free: 6.672 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.496e-05/0.5606, allocations: 25.7 kB / 0.756 GB, free: 6.641 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.5607, allocations: 96.22 kB / 0.7561 GB, free: 6.539 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.347e-05/0.5608, allocations: 7.906 kB / 0.7561 GB, free: 6.531 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.267e-05/0.5608, allocations: 0 / 0.7561 GB, free: 6.531 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000181/0.561, allocations: 322.8 kB / 0.7564 GB, free: 6.207 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.457e-05/0.5611, allocations: 16 kB / 0.7564 GB, free: 6.191 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001406/0.5613, allocations: 50.44 kB / 0.7564 GB, free: 6.133 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.5615, allocations: 19.98 kB / 0.7565 GB, free: 6.113 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.5615, allocations: 0 / 0.7565 GB, free: 6.113 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004092/0.5619, allocations: 97.58 kB / 0.7566 GB, free: 6.012 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.947e-05/0.562, allocations: 8 kB / 0.7566 GB, free: 6.004 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.562, allocations: 0 / 0.7566 GB, free: 6.004 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.562, allocations: 0 / 0.7566 GB, free: 6.004 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002258/0.5623, allocations: 16.05 kB / 0.7566 GB, free: 5.988 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.337e-05/0.5623, allocations: 7.953 kB / 0.7566 GB, free: 5.98 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001675/0.5625, allocations: 11.84 kB / 0.7566 GB, free: 5.969 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.781e-05/0.5625, allocations: 4 kB / 0.7566 GB, free: 5.965 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$PRE.win.curSeed,win.curSeed,$whenCondition1,win.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001486/0.5627, allocations: 108.9 kB / 0.7567 GB, free: 5.852 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003983/0.5631, allocations: 93.66 kB / 0.7568 GB, free: 5.754 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.452e-05/0.5632, allocations: 11.89 kB / 0.7568 GB, free: 5.742 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.092e-05/0.5632, allocations: 8.625 kB / 0.7568 GB, free: 5.73 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.5633, allocations: 11.89 kB / 0.7568 GB, free: 5.719 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.5633, allocations: 0 / 0.7568 GB, free: 5.719 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.5633, allocations: 0 / 0.7568 GB, free: 5.719 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007535/0.5641, allocations: 331.1 kB / 0.7571 GB, free: 5.352 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/0.5641, allocations: 3.984 kB / 0.7571 GB, free: 5.348 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.5642, allocations: 8 kB / 0.7571 GB, free: 5.34 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.5643, allocations: 0 / 0.7571 GB, free: 5.34 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.5643, allocations: 3.953 kB / 0.7572 GB, free: 5.336 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.5643, allocations: 0 / 0.7572 GB, free: 5.336 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.5644, allocations: 4 kB / 0.7572 GB, free: 5.332 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004768/0.5648, allocations: 195.4 kB / 0.7573 GB, free: 5.125 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.708e-05/0.5649, allocations: 85.02 kB / 0.7574 GB, free: 5.023 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.347e-05/0.565, allocations: 0 / 0.7574 GB, free: 5.023 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002114/0.5652, allocations: 9.641 kB / 0.7574 GB, free: 5.016 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.014e-05/0.5653, allocations: 7.984 kB / 0.7574 GB, free: 5.008 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.081e-05/0.5654, allocations: 0 / 0.7574 GB, free: 5.008 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 8.988e-05/0.5655, allocations: 95.27 kB / 0.7575 GB, free: 4.914 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.052e-06/0.5655, allocations: 0 / 0.7575 GB, free: 4.914 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0007193/0.5662, allocations: 51.94 kB / 0.7576 GB, free: 4.863 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: 6 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.p,win.curSeed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * 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.001465/0.5677, allocations: 0.8098 MB / 0.7584 GB, free: 4.035 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003128/0.5681, allocations: 63.91 kB / 0.7584 GB, free: 3.973 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5681, allocations: 0 / 0.7584 GB, free: 3.973 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.5682, allocations: 24 kB / 0.7585 GB, free: 3.949 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.5686, allocations: 3.953 kB / 0.7585 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008964/0.5695, allocations: 150.2 kB / 0.7586 GB, free: 3.762 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004135/0.57, allocations: 0.6924 MB / 0.7593 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 9.653e-05/0.5701, allocations: 8.172 kB / 0.7593 GB, free: 3.035 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.354e-05/0.5702, allocations: 19.44 kB / 0.7593 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of SimCode: time 1.312e-06/0.5702, allocations: 0 / 0.7593 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1013/0.6715, allocations: 2.178 MB / 0.7614 GB, free: 0.8477 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000245/0.6718, allocations: 210 kB / 0.7616 GB, free: 0.5547 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.671/3.343, allocations: 0 / 0.7616 GB, free: 0.5547 MB / 0.6355 GB