Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_7_0_0_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.01022/0.01023, allocations: 88.41 kB / 15.04 MB, free: 6.062 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001171/0.001171, allocations: 170.8 kB / 15.92 MB, free: 6.008 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.268/2.268, allocations: 205.5 MB / 222.2 MB, free: 13.7 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.44/2.44, allocations: 252.8 MB / 0.511 GB, free: 8.324 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004915/0.0004917, allocations: 11.72 kB / 0.6243 GB, free: 28.41 MB / 0.4948 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2488, allocations: 106.2 MB / 0.7281 GB, free: 10.17 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002308/0.2512, allocations: 1.234 MB / 0.7293 GB, free: 8.922 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.001892/0.2532, allocations: 0.7655 MB / 0.73 GB, free: 8.148 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.692e-05/0.2533, allocations: 4 kB / 0.73 GB, free: 8.145 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 2.65e-05/0.2533, allocations: 3.938 kB / 0.73 GB, free: 8.141 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.2534, allocations: 11.97 kB / 0.73 GB, free: 8.129 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005753/0.254, allocations: 103.7 kB / 0.7301 GB, free: 8.027 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0001418/0.2542, allocations: 59.86 kB / 0.7302 GB, free: 7.969 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.2543, allocations: 27.89 kB / 0.7302 GB, free: 7.941 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001223/0.2544, allocations: 31.92 kB / 0.7302 GB, free: 7.91 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001073/0.2546, allocations: 39.81 kB / 0.7303 GB, free: 7.871 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.2546, allocations: 4 kB / 0.7303 GB, free: 7.867 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002442/0.2549, allocations: 75.86 kB / 0.7304 GB, free: 7.793 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 3.408e-05/0.2549, allocations: 19.92 kB / 0.7304 GB, free: 7.773 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 5.311e-05/0.255, allocations: 37.7 kB / 0.7304 GB, free: 7.73 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0002552/0.2552, allocations: 119.9 kB / 0.7305 GB, free: 7.613 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.2553, allocations: 0 / 0.7305 GB, free: 7.613 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.683e-06/0.2553, allocations: 0 / 0.7305 GB, free: 7.613 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.2553, allocations: 0 / 0.7305 GB, free: 7.613 MB / 0.5573 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.0009914/0.2563, allocations: 496 kB / 0.731 GB, free: 7.062 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.2563, allocations: 12.03 kB / 0.731 GB, free: 7.051 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.643e-05/0.2565, allocations: 38.55 kB / 0.7311 GB, free: 7.004 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.834e-05/0.2565, allocations: 15.77 kB / 0.7311 GB, free: 6.988 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001769/0.2567, allocations: 171 kB / 0.7312 GB, free: 6.781 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.2568, allocations: 4 kB / 0.7312 GB, free: 6.777 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.733e-05/0.2568, allocations: 8 kB / 0.7312 GB, free: 6.77 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002826/0.2571, allocations: 81.56 kB / 0.7313 GB, free: 6.684 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.2571, allocations: 0 / 0.7313 GB, free: 6.684 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.278e-05/0.2572, allocations: 15.95 kB / 0.7313 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.2572, allocations: 0 / 0.7313 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000244/0.2574, allocations: 47.97 kB / 0.7314 GB, free: 6.621 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007569/0.2582, allocations: 340.7 kB / 0.7317 GB, free: 6.238 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003223/0.2585, allocations: 82.7 kB / 0.7318 GB, free: 6.148 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.2586, allocations: 4 kB / 0.7318 GB, free: 6.145 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003452/0.2589, allocations: 107.3 kB / 0.7319 GB, free: 6.027 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=11): time 2.795e-06/0.2589, allocations: 0 / 0.7319 GB, free: 6.027 MB / 0.5573 GB Notification: Performance of matching and sorting (n=11): time 0.0006943/0.2596, allocations: 185.6 kB / 0.7321 GB, free: 5.84 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.739e-05/0.2597, allocations: 55.41 kB / 0.7321 GB, free: 5.773 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001713/0.2599, allocations: 137.8 kB / 0.7323 GB, free: 5.629 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.898e-05/0.2599, allocations: 29.7 kB / 0.7323 GB, free: 5.594 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 7.73e-05/0.26, allocations: 96.14 kB / 0.7324 GB, free: 5.496 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 4.399e-05/0.2601, allocations: 31.78 kB / 0.7324 GB, free: 5.465 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.268e-05/0.2601, allocations: 4 kB / 0.7324 GB, free: 5.461 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001529/0.2603, allocations: 322.8 kB / 0.7327 GB, free: 5.137 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.2604, allocations: 31.98 kB / 0.7327 GB, free: 5.105 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001819/0.2606, allocations: 71.52 kB / 0.7328 GB, free: 5.02 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001596/0.2608, allocations: 39.92 kB / 0.7329 GB, free: 4.98 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.2608, allocations: 0 / 0.7329 GB, free: 4.98 MB / 0.5573 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004409/0.2613, allocations: 149.3 kB / 0.733 GB, free: 4.828 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.2613, allocations: 8 kB / 0.733 GB, free: 4.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.2613, allocations: 0 / 0.733 GB, free: 4.82 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.2613, allocations: 7.938 kB / 0.733 GB, free: 4.812 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000187/0.2615, allocations: 15.98 kB / 0.733 GB, free: 4.797 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.2616, allocations: 4 kB / 0.733 GB, free: 4.793 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001786/0.2618, allocations: 19.92 kB / 0.733 GB, free: 4.773 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.2618, allocations: 7.938 kB / 0.7331 GB, free: 4.766 MB / 0.5573 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.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked 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.0001485/0.2619, allocations: 129.8 kB / 0.7332 GB, free: 4.629 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.226e-05/0.262, allocations: 11.86 kB / 0.7332 GB, free: 4.617 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005841/0.2626, allocations: 178.2 kB / 0.7334 GB, free: 4.438 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.2626, allocations: 7.938 kB / 0.7334 GB, free: 4.43 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.2626, allocations: 4 kB / 0.7334 GB, free: 4.426 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/0.2626, allocations: 3.984 kB / 0.7334 GB, free: 4.422 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000993/0.2636, allocations: 462.4 kB / 0.7338 GB, free: 3.914 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.2637, allocations: 0 / 0.7338 GB, free: 3.914 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001483/0.2638, allocations: 15.94 kB / 0.7338 GB, free: 3.898 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-05/0.2638, allocations: 8.125 kB / 0.7338 GB, free: 3.891 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.303e-05/0.2639, allocations: 4 kB / 0.7338 GB, free: 3.887 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.2639, allocations: 4 kB / 0.7338 GB, free: 3.883 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.2639, allocations: 0 / 0.7338 GB, free: 3.883 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005708/0.2645, allocations: 255.2 kB / 0.7341 GB, free: 3.617 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 7.883e-05/0.2646, allocations: 85.02 kB / 0.7342 GB, free: 3.516 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.474e-05/0.2646, allocations: 0 / 0.7342 GB, free: 3.516 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002018/0.2648, allocations: 19.98 kB / 0.7342 GB, free: 3.496 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.47e-05/0.2649, allocations: 7.984 kB / 0.7342 GB, free: 3.488 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.009e-05/0.265, allocations: 7.984 kB / 0.7342 GB, free: 3.48 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.000101/0.2651, allocations: 106.2 kB / 0.7343 GB, free: 3.379 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.91e-07/0.2651, allocations: 0 / 0.7343 GB, free: 3.379 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0004977/0.2656, allocations: 51.98 kB / 0.7344 GB, free: 3.328 MB / 0.5573 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.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * 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.0012/0.2668, allocations: 0.8465 MB / 0.7352 GB, free: 2.469 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0004257/0.2672, allocations: 103.8 kB / 0.7353 GB, free: 2.367 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.2673, allocations: 0 / 0.7353 GB, free: 2.367 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002027/0.2675, allocations: 59.91 kB / 0.7353 GB, free: 2.309 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.2678, allocations: 15.92 kB / 0.7354 GB, free: 2.293 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.2693, allocations: 1.257 MB / 0.7366 GB, free: 0.9648 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/0.2697, allocations: 0.7043 MB / 0.7373 GB, free: 240 kB / 0.5573 GB Notification: Performance of simCode: alias equations: time 9.867e-05/0.2698, allocations: 12.55 kB / 0.7373 GB, free: 228 kB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.2699, allocations: 31.42 kB / 0.7373 GB, free: 196 kB / 0.5573 GB Notification: Performance of SimCode: time 1.452e-06/0.2699, allocations: 0 / 0.7373 GB, free: 196 kB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02334/0.2933, allocations: 3.074 MB / 0.7403 GB, free: 13.23 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003235/0.2937, allocations: 240.2 kB / 0.7405 GB, free: 12.99 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.778/3.072, allocations: 0 / 0.7405 GB, free: 12.99 MB / 0.573 GB