Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002019/0.002019, allocations: 190.5 kB / 16.14 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.873/2.873, allocations: 472.6 MB / 0.7447 GB, free: 4.961 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 67.44 kB / 0.9114 GB, free: 33.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4065/0.4078, allocations: 159.9 MB / 1.068 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003169/0.411, allocations: 1.609 MB / 1.069 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001462/0.4125, allocations: 0.779 MB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.027e-05/0.4126, allocations: 0 / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.712e-05/0.4127, allocations: 7.922 kB / 1.07 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001217/0.4128, allocations: 11.88 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005375/0.4133, allocations: 111.8 kB / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001286/0.4135, allocations: 95.64 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.4136, allocations: 19.97 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.4137, allocations: 35.86 kB / 1.07 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.4138, allocations: 43.81 kB / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.136e-05/0.4138, allocations: 4 kB / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000185/0.414, allocations: 95.84 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.313e-05/0.4141, allocations: 19.91 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.328e-05/0.4141, allocations: 43.78 kB / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002563/0.4144, allocations: 159.8 kB / 1.07 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.4144, allocations: 3.938 kB / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.62e-07/0.4144, allocations: 0 / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.4144, allocations: 4 kB / 1.07 GB, free: 7.91 MB / 0.8262 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.0008789/0.4153, allocations: 0.4962 MB / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.4154, allocations: 8.031 kB / 1.071 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.714e-05/0.4154, allocations: 16.78 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001546/0.4156, allocations: 184.2 kB / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.4156, allocations: 4.375 kB / 1.071 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.256e-05/0.4157, allocations: 4.375 kB / 1.071 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002164/0.4159, allocations: 89.89 kB / 1.071 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.416, allocations: 0 / 1.071 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.416, allocations: 7.938 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.416, allocations: 3.984 kB / 1.071 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001499/0.4162, allocations: 43.97 kB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00062/0.4168, allocations: 340.7 kB / 1.072 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002263/0.417, allocations: 78.7 kB / 1.072 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.69e-05/0.4171, allocations: 40.84 kB / 1.072 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.794e-05/0.4172, allocations: 0 / 1.072 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002972/0.4175, allocations: 95.34 kB / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.843e-06/0.4175, allocations: 4 kB / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004964/0.418, allocations: 177.4 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.418, allocations: 55.41 kB / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.4182, allocations: 147 kB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.4182, allocations: 33.7 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.272e-05/0.4183, allocations: 92.12 kB / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.896e-05/0.4183, allocations: 27.64 kB / 1.072 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.351e-05/0.4184, allocations: 41.7 kB / 1.072 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.4185, allocations: 326.8 kB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.971e-05/0.4186, allocations: 27.98 kB / 1.073 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.957e-05/0.4187, allocations: 65.12 kB / 1.073 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001854/0.4189, allocations: 113 kB / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.4189, allocations: 4 kB / 1.073 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002456/0.4192, allocations: 137.3 kB / 1.073 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.4192, allocations: 5.25 kB / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/0.4192, allocations: 4.094 kB / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.4192, allocations: 4 kB / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.4194, allocations: 15.98 kB / 1.073 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.4194, allocations: 4 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.4195, allocations: 15.92 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.4195, allocations: 8 kB / 1.073 GB, free: 4.957 MB / 0.8262 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 (lig.curSeed,$PRE.lig.curSeed,lig.on,$PRE.lig.on,$whenCondition3,lig.sampleTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001122/0.4196, allocations: 121.7 kB / 1.073 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.424e-05/0.4197, allocations: 15.89 kB / 1.073 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003963/0.4201, allocations: 166.3 kB / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.4201, allocations: 4 kB / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.4201, allocations: 0 / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.4201, allocations: 3.984 kB / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006785/0.4208, allocations: 470.2 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.4208, allocations: 0 / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.297e-05/0.4209, allocations: 19.92 kB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.329e-06/0.4209, allocations: 4 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.4209, allocations: 4 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4209, allocations: 0 / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.4209, allocations: 7.875 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003729/0.4213, allocations: 254.2 kB / 1.074 GB, free: 3.82 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.019e-05/0.4214, allocations: 85.02 kB / 1.074 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.059e-05/0.4214, allocations: 7.984 kB / 1.074 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.4215, allocations: 12 kB / 1.074 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.149e-05/0.4216, allocations: 15.91 kB / 1.074 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.08e-05/0.4216, allocations: 4 kB / 1.074 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001089/0.4218, allocations: 105 kB / 1.074 GB, free: 3.578 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.587e-06/0.4218, allocations: 0 / 1.074 GB, free: 3.578 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000372/0.4221, allocations: 51.92 kB / 1.074 GB, free: 3.527 MB / 0.8262 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004559/0.4226, allocations: 165.9 kB / 1.075 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002909/0.4229, allocations: 87.89 kB / 1.075 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.4229, allocations: 4 kB / 1.075 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.4231, allocations: 59.91 kB / 1.075 GB, free: 3.227 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003545/0.4234, allocations: 20.17 kB / 1.075 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000597/0.424, allocations: 257.4 kB / 1.075 GB, free: 2.93 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000385/0.4244, allocations: 0.7005 MB / 1.076 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.916e-05/0.4245, allocations: 8.547 kB / 1.076 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.26e-05/0.4246, allocations: 19.38 kB / 1.076 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of SimCode: time 5.61e-07/0.4246, allocations: 0 / 1.076 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of Templates: time 0.005431/0.43, allocations: 1.879 MB / 1.077 GB, free: 312 kB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_3.0.0_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_3.0.0_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_3.0.0_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_3.0.0_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1)