Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.399/1.399, allocations: 252 MB / 267 MB, free: 10.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001121/0.00112, allocations: 171.3 kB / 326.6 MB, free: 2.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.994/1.994, allocations: 205.4 MB / 0.5777 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001021/0.001021, allocations: 78.38 kB / 0.6822 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003811/0.0003812, allocations: 12.44 kB / 0.7965 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2763, allocations: 106.3 MB / 0.9003 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.001718/0.278, allocations: 1.242 MB / 0.9015 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001152/0.2792, allocations: 0.7645 MB / 0.9023 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.371e-05/0.2792, allocations: 0 / 0.9023 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.525e-05/0.2793, allocations: 3.938 kB / 0.9023 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.457e-05/0.2794, allocations: 7.875 kB / 0.9023 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003954/0.2798, allocations: 107.8 kB / 0.9024 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.86e-05/0.2799, allocations: 95.62 kB / 0.9025 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.145e-05/0.28, allocations: 11.98 kB / 0.9025 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.464e-05/0.2801, allocations: 39.86 kB / 0.9025 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.807e-05/0.2801, allocations: 43.81 kB / 0.9026 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.048e-05/0.2802, allocations: 4 kB / 0.9026 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001546/0.2803, allocations: 83.84 kB / 0.9026 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.894e-05/0.2804, allocations: 11.98 kB / 0.9026 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.878e-05/0.2804, allocations: 41.64 kB / 0.9027 GB, free: 61.35 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001487/0.2806, allocations: 111.8 kB / 0.9028 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.2806, allocations: 0 / 0.9028 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2806, allocations: 0 / 0.9028 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.84e-06/0.2806, allocations: 4 kB / 0.9028 GB, free: 61.24 MB / 0.6042 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.0006278/0.2812, allocations: 0.4925 MB / 0.9033 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.2813, allocations: 8.031 kB / 0.9033 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.295e-05/0.2813, allocations: 38.48 kB / 0.9033 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.136e-05/0.2813, allocations: 27.75 kB / 0.9034 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.613e-05/0.2814, allocations: 179.6 kB / 0.9035 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.2815, allocations: 4 kB / 0.9035 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.511e-05/0.2815, allocations: 8 kB / 0.9035 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001674/0.2817, allocations: 81.62 kB / 0.9036 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.2817, allocations: 0 / 0.9036 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.2817, allocations: 0 / 0.9036 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.2817, allocations: 3.953 kB / 0.9036 GB, free: 60.28 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000142/0.2819, allocations: 63.91 kB / 0.9037 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004521/0.2823, allocations: 332.7 kB / 0.904 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001845/0.2825, allocations: 86.7 kB / 0.9041 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.839e-05/0.2826, allocations: 40.84 kB / 0.9041 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.2826, allocations: 3.984 kB / 0.9041 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001918/0.2828, allocations: 99.25 kB / 0.9042 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.313e-06/0.2828, allocations: 0 / 0.9042 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0003725/0.2832, allocations: 189.4 kB / 0.9044 GB, free: 59.4 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.389e-05/0.2833, allocations: 59.33 kB / 0.9044 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.947e-05/0.2834, allocations: 140.4 kB / 0.9046 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.2834, allocations: 29.7 kB / 0.9046 GB, free: 59.15 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.848e-05/0.2834, allocations: 100.1 kB / 0.9047 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.373e-05/0.2835, allocations: 27.66 kB / 0.9047 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-06/0.2835, allocations: 0 / 0.9047 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.988e-05/0.2835, allocations: 326.8 kB / 0.905 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.919e-05/0.2836, allocations: 27.98 kB / 0.9051 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.392e-05/0.2837, allocations: 70.39 kB / 0.9051 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.16e-05/0.2838, allocations: 39.98 kB / 0.9052 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2838, allocations: 0 / 0.9052 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002114/0.284, allocations: 145.3 kB / 0.9053 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.284, allocations: 4 kB / 0.9053 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.2841, allocations: 4 kB / 0.9053 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.027e-05/0.2841, allocations: 4.094 kB / 0.9053 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.2842, allocations: 27.92 kB / 0.9054 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.2842, allocations: 0 / 0.9054 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.2843, allocations: 23.86 kB / 0.9054 GB, free: 58.33 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.2843, allocations: 4.141 kB / 0.9054 GB, free: 58.33 MB / 0.6042 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 8.052e-05/0.2844, allocations: 130.5 kB / 0.9055 GB, free: 58.19 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.932e-05/0.2844, allocations: 23.84 kB / 0.9055 GB, free: 58.17 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003073/0.2847, allocations: 166.2 kB / 0.9057 GB, free: 58 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.2848, allocations: 0 / 0.9057 GB, free: 58 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.2848, allocations: 3.984 kB / 0.9057 GB, free: 58 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.2848, allocations: 4 kB / 0.9057 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004933/0.2853, allocations: 468.5 kB / 0.9061 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2853, allocations: 0 / 0.9061 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.988e-05/0.2854, allocations: 19.98 kB / 0.9062 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2854, allocations: 0 / 0.9062 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.2854, allocations: 4 kB / 0.9062 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.2854, allocations: 0 / 0.9062 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2854, allocations: 3.938 kB / 0.9062 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002633/0.2857, allocations: 255.3 kB / 0.9064 GB, free: 57.19 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.256e-05/0.2857, allocations: 88.95 kB / 0.9065 GB, free: 57.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.407e-05/0.2858, allocations: 11.98 kB / 0.9065 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.2859, allocations: 8 kB / 0.9065 GB, free: 57.06 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.833e-05/0.2859, allocations: 15.97 kB / 0.9065 GB, free: 57.05 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.286, allocations: 8 kB / 0.9065 GB, free: 57.04 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.925e-05/0.286, allocations: 105.3 kB / 0.9066 GB, free: 56.94 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.286, allocations: 0 / 0.9066 GB, free: 56.94 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002662/0.2863, allocations: 43.98 kB / 0.9067 GB, free: 56.89 MB / 0.6042 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.0006822/0.287, allocations: 0.8495 MB / 0.9075 GB, free: 56.04 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002209/0.2872, allocations: 101.6 kB / 0.9076 GB, free: 55.94 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.2872, allocations: 8.125 kB / 0.9076 GB, free: 55.93 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.976e-05/0.2873, allocations: 55.91 kB / 0.9077 GB, free: 55.88 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.2876, allocations: 23.92 kB / 0.9077 GB, free: 55.85 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.2887, allocations: 0.7516 MB / 0.9084 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001559/0.2888, allocations: 0.7002 MB / 0.9091 GB, free: 54.31 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.336e-05/0.2889, allocations: 16.55 kB / 0.9091 GB, free: 54.29 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.936e-05/0.2889, allocations: 31.42 kB / 0.9092 GB, free: 54.26 MB / 0.6042 GB Notification: Performance of SimCode: time 2.2e-07/0.289, allocations: 0 / 0.9092 GB, free: 54.26 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0137/0.3027, allocations: 3.074 MB / 0.9122 GB, free: 51.36 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000287/0.303, allocations: 245.8 kB / 0.9124 GB, free: 51.03 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.819/2.122, allocations: 8 kB / 0.9124 GB, free: 51.02 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1)