Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001041/0.00104, allocations: 197.1 kB / 16.14 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.504/1.504, allocations: 205.1 MB / 222 MB, free: 4.996 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.671/1.671, allocations: 292.3 MB / 0.5484 GB, free: 13.61 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 68.5 kB / 0.6709 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2168, allocations: 114.5 MB / 0.7828 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002792/0.2196, allocations: 1.616 MB / 0.7844 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001303/0.2209, allocations: 0.7956 MB / 0.7851 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.93e-05/0.221, allocations: 3.938 kB / 0.7851 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.303e-05/0.221, allocations: 0 / 0.7851 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.501e-05/0.2211, allocations: 19.86 kB / 0.7852 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004535/0.2216, allocations: 115.8 kB / 0.7853 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001144/0.2217, allocations: 91.64 kB / 0.7854 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.74e-05/0.2218, allocations: 12 kB / 0.7854 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.2219, allocations: 51.77 kB / 0.7854 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.681e-05/0.222, allocations: 43.77 kB / 0.7855 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.222, allocations: 8 kB / 0.7855 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001786/0.2222, allocations: 87.91 kB / 0.7856 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.851e-05/0.2223, allocations: 19.92 kB / 0.7856 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.978e-05/0.2223, allocations: 39.78 kB / 0.7856 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002215/0.2225, allocations: 163.7 kB / 0.7858 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2226, allocations: 0 / 0.7858 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of FrontEnd: time 6.91e-07/0.2226, allocations: 0 / 0.7858 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.456e-06/0.2226, allocations: 0 / 0.7858 GB, free: 10.82 MB / 0.6075 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.0007102/0.2233, allocations: 0.504 MB / 0.7863 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.2233, allocations: 8.031 kB / 0.7863 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.626e-05/0.2234, allocations: 34.75 kB / 0.7863 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.738e-05/0.2234, allocations: 12.84 kB / 0.7863 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.2235, allocations: 184.1 kB / 0.7865 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.2236, allocations: 8.375 kB / 0.7865 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.2236, allocations: 4.375 kB / 0.7865 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/0.2238, allocations: 93.64 kB / 0.7866 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.2238, allocations: 0 / 0.7866 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.2238, allocations: 4 kB / 0.7866 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.2238, allocations: 0 / 0.7866 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.224, allocations: 51.95 kB / 0.7866 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005626/0.2246, allocations: 328.6 kB / 0.787 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002219/0.2248, allocations: 86.66 kB / 0.787 GB, free: 9.344 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.2249, allocations: 36.84 kB / 0.7871 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.2249, allocations: 0 / 0.7871 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002454/0.2252, allocations: 111.2 kB / 0.7872 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.493e-06/0.2252, allocations: 0 / 0.7872 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004321/0.2256, allocations: 177.4 kB / 0.7874 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.2257, allocations: 59.39 kB / 0.7874 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000111/0.2258, allocations: 136.8 kB / 0.7875 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/0.2259, allocations: 33.7 kB / 0.7876 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.185e-05/0.2259, allocations: 96.12 kB / 0.7877 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.882e-05/0.226, allocations: 23.62 kB / 0.7877 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.824e-05/0.226, allocations: 33.69 kB / 0.7877 GB, free: 8.594 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.2261, allocations: 330.8 kB / 0.788 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.229e-05/0.2262, allocations: 35.92 kB / 0.7881 GB, free: 8.227 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.2263, allocations: 72.39 kB / 0.7881 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001828/0.2265, allocations: 113 kB / 0.7882 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.2265, allocations: 0 / 0.7882 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002501/0.2268, allocations: 133.4 kB / 0.7884 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.2268, allocations: 11.98 kB / 0.7884 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2268, allocations: 0 / 0.7884 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.2268, allocations: 4 kB / 0.7884 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.227, allocations: 19.92 kB / 0.7884 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.227, allocations: 4.094 kB / 0.7884 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.2271, allocations: 11.98 kB / 0.7884 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.57e-05/0.2271, allocations: 8 kB / 0.7884 GB, free: 7.816 MB / 0.6075 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 9.783e-05/0.2272, allocations: 121.8 kB / 0.7885 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.305e-05/0.2272, allocations: 11.81 kB / 0.7886 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003547/0.2276, allocations: 174.3 kB / 0.7887 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.2276, allocations: 4 kB / 0.7887 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.2276, allocations: 0 / 0.7887 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2276, allocations: 3.938 kB / 0.7887 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005785/0.2282, allocations: 466.2 kB / 0.7892 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2282, allocations: 0 / 0.7892 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.345e-05/0.2283, allocations: 15.98 kB / 0.7892 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.2283, allocations: 0 / 0.7892 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.2283, allocations: 7.984 kB / 0.7892 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.2284, allocations: 7.938 kB / 0.7892 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.2284, allocations: 4 kB / 0.7892 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000313/0.2287, allocations: 246.1 kB / 0.7894 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.239e-05/0.2287, allocations: 85.02 kB / 0.7895 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.744e-05/0.2288, allocations: 8 kB / 0.7895 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.2289, allocations: 11.92 kB / 0.7895 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.257e-05/0.229, allocations: 15.98 kB / 0.7896 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.058e-05/0.229, allocations: 7.984 kB / 0.7896 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.427e-05/0.2291, allocations: 109.8 kB / 0.7897 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2291, allocations: 0 / 0.7897 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003282/0.2294, allocations: 51.92 kB / 0.7897 GB, free: 6.387 MB / 0.6075 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.0008453/0.2302, allocations: 0.8344 MB / 0.7905 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002584/0.2305, allocations: 95.89 kB / 0.7906 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2305, allocations: 0 / 0.7906 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001249/0.2307, allocations: 65.22 kB / 0.7907 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003091/0.231, allocations: 28.05 kB / 0.7907 GB, free: 5.355 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001683/0.2327, allocations: 1.698 MB / 0.7924 GB, free: 3.555 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.2329, allocations: 0.7002 MB / 0.7931 GB, free: 2.828 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.391e-05/0.233, allocations: 8.562 kB / 0.7931 GB, free: 2.82 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.602e-05/0.2331, allocations: 35.41 kB / 0.7931 GB, free: 2.785 MB / 0.6075 GB Notification: Performance of SimCode: time 3e-07/0.2331, allocations: 0 / 0.7931 GB, free: 2.785 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01254/0.2456, allocations: 3.18 MB / 0.7962 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/0.2458, allocations: 255.2 kB / 0.7964 GB, free: 15.48 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.623/1.869, allocations: 0 / 0.7964 GB, free: 15.48 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1)